cancel
Showing results for 
Search instead for 
Did you mean: 

How to find AND debug the technical object called in the backend for an API call in S/4 HANA Cloud?

sdig89
Explorer
0 Kudos
537

Hello experts, 

I am working on S/4 HANA Cloud: Public edition version 2402 and I would like to know how to find the technical name of the objet (BAPI? FM?) called in the backend system, when running a released API as we can find in SAP Business Accelerator hub.

For instance, to create a Sales Order, 3 APIs are available in the hub for public cloud: 

sdig89_0-1714556512256.png

1/ We are not sure yet which one we should pick for our requirement. Any help on this?

2/ More important, I really want to be able to debug in Eclipse ABAP Development Tools, any Tryout call we do when testing one of these APIs. How can I do that? I have already access to ADT and to the backend system, was able to debug backend for some other requirements (not API calls), but would like to be able to debug API calls. 

I tried a put a breakpoint in ADT for the technical API communication user used when calling the API from Postman or from the API Hub website (tryout feature), but still, the breakpoint is not triggered. What am I missing?

3/ I would like to know exactly the technical object (BAPI name if any?) behind each API? I assume one of these "Create Sales Order (A2A) or (A2X)" APIs to create a Sales Order, calls in the backend BAPI_SALESORDER_CREATEFROMDAT2, right? 

By the way, the API calls have status 200, but still, not able to debug any of the API calls, nor able to find the technical objects called in the backend system, from the API call done in the cloud.

Thank you 

View Entire Topic
CE6
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi sdig89,
1. It absolutely depends on your requirements which API you should use. You can find some further information to that topic in our help portal:
https://help.sap.com/docs/SAP_S4HANA_CLOUD/03c04db2a7434731b7fe21dca77440da/3bac8c01d7024ae1b15cf848...

2. Why do you want to debug? What exactly do you want to see? You could set some breakpoints at some central places of sales order processing like for example BAdI Implementations of SD_SLS_MODIFY_HEAD or SD_SLS_CHECK_BEFORE_SAVE.

3. The Sales Order APIs do not call any BAPI in the end. Therefore your breakpoint will not hit in BAPI_SALESORDER_CREATEFROMDAT2 for any of that APIs

best regards,
Christian