10-17-2008 9:17 AM
Hi Gurus,
I'm getting data from db table to a table control in screen. But some currency amount data are having the value zero. I don't want to display the zero value but instead I just want the cell to be blank in the table control.
Pls advice how it can be done. Thks.
10-17-2008 9:29 AM
Hi,
Try like,
SHIFT text RIGHT DELETING TRAILING '0'. "or LEFT
Regards.
10-17-2008 9:32 AM
Hi,
But how do I do it in a table control. Could you kindly explain with an example. Thks.
10-17-2008 9:49 AM
10-17-2008 9:54 AM
LVC_S_FCAT-NO_ZERO should be used in an ALV. But I'm using table control in a screen.
10-17-2008 9:55 AM
Go to screen painter.
Double clock on that field.In attributes select 'Dict' tab and change format to CHAR.
10-17-2008 10:01 AM
In the column, some rows have data and some rows have value zero. But if the change the type to char the entire colum becomes blank/no value.
10-17-2008 10:12 AM
why dont you change data type of currency
into char in internal table only
it will differentiate space and 0
then in PAI move back this character value
to currency in internal table
if its input field then u can prevent user to enter
character value also
Regards,
Alpesh
10-17-2008 10:30 AM
hi,
you are moving datas from prg field to screen field in PBO loop statement.you can restic the zero value. like
if amt ne 0.
move prg-fld to scr-fld.
endif.