04-25-2006 2:43 PM
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
04-25-2006 2:50 PM
See program - DEMO_DYNPRO_STATUS_ICONS
Reward points for helpful answers.
04-25-2006 2:50 PM
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
04-25-2006 2:52 PM
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
04-25-2006 3:15 PM
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.