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: 

How to add icon field in the alv grid output

Former Member
0 Kudos

Hi Experts,

i need to add one icom column in the alvgrid.That icon if the contract is inacitve then it should shows inactive symbol.if the contract is account assignment lock then it should show that lock symbol.Please send me the any code or approach.

Thanks,

Venkat.

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello Venkat

Set<b> ls_fcat-icon = 'X' </b> in the fieldcatalog for the column where you want to display icons. In addition, add the following statement to your report:

TYPE-POOLS: icon.  " replaces INCLUDE <icon>.

Do not use the coded values (e.g. '@01@') but the "normal" icon names, e.g. <b>ICON_DETAIL</b>.. In order to see the icon names call transaction SE38/SA38 and run report <b>RSTXICON</b>.

Regards

Uwe

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

Check Sudhir's reply for Icon -

Regards,

Amit

Reward all helpful replies.

raymond_giuseppi
Active Contributor
0 Kudos

Look at thread

Regards

uwe_schieferstein
Active Contributor
0 Kudos

Hello Venkat

Set<b> ls_fcat-icon = 'X' </b> in the fieldcatalog for the column where you want to display icons. In addition, add the following statement to your report:

TYPE-POOLS: icon.  " replaces INCLUDE <icon>.

Do not use the coded values (e.g. '@01@') but the "normal" icon names, e.g. <b>ICON_DETAIL</b>.. In order to see the icon names call transaction SE38/SA38 and run report <b>RSTXICON</b>.

Regards

Uwe