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

Regarding decimal places in script...

Former Member
0 Likes
690

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
Read only

Former Member
0 Likes
655

make use of keyword

set country 'US' in layouts.

Regards

Prabhu

Read only

0 Likes
655

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.

Read only

0 Likes
655

Hi Everybody,

Any updates?

Regards,

Varadharajan.S

Read only

Former Member
0 Likes
655

Hi

In script write the command:

/: SET COUNTRY 'IN'.

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

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
655

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

Read only

Former Member
0 Likes
655

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

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
655

Hi

Use the

SET COUNTRY option.

Regards,

Sreeram