Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

avoid printing zero values in sapscript

Former Member
0 Kudos

Hello Friends,

I have one written one simple condition in sapscript like this

if &sales_tax& ne &space&.

salestax &sales_tax&.

endif.

but still its printing in po output as

salestax 0.00.

how can i avoid printing zero values in po output

Regards,

Sunny

6 REPLIES 6

JozsefSzikszai
Active Contributor
0 Kudos

hi,

enter code like this:

&sales_tax(I)&

(I) will suppress initial values

hope this helps

ec

bpawanchand
Active Contributor
0 Kudos

Hi

Use the I option to suppress the output of symbols that still contain their initial values.

Syntax

&symbol(I)&

&sales_tax(I)&.

Regards

Pavan

0 Kudos

I tried the same but is not coming in my case.

it is still printing 0.00.

i dont want 0.00 to be displayed in the output of the script.

kesavadas_thekkillath
Active Contributor
0 Kudos

in ur print program.

if sales_tax is initial.

flag = 'X'.

endif.

then in ur script.

if &flag& = 'X'.

salestax &sales_tax&.

endif.

check this

Former Member
0 Kudos

thnks

santosh_kumarm
Participant
0 Kudos

This message was moderated.