cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI vs API (S/4HANA)

Louis-Arnaud
Active Participant
3,755

Hello,

On ECC, we used BAPI's for creating/updating... SAP objects in ABAP.

For example, in order to create a purchase order, it would be recommanded to use BAPI_PO_CREATE1.

In S/4 HANA, SAP has created lots of standards API's. Theses API's are based on oData protocol and I understand that this is the recommanded way to update SAP objects. Of course, in ABAP, it wouldn't make any sense to call an HTTP request to create a purchase order, but, if we look inside the implementation of the API of purchase orders, we can find an interesting class :

CL_MM_PUR_PO_PROCESS_API

Question : Should we now use these kind of API class instead of classical BAPI's for updating SAP objects in ABAP ?

Thank you,

Louis-Arnaud

Accepted Solutions (0)

Answers (2)

Answers (2)

matt
Active Contributor
0 Likes

I think if you're on the ABAP stack, then you should use the BAPIs. However, it is a useful tip that s4hana has these apis - because if there isn't a BAPI, it'd be a good alternative!

SamayNanda
Explorer
0 Likes

Please let me know if you found an answer to this question? We are also looking at a similar problem right now

matt
Active Contributor
0 Likes

You should not post questions as answers. Post them as comments to the original question or post a new question.