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

Currency problem

Former Member
0 Likes
582

Hello, I have a gt_list which is displayed in the alv list. I put values in it from a structure I've created. When I display the list, the gt_list-anbtr field is shown in the following format 300.300,00 instead of 30.030.000. In my structure the anbtr field has a a reference t0001 with waers.

How could I solve the problem?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
545

Hi,

in Fieldcatalog use this

wa_fieldcat-cfieldname = 'WAERS'.here 'WAERS is the fieldname for currency.

it will help you.

Regards

Muthappan

5 REPLIES 5
Read only

Former Member
0 Likes
545

Hi

Not, sure but in your default parameters in SU01, "defaults" tab, you can define the number format otherwise move the field to a CHAR and format it in your ABAP.

Hope this helps,

Erwan

Read only

Former Member
0 Likes
545

Hi Jacob,

try this out

in the fieldcatalog for that field , add this

wa_fieldcat-datatype = 'CURR'.

Read only

Former Member
0 Likes
545

u have to define ur settings in system->userprofile->own data to this format...

or else what u can do is loop at internal table...if field-name is this replace all ',' with '.'

and use the internal table in ur alv...

Read only

Former Member
0 Likes
546

Hi,

in Fieldcatalog use this

wa_fieldcat-cfieldname = 'WAERS'.here 'WAERS is the fieldname for currency.

it will help you.

Regards

Muthappan

Read only

Former Member
0 Likes
545

Hi, I have checked, the datatype of wa_fcat-datatype = CURR. Have you got any other suggestion to my problem?