Skip to Content
0
Former Member
May 03, 2005 at 03:18 PM

BAPI_SALESORDER_CHANGE conditions

280 Views

Hello all,

I use the BAPI "BAPI_SALESORDER_CHANGE" to update conditions. I'm using the following data:

order_header_in-updateflag = 'U'

conditions_in-itm_number = w_konv2-kposn.
conditions_inx-itm_number = k_checked.

conditions_in-cond_st_no = '85'.
conditions_inx-cond_st_no = k_checked.

conditions_in-cond_count = '0'.
conditions_inx-cond_count = k_checked.

conditions_in-cond_type = 'Z999'.
conditions_inx-cond_type = k_checked.

conditions_in-cond_value = w_condition-cond_value / 10.
conditions_inx-cond_value = k_checked.
conditions_inx-updateflag = 'U'.

APPEND conditions_in TO conditions_in.
APPEND conditions_inx TO conditions_inx.

The function returns no error and the BAPI "BAPI_TRANSACTION_COMMIT" is called after processing. Instead of updating the conditions the bapi insert a new item.

Can anyone help me?

Best regards

Petra Rimkus