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

Quantity Field Display in Sap Scripts

Former Member
0 Likes
388

Hi,

I am displaying the quantity field in the sap script layout.But in the quantity field having 3 decimal places.

Ex: 3.400 is there i want to display 3.4

3.000 only i want to display 3

3.740 -


3.74 like that i want.

I want to omit the zeros after decimal places.

Please give me the solution.

Regards,

Jenny

1 REPLY 1
Read only

Former Member
0 Likes
291

As it is quantity field, it will print even the decimal points...U can try this...move the value to a char variable and use truncating to remove zeros by deleting them and use this value in ur script to print the value.