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: 

Code Meaning

Former Member
0 Kudos

Hi Gurus,

Please check the below coding.

IF wa_t_history-db_cr_ind EQ 'H'.

-


> wa_t_history-val_loccur = wa_t_history-val_loccur * - 1.

wa_t_history-val_forcur = wa_t_history-val_forcur * - 1.

wa_t_history-quantity = wa_t_history-quantity * - 1.

ENDIF.

see in the second line i marked by arrow.

wa_t_history-val_loccur = wa_t_history-val_loccur * - 1.

can u please tell me what is the meaning of * - 1.

4 REPLIES 4

Former Member
0 Kudos

multiplying by ( -1).

regards

Vasu

Former Member
0 Kudos

Note that its a currency field..and its being multiplied by -1.

That could be the local currency has been debited in FI terms.

regards,

Reema

Former Member
0 Kudos

hi

good

it means multiply the val_forcur value with 1.

thanks

mrutyun

Former Member
0 Kudos

When

wa_t_history-db_cr_ind = 'H'.

then

Multiply all the below three variable with -1.

wa_t_history-val_loccur

wa_t_history-val_forcur

wa_t_history-quantity

example if wa_t_history-val_loccur = 10 before

after execution it will be -10 (minus 10)