Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Supressing zero values in table control

Former Member
0 Kudos

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.

8 REPLIES 8

Former Member
0 Kudos

Hi,

Try like,

SHIFT text RIGHT DELETING TRAILING '0'. "or LEFT

Regards.

Former Member
0 Kudos

Hi,

But how do I do it in a table control. Could you kindly explain with an example. Thks.

0 Kudos

Hello

LVC_S_FCAT-NO_ZERO = 'X'

Former Member
0 Kudos

LVC_S_FCAT-NO_ZERO should be used in an ALV. But I'm using table control in a screen.

Former Member
0 Kudos

Go to screen painter.

Double clock on that field.In attributes select 'Dict' tab and change format to CHAR.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.