Skip to Content
avatar image
Former Member

To supress zero in the Printout.

Hi gurus

I am printing invoice using smartforms.

in that if i get zero balance, then that zero should be supressed.

Help me to solve this problem.

Thanks in advance.

Regards,

Bhuvana.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 11, 2008 at 11:24 AM

    Hi shiva,

    Thank u for ur kind help.

    But i got another problem, My values are Decimals.

    For eg : a = 0.00

    IF i use Z , a = .00

    if i use 1 , a = 0.

    how to solve this

    Regards,

    Bhuvana

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2008 at 11:01 AM

    use CONVERSION_EXIT_ALPHA_OUTPUT

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2008 at 11:03 AM

    Hi,

    use this:

    Use Z along with the field for suppression of leading zeros

    / &ITAB-NETWR(Z)&

    I - for intial value suppression

    S -no sign

    (.1) - 1 decimal, (.0) no decimals

    Regards,

    If helpful reward with points(Don't forget).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2008 at 11:04 AM

    Hi,

    Make use of CONVERSION_EXIT_ALPHA_OUTPUT FM in the print/driver program ...

    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
       INPUT = wa_final-quan
    IMPORTING
       OUTPUT = wa_final-quan. 

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2008 at 11:06 AM

    Hi,

    Pls Ckh the condition for the field in the text-element condition tab.

    as fieldname <> 0.

    If the condition is true then the blance will be displayed

    else the balance will not be displayed.

    Regards,

    Soumya

    Add comment
    10|10000 characters needed characters exceeded