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: 

ALV: How to display amount respective to currency format in ALV?

Former Member
0 Kudos
3,648

Hi All,

Normally in ALV, to display the amount respective to its currency, we just simply pass the currency field(coming from the t_outtab of FM REUSE_ALV_GRID_DISPLAY) to CFIELDNAMEof ALV field catalog.

For ordinary currencies with 2 decimal places, like USD, etc, it will work fine.

But for currencies like KWD and IDR, their decimal place is always 3 via SAP standard definition in transaction OY04.

Given this, ALV field catalog CFIELDNAME cannot handle as such automatic formatting.

Is there any other way without using the code below?


WRITE <amount_field_name> CURRENCY <currency_field_name>.

Thanks.

2 REPLIES 2

Former Member
0 Kudos
580

In the catalog, set parameter Ref_table.

Example

catalog-FIELDNAME = 'WRBTR'

catalog-REF_TABLE = 'EKPO'

Former Member
0 Kudos
580

Answer:


'WAERK' to w_alv_fcat-cfieldname,