Application Development and Automation 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: 
Read only

BAPI_SALESDOCUMENT_CHANGE for changing material characteristics

Former Member
0 Likes
3,498

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

1 ACCEPTED SOLUTION
Read only

VXLozano
Active Contributor
0 Likes
2,340

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

8 REPLIES 8
Read only

VXLozano
Active Contributor
0 Likes
2,341

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.

Read only

Former Member
0 Likes
2,340

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 ??

Read only

0 Likes
2,340

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

Read only

Former Member
0 Likes
2,340

HI,

I have arrived to a solution by using BAPI_SALESORDER_CHANGE for changing Material Characteristics.

Its working perfectly (updating in the database).

thanks.

Read only

0 Likes
2,340

Hi,

I am also facing the same issue in updating material characteristics via BAPI_SALESORDER_CHANGE. Can you please share your resolution.

Thanks

HR

Read only

0 Likes
2,340

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

Read only

0 Likes
2,340

Hi,

i am also facing the same issue in updating material characteristics via BAPI_SALESORDER_CHANGE. Can you please share your resolution.

Read only

0 Likes
2,340

Have a look at collective note 774346. There is even an example you can use.