Skip to Content
author's profile photo Former Member
Former Member

Tree Node Icon.

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 09: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.

    urgent--how-to-place-a-lock-icons-for-the-selected

    cheers

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.