Skip to Content
author's profile photo Former Member
Former Member

Formatting of the column for ALV grid

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2008 at 03:55 AM

    Hi,

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

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

    Regards

    Debarshi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2008 at 05:31 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2008 at 09:07 PM

    Thanks Debarshi and Rock!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.