10-06-2008 8:33 AM
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
10-06-2008 8:36 AM
Hi,
Depending on the user profile , the separaters will be used automatically. Also please define the field as a numeric field.
regards,
Advait
10-06-2008 8:37 AM
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..
10-06-2008 8:38 AM
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.
10-06-2008 8:53 AM
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.