Application Development and Automation 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: 
Read only

Tree Node Icon.

Former Member
0 Likes
593

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

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

2 REPLIES 2
Read only

Former Member
0 Likes
474

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

Read only

Former Member
0 Likes
473

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