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

SCRIPT

Former Member
0 Likes
596

Hi,

now i am getting in output amount like: 1.000

but i need like 1,000.

how can i get that comma(,) insted of period(.)

in scriptswith out modifying program

please give me solution

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Hi,

Goto TCode OY01>country>check the decimal format.

Also check:

Menu system -> user profile -> own data

tab 'defaults'->decimal notation.

Regards,

Satish

6 REPLIES 6
Read only

Former Member
0 Likes
574

Hi,

Goto TCode OY01>country>check the decimal format.

Also check:

Menu system -> user profile -> own data

tab 'defaults'->decimal notation.

Regards,

Satish

Read only

Former Member
0 Likes
573

Hi,

u can do one thing.

split amount at '.' into var1 and var2.

put comma into var3.

now concatenate var1 var2 and var3 into an another variable.

And finally show that var as output.

it will work.

regards..........

sunil.

Read only

0 Likes
573

Where i have to write this one

Read only

Former Member
0 Likes
573

Hi,

The comma or period is determined by the prefered format of the country your SAPscript is being sent to. Look at your test data and find the country of the business partner, customer or whoever it is being sent to. Then check the prefered format for this country as Satish suggests.

Regards,

Nick

Read only

Former Member
0 Likes
573

Define anothere char type varible with same length and use following code..


DATA : amount(16).

amount = <your amount varible>.

REPLACE ALL OCCURRENCES OF '.' IN amount WITH ','. 

WRITE : amount.

Read only

0 Likes
573

i want with out modifying program

here i am attaching zform to standard form.

becasue i modified satndard form