Application Development 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: 

displaying the Amount with seperators

Former Member
0 Kudos

hello ABAPers,

i have a field displaying the grand total of amount.here i need seperators(comma's)for large amount(hundreds, thousands and lakhs).

PLZ help me with the procedure

4 REPLIES 4

Former Member
0 Kudos

Hi,

Depending on the user profile , the separaters will be used automatically. Also please define the field as a numeric field.

regards,

Advait

former_member195383
Active Contributor
0 Kudos

Hi Declare a field as

wf_amount type konv-kwert

suppose, currently u have ur amount value in the variable wf_var_amout.

Then write as

wf_amount = wf_var_amount.

When u ll print wf_amount , the format will be picked from SU3 settings.

The su3 settings can be controlled as below

Go to transaction SU3>Defaults>there u can change the number type, as per your required format...

Hope this helps u out..

Former Member
0 Kudos

Hi,

I guess your variable is a character variable.. change your variable type to P

Data : amount type p decimals 2.

Move <you character variable> TO amount.

Regards,

Omkaram.

Former Member
0 Kudos

LET VARIABLE X = 12345 CONTAINS YOUR VALUE WITH WICH U NEED TO SHOW SEPRATORS

LET Y BE THE DISPLAY VARIABLE.

USE

WRITE: X TO Y." INSTEAD OF Y = X.