Skip to Content
0

BAPI_SALESORDER_CHANGE to change item detail configuration

Aug 22, 2017 at 02:10 PM

72

avatar image

Hello everyone

We need to copy SO item and change the item detail configuration values.

We are using the BAPI_SALESORDER_CHANGE.

All the items are copied but some items detail configuration are not.

We have noticed the item detail configuration that are not copied are service items.

The configurations of the other item types are copied.

When we are creating the item manually, with VA02, the configuration is added. We can see it in VBAP-CUOBJ field.

The following table parameters are pass to the BADI:

order_item_in

order_item_inx

order_cfgs_ref
order_cfgs_inst
order_cfgs_value
order_cfgs_vk
schedule_lines
schedule_linesx
order_text
conditions_in
conditions_inx
extensionin
extensionex

What should we do to be able to entirely copy an item within the same SO?

Regards

Daniel

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Daniel St-Jacques Aug 29, 2017 at 01:42 PM
0

For benefits of all

The problem was created because the follow fields were not fulfilled.

order_item_in-po_itm_no = posnr

order_item_inx-po_itm_no = 'X'.

Problem solved

Share
10 |10000 characters needed characters left characters exceeded