‎2007 Nov 20 8:05 AM
Hi,
I'm doing a tree node. I need to come out with the icon for the node. I have a sample code below:
NODE-N_IMAGE = '@20@'
Instead of using @@ prefix, is there any other way create the ICON using meaningful name as it hard to know what icon @20@ with display?
Regards,
Rayden
‎2007 Nov 20 9:08 AM
Hi Rayden,
i'm affreid it is no other way to create an icon. You can naturally define a constant for a value '@20@' with a meaningfull name and use it on place '@20@' :).
Regards
Boguslaw
‎2007 Nov 20 9:08 AM
Hi Rayden,
i'm affreid it is no other way to create an icon. You can naturally define a constant for a value '@20@' with a meaningfull name and use it on place '@20@' :).
Regards
Boguslaw
‎2007 Nov 20 9:50 AM
Yes there is... the "standard" way to build the string for an icon is to call the function ICON_CREATE with suitable parameters... in your code you can also define:
include <icon>.in your global definitions to make the names available to you rather than the cryptic "@" names (e.g. "icon_locked")... if you drill into <icon> in later versions of SAP you will see that this now tells you to use the appropriate type pool. There's also a database table you can browse in SE16 (called ICON of course!) that can be a useful way to find the appropriate icon for your needs - plus a Tcode called ICON too.
Have a search of SDN for "ICON_CREATE" and I'm sure you'll find more info, e.g.
cheers
Jonathan