Skip to Content
0
May 26, 2014 at 08:29 PM

Change log conditions - /AFS/BAPI_SALESORD_CHANGE

110 Views

Hi experts,

I'm using the fm /AFS/BAPI_SALESORD_CHANGE, and when i change a condition in a order, the value is calculated normally, but the change log shows a (value*10) on the message.

I'm populating the parameter as shown:

is_condit-itm_number = '000000'.
is_condit-sched_line = '0000'.
is_condit-cond_type = is_descontos-kschl.
is_condit-cond_value = is_descontos-valor * 10.
is_condit-currency = is_header-waers.
is_condit-cond_p_unt = '1'.
is_condit-calctypcon = 'A'.
is_condit-condcntrl = 'C'.
is_condit-condchaman = 'X'.

is_condit-cond_updat = 'X'.

is_condit-cond_count = '01'.

append is_condit to it_condit.


is_conditions_inx-cond_count = '01'.
is_conditions_inx-cond_type = is_descontos-kschl.
is_conditions_inx-cond_value = 'X'.
is_conditions_inx-updateflag = 'U'.
is_conditions_inx-currency = 'X'.
append is_conditions_inx to it_conditions_inx.


Note that the "is_descontos-valor * 10" is necessary because if i send just the is_descontos-valor, the value on the calc will be 0,value.


Anyone could help ?


Regards,

Gustavo