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

Amount in Sap Script Display

jagjit_saini2
Explorer
0 Likes
1,226

Hi ,

I am facing one issue in output of Amount field in Sap Script .Amount value which is displaying in sap script is 123334.00 but requirement is to display this value as 12,3334.00 .I have tried SET COUNTRY &country-key&, Symbol(K) but these are also  not working .

Regards

Jagjit Singh Saini

7 REPLIES 7
Read only

yogendra_bhaskar
Contributor
0 Likes
1,177

Hi jagjit ,

Check the field length of the variable.

make sure it is more than 10 digits to accommodate commas in it.

Regards

Yogendra Bhaskar

Read only

0 Likes
1,177

Hi Yogendra ,

Field is of type NETWR (length 15 type CURR)

Regards

Jagjit Singh Saini

Read only

Former Member
0 Likes
1,177

set country should work, what is the data type another alternative is to call a subroutine, use WRITE TO or any appropriate FM and then pass the value back to the script

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,176

Hi,

A guess....


Try to remove the (K)

Regards.

Read only

0 Likes
1,176

Hi Eitan ,

I have removed (K) , even then its not working

Regards

Jagjit Singh Saini

Read only

0 Likes
1,176

paste screenshots of ur script n data declaration

Read only

Former Member
0 Likes
1,176

Hi,

Can you please tell amount field declared in char or curr?

Have you tried your own data->decimal settings and share what is in it.

1.If you declare it in curr field and you set the country it definately print well,

2.if you use char field declare one curr field and write the values from char to curr.

Now print the curr variable in sap script.

I hope it helps you.

Regards,

Ravi Shankar.L