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

Script Control Break statement

Former Member
0 Likes
370

Hi All,

In script in order not to round off the value what control break statement should be used.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
351

in script you have to write like this

&value(.3)& i.e . how much decimal places you want in (.N).

regards

shiba dutta

2 REPLIES 2
Read only

Former Member
0 Likes
351

Hi,

think this is because the variable has decimal places and sapscript gets confused. Declare a constant in your abap say, c_zero, of the same type as ser but with a value of 0. Change your sapscript to:

IF &ser& > &c_zero&.

Service Tax & Edu.cess @ 10.20 %

&ser&

endif.

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
352

in script you have to write like this

&value(.3)& i.e . how much decimal places you want in (.N).

regards

shiba dutta