cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity Field Display

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

messier31
Active Contributor
0 Kudos

Hi Janardhan,

Do one thing in your print program make us of following line of code

shift wl_local right deleting trailing '0'.

where wl_local will containing your quantity..

This will solve your prob...

Enjoy SAP.

Pankaj Singh.

Former Member
0 Kudos

U can try the below in your print prg.

WRite lval to lchr using edit mask 'RR_______.___'.

Translate lchr using '0 '.

condense lchr.

Print lchr in your script.