Application Development 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: 

Regarding decimal places in script...

Former Member
0 Kudos

Hi everybody,

In table PAYR the "amount" column has a value 12,000.50. But when i try to display that value using a script it is showing as 12.000,50. What could be the problem. In transaction SU01, for my user the decimal notation is like 1,234,567.89 only.

Regards,

Varadharajan.S

7 REPLIES 7

Former Member
0 Kudos

make use of keyword

set country 'US' in layouts.

Regards

Prabhu

0 Kudos

Where should the following statement given.

/: SET COUNTRY 'IN'.

I have given in the window where i am displaying the amount.But still there is no change.

0 Kudos

Hi Everybody,

Any updates?

Regards,

Varadharajan.S

Former Member
0 Kudos

Hi

In script write the command:

/: SET COUNTRY 'IN'.

if country is India, or 'US' for USA.

Reward points if useful

Regards

Anji

Former Member
0 Kudos

Hi,

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)&

Here i'm providing you an example plz refer to this and convert according to ur use

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

Reward if helpfull

Regards,

Pavan

Former Member
0 Kudos

Hi Varadharajan,

use this command in ur script.amount will come as per ur requirement

/: SET COUNTRY 'IN'. "IN is for India

Reward points if helpful.

Regards,

Hemant

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

Use the

SET COUNTRY option.

Regards,

Sreeram