2007 Mar 27 6:35 AM
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
2007 Mar 27 6:41 AM
2007 Mar 29 7:18 AM
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