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: 

Formatting of the column for ALV grid

Former Member
0 Kudos

Hi all,

I have a custom report o/p in form of ALV GRID.

Now my problem is one of the columns/fields of the ALV GRID structure is of the type CHAR 15 but the value I am displaying in that column is of type pe CURR 15 ,2.

Hence for the blank rows in the ALV grid for that particular column,I still can see 0.00 as the o/p.How can i get rid of this unwanted 0.00 in the blank rows of the ALV grid?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use no_zero in the field catalogue for that particular field.......


i.e.wa_fcat-no_zero = 'X'.

Regards

Debarshi

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use no_zero in the field catalogue for that particular field.......


i.e.wa_fcat-no_zero = 'X'.

Regards

Debarshi

Former Member
0 Kudos

I also had similar issue,I used the following code after 'REUSE_ALV_FIELDCATALOG_MERGE'


  LOOP AT t_fldcat INTO w_fldcat WHERE fieldname NE 'ZVER'
                                  AND fieldname NE 'ZSNO'.

    w_fldcat-no_zero = 'X'.

    MODIFY t_fldcat FROM w_fldcat.

  ENDLOOP.

Or if you build fieldcatalog manually then use :


    w_fldcat-no_zero = 'X'.

for the fields you dont want zeros.

Thanks & Regards,

Rock.

Former Member
0 Kudos

Thanks Debarshi and Rock!