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

Formatting Problems

Former Member
0 Likes
670

Hi guys,

I am taking the field EKBE-WRBTR and in that particular field there are few values like the following.

9.000,00

1.000,00

7.000,00.

And my requirement is the dot that is coming in the second position should not come there. it should be like.

9 000,00.

After that i should use that for an ALV display. This is urgent.

I am givin my code which i am using now. But that is not solving my problem

data : lc_wrbtr type p.

clear lc_wrbtr.

lc_wrbtr = gt_ekbe-wrbtr.

move lc_wrbtr to tap-bualt.

Khan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
652

Hi,

Use the below code.

data: v_amount(20).

move '9.000,00' to v_amount.

replace '.' with ' ' into v_amount.

write:/ v_amount.

5 REPLIES 5
Read only

Former Member
0 Likes
652

Hi Khan,

1.Have changed the SYSTEM>USER PROFILE->OWN DATA>defaults>decimal notation.

just check it will work..

Regards,

Shiva.

Read only

Former Member
0 Likes
652

Go to SU01 and do the necessary setting for your requirement.

Regards,

Madan.

Read only

Former Member
0 Likes
652

hi

u can display 9.000,00 as 9,000.00 by changing user setting form

System -


> User Profile -


> Own Data -


> Default TAB -


> Decimal notation.

change decimal notation as required .

this is the standard way to do so .

reward if helpful.

Read only

Former Member
0 Likes
652

Hi,

I know that, i need the code to change it in the report itself.

Read only

Former Member
0 Likes
653

Hi,

Use the below code.

data: v_amount(20).

move '9.000,00' to v_amount.

replace '.' with ' ' into v_amount.

write:/ v_amount.