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: 

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

former_member311223
Participant
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

Hi Tibor,

Thank you for the update.

But the user wants the Country Flag image to be displayed in the ALV Grid Report against each Plant. I am not sure how an I achieve it. Searched the SDN but could not fin any relevant solution.

0 Kudos

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

Sandra_Rossi
Active Contributor

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).

Jelena
Active Contributor
0 Kudos

What value does such requirement add for the business? Sorry but I fail to see what purpose could this possibly serve in SAP.

mmcisme1
Active Contributor
0 Kudos

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