SAP Java Integration: OData, RFC/JCo, IDoc and CPI Guide
When your Java application has to talk to SAP there are four routes: OData, RFC/BAPI (JCo), IDoc and SAP Integration Suite (CPI). Which is right when, reading and writing the S/4HANA OData API from Spring (including the CSRF flow), calling a BAPI through JCo, master-data synchronization and the pitfalls we see in the field.