Skip to Content

How to set NETWR field in blank.

Hi all,

I wonder is possible set netwr in blank, I mean '' no '0'. Is it possible?

I have that field in an ALV grid (for purchasing). If the record haven't any price appears 0 and it seems that the purchase is free. I would like that appears in blank ' ' better than 0. And I cannot change NETWR data type. So, how can I do that?

Regards,

José Antonio.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 26 at 02:32 PM

    Do you use ALV (as in initial post, 'I have that field in an ALV grid...') or table control?

    In either case try to clear the currency code associated to the amount for this line/record, like (field ZMM_RES_COIN...) in your screenshot.


    Add comment
    10|10000 characters needed characters exceeded

  • Jan 26 at 11:53 AM

    NETWR is a currency amout field (CURR), so in your ALV it must be associated to a currency code (CUCY) in the field catalog.

    The trick is: clear the currency code (must be another field and not a constant of course), 0 should be replaced by space. (ref: Value Display with Currency/Quantity Unit)

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 26 at 12:11 PM

    Hi,

    For various reasons, If Raymond Giuseppi's solution is not feasible in your case, you can always use a naive solution of converting that column (prior to output) to a string one and do with it as you please.

    Add comment
    10|10000 characters needed characters exceeded