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

value conversion

Former Member
0 Likes
853

WRITE v_discount CURRENCY v_waerk

LEFT-JUSTIFIED TO out_par-value.

in the above statement v_discount has 0.00 value and passing it to out_par-value its changing it to 0,00, i want the same value as 0.00.

can any one help me out in this.

7 REPLIES 7
Read only

Former Member
0 Likes
826

Hi.

Is this happening in foreground running?

Check your SAP user profile.

In the Defaults tab, check the option in the Decimal Notation frame.

John

Read only

Former Member
0 Likes
826

Dear Gupta,

Since you are translating <b>v_discount</b> to CURRENCY therefore you're getting it as 0,00.

keep it like this:

WRITE v_discount LEFT-JUSTIFIED TO out_par-value.

Read only

Former Member
0 Likes
826

but the same code is working fine in staging server

Read only

0 Likes
826

In the other server the settings mighte be different

goto transaction SU3 and click on the defaults table , there you can check default decimal notation

Check this in both servers if they are equal or not

Read only

Former Member
0 Likes
826

hi

on the menu, system>userprofile>owndata.

go to 'defaults' tabstrip.

select the option you want under decimal notification.

thx

pavan

Read only

Former Member
0 Likes
826

i have checked the defaults too both are containing the same thing

Read only

Former Member
0 Likes
826

Hi,

Try SET-COUNTRY <XX>. in the program it sets the country standards.

where XX is the country key