Skip to Content
0

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

Dec 27, 2017 at 02:11 PM

141

avatar image

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.

10 |10000 characters needed characters left characters exceeded

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

0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi Dec 28, 2017 at 09:58 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 27, 2017 at 06:28 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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
Former Member
gopa kumar

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
Michelle Crapo Dec 29, 2017 at 02:16 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded