Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Wroblewski
Developer Advocate
Developer Advocate
Calling S/4HANA and other SAP APIs is something almost everyone will need to do when building apps with SAP Build Apps. But it can be confusing in SAP Build Apps how to perform each of the CRUD operations – Create, Read, Update, Delete – and how to handle nested entities and other complexities of these APIs.

I have created a set of learning materials to help you understand how to make these calls and handle their data. All are based on a simple app to maintain Business Partner addresses, and they include instructions on how to:

  • Create an S/4HANA Cloud destination and consume in SAP Build Apps

  • Perform create, read, update and delete API calls to S/4HANA Cloud

  • Set up a single form to perform both create and update operations

  • Expand OData entities to include nested entities

  • Inject nested entities for create and update calls

  • Use formula functions – like SET_KEY and  PICK_KEYS – to assemble API payloads

  • Use formulas to do conditional formatting – such as making a row red based on the data

  • Perform navigation between pages



Here are the learning assets:























Asset Link
Blog https://groups.community.sap.com/t5/sap-builders-blog-posts/real-world-api-calls-to-s-4hana-crud-fro...
Tutorial https://developers.sap.com/tutorials/build-apps-s4hana-crud.html
Free Project https://github.com/sap-tutorials/sap-build-apps/blob/main/projects/s4hana-crud/S4HANA%20CRUD.zip.gpg


TechByte

(25-minute step-by-step guide for creating the app)
https://youtu.be/ISRYkrYrsqQ

While you're at it, please join the SAP Builders group in the new community platform, where you will get content like the above (another blog is coming later this week) and be able to share your experiences with fellow builders and ask all your questions. This will become the official community for SAP Build next month.

The SAP Builders Group


😺
3 Comments
lukcad
Explorer
0 Kudos
Hi Daniel,

Could you please help me with understanding about absence of any data when i do search using S/4HANA Cloud API via Sap Build App -> Data

You can see that on pictures below  that I can extract all data (picture 1) without any filter. But when i do filtering by search (even i use exact value)  I have always empty response (picture 2)

Thank you in advance, Mikhail.

Dan_Wroblewski
Developer Advocate
Developer Advocate
I have never -- from the beginning -- gotten this filtering to work. I will ask if this will be fixed, but I think it a bug and I do not rely on it. Sorry.
lukcad
Explorer
0 Kudos
Hi, Daniel!

Thank you for your learning document, just fixing test on first step and adding additional step of creating destination ( instead of reference to video) would be save time for another people who will try to dive in this great example.

Have a great New Year!

Best regards, Mikhail.