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

how can remove 0 one neumeric field if no value display

hi,

I have one requirement that in my zreport one column i have taken quantity field which is a neumeric field. but when there is no quantity in report it shows 0. but my customer want it should be ' ' <blank> bcz 0 indicates some different meaning . so how can i do this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 04:37 PM

    Hi,

    If you are displaying it in ALV report, then there will be an option in the field catalog table to supress fields with blank values. Make the field no_zero = 'X' in the field catalog table.

    If its a normal report then take a char field for ouput of your numeric field, populate the char field is the numeric field has any value display it.

    Thanks,

    Vamshi.

    edited by vamshi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2008 at 04:58 PM

    Try:

    WRITE: /001 ITAB-FIELD NO-ZERO.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 28, 2008 at 04:11 AM

    Hi Anil,

    If you are using ALV, then mark no_zero field in fieldcatalog = 'X' i.e.

    <fieldcatalog>-no_zero = 'X'.

    However, if you are using classical report, then use char type field for storing the quantity. It will automatically display ' ' (blank) if the field is empty.

    Reward points if helpful.

    Regards,

    Vishal.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 05:23 AM

    Hi Anil,

    Use thie statement

    REPLACE ALL OCCURRENCES OF '0' IN I_FINAL_F1 WITH ' '.

    Now it with space.

    Hope this helps you. Reply for queries, shall post the updates.

    Regards.

    Kumar.

    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.