2007 Aug 27 11:11 AM
Hi,
I'm trying to print negative values in ALV (Grid display). In output i'm getting value first and after that '-' symbol. like,
Total Amount
-
340.00 -
24.00 -
....
How to print the minus symbol infront of the value in ALV display? Please help me.
Thanks in Advance.
Hi,
I'm trying to print negative values in ALV (Grid display). In output i'm getting value first and after that '-' symbol. like,
Total Amount
-
340.00 -
24.00 -
....
How to print the minus symbol infront of the value in ALV display? Please help me.
Thanks in Advance.
2007 Aug 27 11:14 AM
Hi,
Use the FM
<b>CLOI_PUT_SIGN_IN_FRONT</b>
Sample Program for this FM,
data : val1 like vbap-netpr.
val1 = '12345.21'.
val1 = val1 * -1. "ur value
write:/ val1. " negative at the end
data : val(13) type c. " declare a char variable
move val1 to val.
write:/'Still', val.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = val. "sign is put ot front.
write:/'Now', val.
Regards,
Padmam.
2007 Aug 27 11:18 AM
hi,
use the fun mod -- <b>CLOI_PUT_SIGN_IN_FRONT</b>
before appending the value into the itab.....
then append and print
With Rgds,
S.Barani
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |