cancel
Showing results for 
Search instead for 
Did you mean: 

Embed the MIME object into the columns of ALV

Former Member
0 Kudos

Hi All,

I would like to embed the MIME object which is imported into my component into ALV table column display.

Procedure which i followed to embed MIME object is as follows:

I imported MIME object in my component and instantiated the alv got the column reference looped the columns,

and based on condition i was embeding the icon name as eg: "HOME.BMP" the MIME object name which i embeded.

When we try to embed the normal SAP ICONS them i was using simply 'ICON_PROJECT' or so . But not in case of MIME object when i am doing the same it is not displaying the ICON in fact it is displaying some cross mark icon ....

Please tell me how to use MIME object ...

Regards,

Sana

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

In the set_source method you need to give the full path of the mime object.

because for ALV we are using a view from different component.

so give the full path of the mime object as it is in mime repository.

for example if the comp name is ZTEST and ther you imported HOME.BMP

then give the full path as follows.

IMG->SET_SOURCE( '/SAP/BC/WebDynpro/SAP/ZTEST/HOME.BMP').

Thanks

sarbjeet singh

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved the issue the procedure which i followed is need to giv the path of MIME reporsitory and bmp or .jpeg file name ..