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_SALESORDER_CHANGE

Former Member
0 Likes
443

Hi all,

1. Is it possible to use BAPI_SALESORDER_CHANGE to append new materials to the existing Sales order.

2. Already i am updating only the quantity fields of the material using this BAPI.

I need sample program to append new materials to the existing Sales order.

Thanks.

Hi all,

1. Is it possible to use BAPI_SALESORDER_CHANGE to append new materials to the existing Sales order.

2. Already i am updating only the quantity fields of the material using this BAPI.

I need sample program to append new materials to the existing Sales order.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
420

Yes we can insert new line items in sales order using above mentioned BAPI.

See that the Update flag in item flag table is set to 'I' for the new item .

Regards

Eswar

Read only

Former Member
0 Likes
420

Hi.

Sales order: Change Sales Order

Functionality

You can use this method to change or delete sales orders.

You can change header, item, schedule line and configuration data.

In general, note that you should:

Only specify fields that should be changed

Select these fields by entering an X in the checkboxes

Enter a U in the UPDATEFLAG field

Always specify key fields when changing the data, including in the checkboxes

The configuration is an exception here. If this needs to be changed, you need to complete it again fully.

Maintain quantities and dates in the schedule line data

Possible UPDATEFLAGS:

U = change

D = delete

I = add

Example

1. Delete the whole order

2. Delete order items

3. Change the order

4. Change the configuration

Notes

1. Minimum entry:

You must enter the order number in the SALESDOCUMENT structure.

You must always enter key fields for changes.

You must always specify the update indicator in the ORDER_HEADER_INX.

2. Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

<REMOVED BY MODERATOR>

Jay

Edited by: Alvaro Tejada Galindo on Feb 14, 2008 5:17 PM