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: 

Conversion of Unit of Measure in ALV Grid

Former Member
0 Kudos

Hi all,

I am using function 'REUSE_ALV_GRID_DISPLAY' to display some records in ALV grid. The record displays material, the quantity of the material consumed and the unit of measure (UoM) of the quantity. I am fetching the data from the table AUFM and the field I am using for UoM is ERFME.

The problem is that when the UoM is displayed in the ALV, it is displayed as KAR but when i print the report or check the print preview, the UoM is displayed as CAR. I want to display CAR also in the ALV.

I have tried using the function 'CONVERSION_EXIT_CUNIT_OUTPUT' which converts the KAR to CAR in the ALV, but when I print it or check the print preivew , it shows asterisks (*) in the UoM field.

Can anyone tell me why this is happening and how I can solve this problem? Any help will be greatly appreciated.

Regards,

Glauco Diogo

1 ACCEPTED SOLUTION

Former Member

By passing wa_fieldcat-edit_mask = '== CUNIT' and the error persists. Try using wa_fieldcat-no_convext = 'X'.

2 REPLIES 2

Former Member

By passing wa_fieldcat-edit_mask = '== CUNIT' and the error persists. Try using wa_fieldcat-no_convext = 'X'.

mldoliveira
Explorer

Using wa_fieldcat-no_convext = 'X'. also solved my problem.

Thanks Glauco Oliveira!