05-26-2014 9:29 PM
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
05-27-2014 5:46 AM
what is the data type of "is_descontos-valor"???
data type of "is_condit-cond_value" is
BAPIKBETR1 | DEC | 28 | 9 |
so I think is_descontos-valor is working like string here. Conversion is neede here.
Regards,
Rupom
05-27-2014 12:54 PM
Hi Atiul,
The data type of "is_descontos-valor" is konv-kbetr and even i changing the data type to bapikbetr1, the change log continue to show wrong.
When i put a value on VA02, this problem not occurs.
Regards,
Gustavo