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: 

Bapi for Sales Order (VA02) change

Former Member
0 Kudos
710

hi frnds,

i need to update one field of Sales order item. i feel BAPI_SALESORDER_CHANGE is right bapi for doing this. can u tell me step by step procedure for this. remember this is my first bapi. first i thought to do in BDC and i feel Bapi is good than BDC. i thought to do it in Bapi.

i am expecting your valuable help for doing this.

Regards,

Balu

2 REPLIES 2

Former Member
0 Kudos
121

Hi,

In the bapi funciton module you have to pass document number as your sales order numbrs.In the header check box structure ORDER_HEADER_INX you have to populate the UPDATE falg as U.This is very important.After that you can simply populate the header fields which you want to change data in structure ORDER_HEADER_IN

If you want to change the item data in the bapiitem table and like this there is check box table in that you have to put X for particular field.

After bapi you must use BAPI_TRANSACTION_COMMIT function moduel.

Thanks,

shyla