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: 

Formating long currency field

Former Member
0 Kudos

Hi all.

I'm looking forward to format the output of a long currency field. I would like to display it without decimals and using the dot separator, for example: in database i have the value 1234567891011,1234 then display 1.234.567.891.011,1234 is there any function module to archieve this?

Regards.

3 REPLIES 3

Former Member
0 Kudos

DATA int TYPE i VALUE 12345678.

WRITE int NO-GROUPING CURRENCY 'EUR'.

Former Member
0 Kudos

DATA: dura TYPE i,

time TYPE t VALUE '080000'.

dura = sy-uzeit - time.

time = dura.

WRITE /(30) dura USING EDIT MASK '==SDURA'.

WRITE /(30) time USING EDIT MASK

'RRThe duration is __.__.__.

0 Kudos

Hi,

No Need of Function Moudule you can do it with ABAP code..

Here is the Example for this..

data: amount(15) type c value '200,000,000.000'.

while sy-subrc = 0.

replace ',' with space into amount.

endwhile.

condense amount no-gaps.

write:/ amount.

Change code according to your requirements for dots and space.

Reward Points if It is Helpful.

Regards,

Bohra.