2023 Apr 05 2:45 AM
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
2023 Apr 05 11:58 AM
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
2023 Apr 05 2:57 AM
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
2023 Apr 05 11:58 AM
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