2008 Jul 14 1:55 PM
hi all,
I have a coulmn in my hierchial list display which will have
whose type is CURR , and its values is 0.00 .
my query is i dont want to dispay 0.00 , and it should be space ... how to do it..
things i have done..
i have moved this value to a varaible type 'char' and then moved space to that new variable but it didnt work.
please help.
2008 Jul 14 2:01 PM
Mayank,
use this code.
loop at itab where <your curr field> = '0.00'.
itab-<your curr field> = ' ' .
modify itab transporting <your curr field>.
endloop.Amit.
Mayank,
use this code.
loop at itab where <your curr field> = '0.00'.
itab-<your curr field> = ' ' .
modify itab transporting <your curr field>.
endloop.Amit.
2008 Jul 14 2:01 PM
Mayank,
use this code.
loop at itab where <your curr field> = '0.00'.
itab-<your curr field> = ' ' .
modify itab transporting <your curr field>.
endloop.Amit.
2008 Jul 14 2:06 PM
Hi Mayank,
Try this way :
Loop at itab.
IF itab-price = '0.00'.
Continue.
Else.
Write :/ itab-price.
Endif.
Endloop.Regards,
Swapna.
2008 Jul 14 2:06 PM
Hi,
While filling the output internal table take the currency field as CHAR and use the below condition if currency exist(while filling the currency).
if v_curr_val > 0.
write v_curr_val to gt_output-curr_val.
endif.
Append gt_output.
2008 Jul 14 2:25 PM
Hi,
You Can Replace the filed with Space.
like.
Loop at itab into wa.
if wa-price = '0.00'.
REPLACE wa-price with SPACE into Wa-price.
endif.
Write: wa-price.
Endloop.
Hope it will help you.
Regards,
Sujit
2008 Jul 14 10:58 PM
use in field catalog STRUCT_FIELDCAT-NO_ZERO = 'X'.
Thanks,
Kinjal
2008 Jul 15 3:08 AM
Hi,
loop at itab into wa.
if wa-price = '0.00'.
continue.
endif.
write:/ wa-price.
endloop.
Regards.
Sriram.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |