cancel
Showing results for 
Search instead for 
Did you mean: 

To supress zero in the Printout.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Then don't use Z and don't use 1, Shiva has already said;

I - for intial value suppression

Regards,

Nick

Former Member
0 Kudos

Hi,

i already mentioned in the above.

Regards,

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

Edited by: shiva kumar on Apr 11, 2008 1:31 PM

Former Member
0 Kudos

Hi Shiva,

No its not working.

Is there any other options.

Please let me know.

Regards,

Bhuvana.

Former Member
0 Kudos

use CONVERSION_EXIT_ALPHA_OUTPUT to supress initial zeros in the callin report of FORM

and then pass this field (with suppressed zeros) to form

Former Member
0 Kudos

Hi,

Then try with this:

/ &ITAB-NETWR(Z)(.2)&

Regards,

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

Former Member
0 Kudos

Hi,

If the formatting option I is not working (although if your field is of type decimal there's no reason why it shouldn't) you could use an IF statement around your variable to only display it if it is not equal to 0.00.

Regards,

Nick

Former Member
0 Kudos

Hi Friends,

I tried all the thing u said

But its not working.

Provide me some other solution.

Regards,

Bhuvana.

Former Member
0 Kudos

Hi,

Let me re-phrase my last suggestion (as I originally thought your were using SAPscript).

Go to the Text element that holds this variable go to the conditions tab and add the condition that your variable should not be equal to 0.00

Regards,

Nick

Former Member
0 Kudos

Hi Nick Young ,

Thank u very muchmy problem solved.

Regards,

Bhuvana.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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. 

Former Member
0 Kudos

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).

Former Member
0 Kudos

use CONVERSION_EXIT_ALPHA_OUTPUT