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: 

Using Icon for status field.

Former Member
0 Kudos

Hi all, I have a status field with different status (Accepted, rejected, pending etc.) but Instead of using the words I want to use icons that represents the status.

how can I do that?

Any help will be appreciate it.

Thanks in advanced,

Fidel

4 REPLIES 4

Former Member
0 Kudos

See program - DEMO_DYNPRO_STATUS_ICONS

Reward points for helpful answers.

former_member927251
Active Contributor
0 Kudos

Hi,

If you are using ALV Grid, then you can go through the following links.

<a href="http://www.sapfans.com/forums/viewtopic.php?t=24512">http://www.sapfans.com/forums/viewtopic.php?t=24512</a>

<a href="http://www.sapfans.com/forums/viewtopic.php?t=79424">http://www.sapfans.com/forums/viewtopic.php?t=79424</a>

Hope this helps.

Please reward some points.

Regards,

Amit Mishra

Former Member
0 Kudos

Hi Fidel,

For this first you have INCLUDE <icon>. And logic like this.

if status = 'Accepted'.

it_final-icon = icon_green_light.

else.

it_final-icon = icon_yellow_light.

endif.

here i_final is out put internal table.

clour should be based on your requirment.

Thanks,

Saleem.

Message was edited by: saleem shaik

Former Member
0 Kudos

Hi fidel,

While creating a PF-Status in Menu Painter ( Transaction Code SE41) , when you create a button, you are not only asked to give a name and function text but also an icon-name as well as icon text.

So, you can use the corresponding icon for your pupose.

Say if icon name is icon_display, then you should use :

if icon-name = 'icon_display'.

  • code.

end if.

Similarly you can use this concept for your requirement.

So ypu dont have to use the word.

Regards,.

Kunal.