Skip to Content
0
Former Member
Dec 02, 2009 at 03:56 PM

bapi_salesorder_change issue with line item addition

376 Views

Hi Gurus,

I am calling the bapi : bapi_salesorder_change in a custom ABAP program, now I am running into issues here. My objective is to insert a new line item into the sales order. I am passing the following parameters :

salesdocument = sales document number

order_header_in = sales org, dist channel, division, purch date,

order_header_inx = 'U'

tables :

order_item_in : itm_number = new item posnr

material = material number

target_qyt and target_qu

order_item_inx : updateflag = 'I'

I am getting the following message in the return table:

S V4 233 ORDER_HEADER_IN has been processed successfully

S V4 233 ITEM_IN has been processed successfully

W V1 555 The sales document is not yet complete: Edit data

S V1 311 AgUS TrmtCons Fillup 64073 has been saved

There is no new line item when I check the sales order.