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 conversion problem in SAP script

Former Member
0 Likes
1,059

Hi experts,

I have problem with sap script quantity field conversion.

In purchase order the actual value of field( MDPM-ERFMG) is 3,500.

But in Print preview it is showing only 3.5

Any one Please help me in this problem

thanks in advance

murali

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

Hi,

It is rightly printing.

Value of MDPM-ERFMG is 3,500. here it is not comma, full stop (All Qty fields are with 3 decimals)

Change your settings in SU01 Tcode.

In script, it might be written as &MDPM-ERFMG(.1)& so it is printing

3.5.(with one decimals)

reward if useful.

regards,

Anji

2 REPLIES 2
Read only

Former Member
0 Likes
639

Hi,

It is rightly printing.

Value of MDPM-ERFMG is 3,500. here it is not comma, full stop (All Qty fields are with 3 decimals)

Change your settings in SU01 Tcode.

In script, it might be written as &MDPM-ERFMG(.1)& so it is printing

3.5.(with one decimals)

reward if useful.

regards,

Anji

Read only

Former Member
0 Likes
638

Hello,

check this:


Number of Decimal Places 

A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value. 

Syntax

&symbol(.N)& 



The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17. 

&EKPO-MENGE& -> 1,234.560 
&EKPO-MENGE(.1) -> 1,234.6 
&EKPO-MENGE&(.4) -> 1,234.5600 
&EKPO-MENGE&(.0) -> 1,235 

REgards,

Vasanth