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: 

BAPI/FM Create sales order

AJeB
Participant
0 Kudos
412

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

DominikTylczyn
SAP Champion
SAP Champion
368

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

2 REPLIES 2

Neeraj_Jain
Active Contributor
0 Kudos
368

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

DominikTylczyn
SAP Champion
SAP Champion
369

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