Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI/FM Create sales order

AJeB
Participant
0 Likes
2,055

what is the difference of these bapi/fm and which one has the advantage

SD_SALESDOCUMENT_CREATE, BAPI_SALESORDER_CREATEFROMDAT2

i also check the fields of these two and the fields are almost same

1 ACCEPTED SOLUTION
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
2,009

Hello bolivs22

Functionally those two functions are almost the same. In fact BAPI_SALESORDER_CREATEFROMDAT2 uses SD_SALESDOCUMENT_CREATE internally.

The main difference is that BAPI_SALESORDER_CREATEFROMDAT2 is released for customer usage:

whereas SD_SALESDOCUMENT_CREATE is not.

You should use BAPI_SALESORDER_CREATEFROMDAT2 in your developments. It is safer and SAP supports it and guarantees its stability - SAP Help Advantages of BAPIs

Best regards

Dominik Tylczynski

what is the difference of these bapi/fm and which one has the advantage

SD_SALESDOCUMENT_CREATE, BAPI_SALESORDER_CREATEFROMDAT2

i also check the fields of these two and the fields are almost same

2 REPLIES 2
Read only

Neeraj_Jain1
Active Contributor
0 Likes
2,009

Hello bolivs22,

Please refer below SAP thread for detailed explanation of difference between a BAPI and FM.

https://answers.sap.com/questions/2535069/what-is-the-difference-between-a-bapi-and-function.html

Regards,

Neeraj Jain

Best Regards,
Neeraj Jain
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
2,010

Hello bolivs22

Functionally those two functions are almost the same. In fact BAPI_SALESORDER_CREATEFROMDAT2 uses SD_SALESDOCUMENT_CREATE internally.

The main difference is that BAPI_SALESORDER_CREATEFROMDAT2 is released for customer usage:

whereas SD_SALESDOCUMENT_CREATE is not.

You should use BAPI_SALESORDER_CREATEFROMDAT2 in your developments. It is safer and SAP supports it and guarantees its stability - SAP Help Advantages of BAPIs

Best regards

Dominik Tylczynski