‎2008 Apr 07 8:18 AM
Hi friends,
In my report there r few Doc types ZA05 & ZCF2 for
Which i have to multiple by -1 .
But the requirement is to display the negative value in hard core.
Can any one help me...
pls send me a sample code..
‎2008 Apr 08 11:32 AM
Hi,
Use this macro in your program :
define format_amt.
write &1 to g_amt_out currency &2 left-justified no-sign.
if &1 lt 0.
concatenate '-'
g_amt_out
into g_amt_out.
endif.
shift g_amt_out right deleting trailing space.
end-of-definition.
I hope you know that &1 and &2 are placeholders.. So, when you have to use this on an amount, just use it as:
format_amt <amount-field> <currency-field>
eg: format_amt 1000 'EUR'.
Reward points pls..
Rahul