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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 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