Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to start building a script to load data from SAP S/4 HANA Cloud Public Edition.
I need financial data, logistic data, etc.
Does anyone have a script for me which I can use to start?
There is a lot of API documentation, like SAP Business Accelerator Hub but if possible I don't want to start from scratch.
Many thanks,
Bart
Mesma necessidade, alguma solução?
I build it from scratch with a REST connection. You have to use multiple rest connections depending in the data you want to retrieve. And you have to grant access within SAP HANA for each connection.
pode enviar um exemplo?
Hi Bart,
A good starting point is to use SAP’s OData and REST APIs available through the SAP Business Accelerator Hub. These APIs cover most data domains in S/4HANA Cloud Public Edition, including Finance, Logistics, and Sales. You can connect to them using tools like Postman, Python (requests or pyodata), or SAP Cloud SDK depending on how you plan to build your script.
If you just need a base to start from, you can begin with a simple Python script that authenticates through OAuth2, calls an API like /A_FinancialActualPostings (for finance) or /API_BUSINESS_PARTNER (for master data), and then exports the JSON response to CSV or a database. Once that works, you can expand to other endpoints.
I came across a similar discussion and some structured examples while reviewing Pass4Future’s SAP S/4HANA Cloud study material, where they highlighted how to combine API calls and integration layers to pull transactional data efficiently. Their examples can give you a good sense of how to design your initial script structure.
Let me know if you need any futher help
Hi Bart,
A good starting point is to use SAP’s OData and REST APIs available through the SAP Business Accelerator Hub. These APIs cover most data domains in S/4HANA Cloud Public Edition, including Finance, Logistics, and Sales. You can connect to them using tools like Postman, Python (requests or pyodata), or SAP Cloud SDK depending on how you plan to build your script.
If you just need a base to start from, you can begin with a simple Python script that authenticates through OAuth2, calls an API like /A_FinancialActualPostings (for finance) or /API_BUSINESS_PARTNER (for master data), and then exports the JSON response to CSV or a database. Once that works, you can expand to other endpoints.
I came across a similar discussion and some structured examples while reviewing Pass4Future’s SAP S/4HANA Cloud study material, where they highlighted how to combine API calls and integration layers to pull transactional data efficiently. Their examples can give you a good sense of how to design your initial script structure.