Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Jacky_Liu
Product and Topic Expert
Product and Topic Expert
1,102

In the DBS S4HC competence center integration PS session, some customer or partner will ask how to call odata api in s4hc by java code . I want to take this oppotunity to show the simplist way to do this .


The assumption is that the reader had already known how to create communication system, communication user and communication arrangment in s4hc . Known how to test odata api in postman .


In SAP API hub for S4HC, https://api.sap.com/package/SAPS4HANACloud?section=Artifacts , the sample code in JAVA , JS, Python etc will be listed . We can use them directly . Let me take billing document ODATA API as an example .


Step 1, get JAVA code in api hub .





Step 2, create gradle project in Eclipse














3 , How to get Authorization key in postman




The end .


Best regards!


Jacky Liu






2 Comments