Application Development 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: 

Change log conditions - /AFS/BAPI_SALESORD_CHANGE

gustavo_prado
Participant
0 Kudos

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

2 REPLIES 2

former_member198900
Participant
0 Kudos

what is the data type of "is_descontos-valor"???

data type of "is_condit-cond_value" is

BAPIKBETR1DEC289

so I think is_descontos-valor is working like string here. Conversion is neede here.

Regards,

Rupom

0 Kudos

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