Skip to Content
avatar image
Former Member

Conversion of Unit of Measure in ALV Grid

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 09, 2017 at 07:50 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 09, 2017 at 07:54 PM

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

    Thanks Glauco Oliveira!

    Add comment
    10|10000 characters needed characters exceeded