Application Development and Automation 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: 
Read only

avoid printing zero values in sapscript

Former Member
0 Likes
1,296

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
Read only

JozsefSzikszai
Active Contributor
0 Likes
954

hi,

enter code like this:

&sales_tax(I)&

(I) will suppress initial values

hope this helps

ec

Read only

bpawanchand
Active Contributor
0 Likes
954

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

Read only

0 Likes
954

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
954

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

Read only

Former Member
0 Likes
954

thnks

Read only

santosh_kumarm
Participant
0 Likes
954

This message was moderated.