cancel
Showing results for 
Search instead for 
Did you mean: 

Map R3 Icons to Web Dynpro icons

Former Member
0 Kudos

I try to map R3 icons to Web Dynpro icons. Please review the following code:

public static String getSAPIconURL(String iconValue) {

String iconURL = "";

try {

iconURL = WDURLGenerator.getAbsoluteWebResourceURL("sap.com/tcwddispwda/global/sapIcons");

if (iconValue.equals("@0A@")) {

iconURL += "//s_s_ledr.gif"; //redlight

} else if (iconValue.equals("@08@")) {

iconURL += "//s_s_ledg.gif"; //greenlight

} else if (iconValue.equals("@09@")) {

iconURL += "//s_s_ledy.gif"; //yellowlight

}

} catch (WDURLException urlEx) {

//to do

}

return iconURL;

}

Questions:

1. Is this the correct way to get SAP icons? We tried to use WDURLGenerator.getSAPIconsResourcePath(),but did not turn out right.

2. Also, in HTMLB time, there were APIs mapping R3 icons to HTMLB icon library directly. Is this also planned in Web Dynpro? What is the best way to map R3 icons to Web Dynpro icons?

3. The above code shows static one-to-one mapping, how to support dynamic mapping?

Thanks,

Nancy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

To use the R/3 icons, you simply have to use "~sapicons/<iconfilename>.gif" as the source of Image etc.

Armin

Former Member
0 Kudos

When you use icons as listed on http://www.sapdesignguild.org/resources/icons_sap/index.htm you have to use the following:

~sapicons/<b>s_</b><bitmapname lowe case>.gif

e.g. ~sapicons/s_s_ledg.gif