cancel
Showing results for 
Search instead for 
Did you mean: 

Rounding quantity variable to 2 decimals

Former Member
0 Kudos

hi,

Q--> How to reduce 3 decimals to 2 decimals for quantity variable in SAP-SCRIPT. (4.7 version)

eg. RM06P-PRMG1 has value 30.000 KG and it should look like 30.00 KG.

To solve above problem i tried &RM06P-PRMG1(.2)& and &RM06P-PRMG1(R.2)& but still it is not giving result.

Regards,

Sujit

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Since the field PRMG1 in Structure RM06P is the CHAR field, standard formatting rule like &RM06P-PRMG1(.2)& will not work.

Try to use the field type of Quantity to make it work.

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks ...!

It works...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sujit,

Please ref following link document Page 62-

http://www.scribd.com/doc/7347891/Manual-SAPScript

You may find more helpful information in this document.

Thank you,

Nishikant.