Skip to Content

Display SAP icons

Hallo,

does any one knows, how to display SAP icons on a Web Dynpro screen. I know that they are on the J2EE server, but I do not know how to reach them.

Thanks,

Oliver

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2004 at 09:42 PM

    Hello Oliver,

    simply use the alias "~sapicons/<icon file name>" as the value for the corresponding UI element property.

    Example: SAP icon (bitmap B_DISP), filename "s_b_disp.gif"

    IWDImage image;
    image.setSource("~sapicons/s_b_disp.gif");
    
    IWDCaption caption;
    caption.setImageSource("~sapicons/s_b_disp.gif");
    
    IWDButton button;
    button.setImageSource("~sapicons/s_b_disp.gif");
    

    This will be better documented in the production release.

    Regards, Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 10, 2004 at 12:16 PM

    That works fine, thanks.

    But I have an additional question. How to get the name of the .gif?

    I'm getting a table with status icons from R/3 and I have to convert the icon name into the .gif. Is there a service that can help me?

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Oliver,

      at the moment there is no such service. Sorry for that.

      What might help: The filename is related to the SAP icon <b>bitmap name</b>, e.g. B_DISP, as follows:

      filename = "s_" + lowercase(<bitmap name>) + ".gif"

      (Unfortunately, some files have suffix ".GIF".)

      For e.g. icon bitmap B_DISP the resource name results to:

      "~sapicons/s_b_disp.gif"

      A detailed description of the SAP icons may be found at

      http://www.sapdesignguild.org./resources/icons_sap/index.htm

      Regards, Armin

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.