09-26-2008 10:41 AM
Hello experts,
Can I use BAPI "BAPI_SALESORDER_CHANGE" to create an new item line on a sales order?
I read on the FM Documentation that it's possible, but there is a check into the code of the BAPI that only allows Update and Delete mode.
If the answer is No, what BAPI can I use?
Many thanks!!
09-26-2008 10:49 AM
Hi,
BAPI_SALESORDER_CHANGE is the bapi which you can use to add new line items in the existing sales order. You have got a flag field in the line item structure which tells you whether that line item has to be added or deleted or changed.
Your BAPI is perfectly fine, you just need to check out the fields in the line item structure to achieve your requirement.
Thanks,
Mahesh.
09-26-2008 10:43 AM
Hi,
Yes you can use the BAPI_SALESORDER_CHANGE to create a new Item.
Use the update flag as 'I' = add
regards,
Advait.
09-26-2008 10:43 AM
hai,
use f.m BAPI_SALESORDER_CREATEFROMDAT2 to create sales order.
shan.
09-26-2008 10:49 AM
Hi,
BAPI_SALESORDER_CHANGE is the bapi which you can use to add new line items in the existing sales order. You have got a flag field in the line item structure which tells you whether that line item has to be added or deleted or changed.
Your BAPI is perfectly fine, you just need to check out the fields in the line item structure to achieve your requirement.
Thanks,
Mahesh.
10-03-2008 11:35 AM
hi,
function module BAPI_SALESORDER_CHANGE is perfectly fine to change ur data. if not use the f.m BAPI_SALESORDER_CREATEFROMDAT2
and create with the same name. the bapi will over write the first one. it wont throw any errors.
regards,
rajeev