09-10-2007 12:30 PM
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.
09-10-2007 12:37 PM
09-10-2007 12:39 PM
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
09-10-2007 12:42 PM
hi
good
it means multiply the val_forcur value with 1.
thanks
mrutyun
09-10-2007 12:44 PM
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)