Using API hub JAVA code to Call odata api in S4HANA CLOUD
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 .