12-27-2017 2:11 PM
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.
12-27-2017 6: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
12-28-2017 5:32 AM
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.
12-28-2017 4:58 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
12-28-2017 9: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).
12-28-2017 10:01 PM
What value does such requirement add for the business? Sorry but I fail to see what purpose could this possibly serve in SAP.
12-29-2017 2: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