cancel
Showing results for 
Search instead for 
Did you mean: 

Display SAP icons

olivergrande
Associate
Associate
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

olivergrande
Associate
Associate
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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