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 for sales order

Former Member
0 Likes
833

Hi guys,

Can you please provide me step by step to use BAPI for creating and changing a sales order.

Thanks

Rajeev Gupta

Hi guys,

Can you please provide me step by step to use BAPI for creating and changing a sales order.

Thanks

Rajeev Gupta

5 REPLIES 5
Read only

Former Member
0 Likes
735

Hi Rajat,

Check these BAPI

BAPI_SALESORDER_CHANGE

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Regards

Arun

Read only

0 Likes
735

Hey Arun,

Thanks for the reply, but actually I am new so can you elaborate little bit more.

I mean step by step .

thanks

Rajeev Gupta

Read only

gopi_narendra
Active Contributor
0 Likes
735

BAPI_SALESORDER_CREATEFROMDAT1 - this bapi is obsolete as of Release 46C !

BAPI_SALESORDER_CREATEFROMDAT2 - can be used to create a Sales Order

BAPI_SALESORDER_CHANGE - can be use to change a Sales Order

Regards

Gopi

Read only

Former Member
0 Likes
735

<b>BAPI_Salesorder_createfromdat1</b> creates a complete sales order from the data entered while <b>BAPI_Salesorder_change</b> is just used to change the data in an existing sales order. The flag 'I' is used to insert a line item in the Sales order. it does not create a new sales order.

Regards

Read only

Former Member
0 Likes
735

Hi Rajat,

For creating or changing the instances of business object, foll methods are used:

<b>1. Create or CreateFromData:</b>

The BAPI Create or CreateFromData creates an instance of an SAP Business Object, for example, a purchase order.

<b>2. Change:</b>

The BAPI Change changes an existing instance of a SAP Business Object, for example, a purchase order.

For the Sales Order,

1. BAPI_SALESORDER_CREATEFROMDATA1

2. BAPI_SALESORDER_CREATEFROMDATA2

3. BAPI_SALESORDER_CHANGE

<b>Reward Points if useful</b>

Harish