2009 Dec 14 3:20 PM
Hi ,
I have to update the characteristics of a material against a sales order,
So i am using BAPI_SALESDOCUMENT_CHANGE for the same.
the datas passed by me are
exporting
i_salesdodument = <sales order number>
i_order_header_inx-updateflag = U.
importing.
i_item_in-im_no = 000010
i_item_in-po_item = 10
i_item_in-material = 261
i_item_inx-itm_nu = 000010
i_item_inx-updateflag = U
it_sales_cfgs_ref-posex = 000010
it_sales_cfgs_ref-config = 000002 therse datas i gave with the help of BAPISDORDER_GETDETAILEDLIST
it_sales_cfgs_ref-root_id = 00000001
it_sales_cfgs_inst-config = 000002
it_sales_cfgs_inst-inst_id = 00000001
it_sales_cfgs_inst-obj_type = mara
it_sales_cfgs_inst-obj_key = <material no>
it_sales_cfgs_inst-quantity = 2 "i have tried to change the quantity
it_sales_cfgs_inst-unit = ea
it_sales_cfgs_inst-object_guid = <material nno>
for changing value in characteristics
it_sales_cfgs_value-config = 000002
it_sales_cfgs_value-inst_id i= 00000001
it_sales_cfgs_value-charc = polishing
it_sales_cfgs_value-value = dl " the characteristic value i have to change in the sales order.
i have passed all the above datas and also added commit for updating into DB,
Its returning me 4 success messages in return
which are
vbakkom has been processed successfully v4 233
vbapkom has been processed successfully v4 233
custom order <sales order no> has been saved v1 311
custom order <sales order no> has been saved v1 311
but when i open my sales order no changes are done ????
Can any one help me to get through this???
pls reply me
2009 Dec 14 4:11 PM
First checking list: do you call BAPI_TRANSACTION COMMIT after checking returns are ok?
>
> i have passed all the above datas and also added commit for updating into DB,
Edit: I just re-read your post
The commit you added is the BAPI one or just a plain COMMIT?
Edit: Check filling the field VALUE_TO of the characteristics table too.
Hi ,
I have to update the characteristics of a material against a sales order,
So i am using BAPI_SALESDOCUMENT_CHANGE for the same.
the datas passed by me are
exporting
i_salesdodument = <sales order number>
i_order_header_inx-updateflag = U.
importing.
i_item_in-im_no = 000010
i_item_in-po_item = 10
i_item_in-material = 261
i_item_inx-itm_nu = 000010
i_item_inx-updateflag = U
it_sales_cfgs_ref-posex = 000010
it_sales_cfgs_ref-config = 000002 therse datas i gave with the help of BAPISDORDER_GETDETAILEDLIST
it_sales_cfgs_ref-root_id = 00000001
it_sales_cfgs_inst-config = 000002
it_sales_cfgs_inst-inst_id = 00000001
it_sales_cfgs_inst-obj_type = mara
it_sales_cfgs_inst-obj_key = <material no>
it_sales_cfgs_inst-quantity = 2 "i have tried to change the quantity
it_sales_cfgs_inst-unit = ea
it_sales_cfgs_inst-object_guid = <material nno>
for changing value in characteristics
it_sales_cfgs_value-config = 000002
it_sales_cfgs_value-inst_id i= 00000001
it_sales_cfgs_value-charc = polishing
it_sales_cfgs_value-value = dl " the characteristic value i have to change in the sales order.
i have passed all the above datas and also added commit for updating into DB,
Its returning me 4 success messages in return
which are
vbakkom has been processed successfully v4 233
vbapkom has been processed successfully v4 233
custom order <sales order no> has been saved v1 311
custom order <sales order no> has been saved v1 311
but when i open my sales order no changes are done ????
Can any one help me to get through this???
pls reply me
2009 Dec 14 4:11 PM
First checking list: do you call BAPI_TRANSACTION COMMIT after checking returns are ok?
>
> i have passed all the above datas and also added commit for updating into DB,
Edit: I just re-read your post
The commit you added is the BAPI one or just a plain COMMIT?
Edit: Check filling the field VALUE_TO of the characteristics table too.
2009 Dec 15 4:17 AM
Hi ,
thanks for ur reply Vincenc. I tried out your suggestion filled the value_to field also, but still its nt getting updated.
I have used BAPI_TRANSATION_COMMIT for updating .
What shall i do ??
2009 Dec 15 10:14 AM
Can you paste here the code you are using? (please, use the tags). I'm not much familiar with that BAPI nor with sales orders, but maybe someone here will be able to lend a hand
2009 Dec 16 4:51 AM
HI,
I have arrived to a solution by using BAPI_SALESORDER_CHANGE for changing Material Characteristics.
Its working perfectly (updating in the database).
thanks.
2010 Feb 10 8:20 AM
Hi,
I am also facing the same issue in updating material characteristics via BAPI_SALESORDER_CHANGE. Can you please share your resolution.
Thanks
HR
2010 Nov 18 1:01 PM
Hi,
I trying to update characteristics using this BAPI, but characteristics are not updated, please anyone can share the sample code or required parameters to pass to BAPI.
Thanks
RK
2010 Nov 18 2:23 PM
Hi,
i am also facing the same issue in updating material characteristics via BAPI_SALESORDER_CHANGE. Can you please share your resolution.
2010 Nov 18 2:26 PM
Have a look at collective note 774346. There is even an example you can use.