Skip to Content

Display JPEG or PNG image in ALV Output Row Level using REUSE_ALV_GRID_DISPLAY

Hi Experts,

I have a requirement of displaying an ALV Report and in that report in the last Column I need to display the Plant Country Flag image.

1) The first requirement is to upload all the Country Flag Image into a Z custom table.

2) The 2nd requirement is to read this table in the Z report and display that image in the Output.

I tried uploading the Image in Binary format into the Ztable but I am not sure how to read it and display it in the ALV Output at row level. I am using the REUSE_ALV_GRID_DISPLAY to display the ALV.

Kindly provide me with some sample code for the same.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 28, 2017 at 09:58 AM

    If the requestor is experienced with SAP, he knows a hundred of screens which contain ALV Grids, and none of them display custom images in the rows, except predefined icons. There are also tons of SAP demo programs (BCALV*, SALV*DEMO*, SALV*TEST*), and none of them displays custom images.

    If you want images in the rows, develop the ALV using HTML (Web Dynpro, UI5, Fiori).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 27, 2017 at 06:28 PM

    It is better to display the ISO code of the plant. 1st text, 2nd graphic.

    If you need some arguments for that: Flags That Look Alike, Color blindness

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2017 at 02:16 PM

    I would give the same advice as the answers above. But if you have to do it - create a MIME for each flag. Then this post will tell you how to pull it into an ALV. Again there are a lot of reasons not to do this.

    Michelle

    Add comment
    10|10000 characters needed characters exceeded