on 10-04-2007 3:48 PM
Hi All,
ZDEBITNOTE form printing local currency in '1000.00' format...
But if currency eq 'JPY' ..I don't want to print decimals .. how can I make changes in form????
thanks
It is quite simple... write your condition like this...
EX:
IF &CURRENCY& EQ JPY.
&AMOUNT(.0)& "it print without decimals.it works for data type DEC, Quant,FLTP
ENDIF.
CLose the thread if your question is answered.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do this way...
PERFORM convert_amount USING wa_it_konp-konwa
wa_it_konp-kbetr
l_amt1.
FORM convert_amount USING wa_it_konp-konwa
wa_it_konp-kbetr
l_amt.
DATA: l_curr LIKE tcurc-waers,
l_amt1 LIKE bapicurr-bapicurr,
l_amt2 LIKE bapicurr-bapicurr.
IF wa_it_konp-konwa = 'JPY'.
l_curr = wa_it_konp-konwa.
l_amt1 = wa_it_konp-kbetr.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_curr
amount_internal = l_amt1
IMPORTING
amount_external = l_amt2.
l_amt = l_amt2.
ELSE.
l_amt = wa_it_konp-kbetr.
ENDIF.
ENDFORM. " CONVERT_AMOUNT
IF wa_it_konp-konwa = 'JPY'.
l_amt2 = l_amt1.
wa_it_final-kbetr = l_amt2.
ELSE.
wa_it_final-kbetr = l_amt1.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.