Application Development 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: 

there are some doubt about the two bapi to create so.

former_member189009
Active Participant
0 Kudos
121

Hi all

       I need to create so using the  'BAPI_SALESORDER_CREATEFROMDAT2'  or  'BAPI_SALESORDER_CREATEFROMDAT1'.

         What is the different between this two bapi, and in which condition we use  'BAPI_SALESORDER_CREATEFROMDAT2'  , in which condition we use the other one.

Think in advance.


5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos
82

Please check the interface of both , you will know the difference.

former_member215575
Active Participant
0 Kudos
82

Hi Zhang,

The two BAPI's are from different SAP releases and you need to use the BAPI from most recent release.

'BAPI_SALESORDER_CREATEFROMDAT1' is from Release 4.0A and BAPI_SALESORDER_CREATEFROMDAT2 is from As of Release 4.5B

If you look inside (coding) BAPI - 'BAPI_SALESORDER_CREATEFROMDAT1', you can find SAP calls 

function 'BAPI_SALESDOCU_CREATEFROMDATA'  which SAP recommends not to use from release 4.5B.

Refer note 93091 for more information on SD - BAPI's


Regards,

Sravan Guduru

0 Kudos
82

Thank you, Sravan

    But i am so sorry i write the wrong bapi,  it should be BAPI_SALESORDER_CREATEFROMDAT2  and BAPI_SALESDOCU_CREATEFROMDATA1.

0 Kudos
82

Please do some research for difference between sale order and sales document. Look at table TVAK.

0 Kudos
82

Thank you so much. I will do some research.