Map R3 Icons to Web Dynpro icons

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

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

Similar Messages

  • Image/Icon In Web dynpro ABAP

    Hello Experts,
    There is an icon which is shown in one of my ortal standard application. I want to show the same Icon in my Custom Web dynpro application. Is there any method to get the same Icon?
    Regards,
    Hema

    Hello Abhimanyu,
    Sorry forgot to mention earlier... that I have already tried this method..
    some how its not working.. it doesn't show any image in my explorer..
    basically I am showing this image in ALV column.. It was working with another image provided by sap but not the one which I import.
    Please provide more inputs..
    Regards,
    Hema

  • How to import an image icon into Web Dynpro for Java project

    Dear Experts,
    I would like to have a "select all" button which has an image of a standard "Select ALL" icon in SAP R/3. Where do I store the icon in my Web Dynpro for Java Project? 
    Any help would be very appreciated.
    regards,
    Shoira

    Hi Shoira!<br>
    <br>
    You have to use the following path:<br>
    <your workspace>\LocalDevelopment\DCs\demo.sap.com\<your UI component>\_comp\src\mimes\Components\<your component><br>
    <br>
    Best regards,<br>
    <br>
    Christoph

  • Access System mapped id pswd in WEB DYNPRO appln ???????

    Hello All,
    I have created a Web Dynpro application where in I need to access the system mapped id and password in my Web Dynpro code
    The code is as follows -
    String sysalias = "SAP_Reference_System";
    try {
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    IUser user = clientUser.getSAPUser();
    IUserMappingService umserv = (IUserMappingService) PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY)
    IUserMappingData umdata=umserv.getMappingData(sysalias,user);
    String R3username=umserv.getR3UserName(sysalias,user);
    Map map = new HashMap();
    try {
    umdata.enrich(map);
    } catch (NoLogonDataAvailableException e1) {
         e1.printStackTrace();
    String userid = (String) map.get("user");
    String passwd = (String) map.get("mappedpassword");
    wdComponentAPI.getMessageManager().reportSuccess("userid = " + userid );
    wdComponentAPI.getMessageManager().reportSuccess("pswd = " + passwd);
    } catch (WDUMException e) {
       e.printStackTrace();
    I have added the following JARS in my project
    1) saaj-api.jar
    2) usermapping_api.jar
    3) prtapi.jar
    4) security.api.jar
    Also in the Project Web Dynpro -> Service References -> have added the following entry
    The project builds fine.
    However gives the following warning during deployment -
    server ID <b>15709251:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application ''local/test'' for startup. Reason=Clusterwide exception: Failed to start dependent service ''PORTAL:sap.com/com.sap.portal.usermapping'' of application ''local/test''. Status of dependent component:  STATUS_MISSING. Hint: Is the component deployed correctly on the engine?</b>
    Please help. Its really urgent.
    Thanks in advance,
    Samta
    Message was edited by:
            samta nichani
    Message was edited by:
            samta nichani

    Hi,
    Check this thread /message/463945#463945 [original link is broken], this will solve your problem.
    Regards
    Abhilash

  • Missing triangle at context icon in Web Dynpro Application

    Hi,
    do anybody might know how I can get this triangle (see [Video|http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/6065bee4-a317-2c10-4c8c-cfa1c3eac185&overridelayout=true] at minute 06:05) at the icon of the context in webdynpro.
    This problem occurs under the topic of [How-to Integrate Visual Composer UIs within a CE7.11 BPM Process|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2011e628-b317-2c10-9fa7-952155e10705].
    This triangle is very important in creating BPM processes, because when you allocate this dynpro to a human acitivity the attributes without triangle are NOT recognized and, as result, can NOT be mapped in process composer!!!
    I appreciate any comments!
    Regards

    Time will tell. That's, in the meantime, is my slogan for SAP products - every product.
    It is always funny to see that sometime most problems will get solved by itself - so right here.
    I am wondering that nobody could help me in solving this problem because the solution is so easy.
    The triangle indicates, that the context attributes at Component Controller inherit the context attributes from the Interface Controller!!! That's it.
    This also apply for the events. Events which are defined in the Interface Controller and used at the Component Contoller (Otherwise error appears) are marked with a triangle!
    Regards

  • KM links should be showed in web dynpro iview

    I want to creat a icon in my webdynpro iview...when i click that link it opens another page with list of links to my KM documents.....i want to make it very attractive look too....what options should i use, when i click the web dynpro icon the km page should open and  also very attractive look....
    i'm new so do help me
    chers

    Hi Sudha,
    Use KM API in your webdynpro application to navigate
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b492c-7d76-2a10-86aa-e11e8388fde8
    Koti Reddy

  • Access Web Dynpro application on different WAS ??????????

    Hi All,
    Current Scenario -
    We have deployed ESS & MSS Business package on one WAS and the iviews are present on another WAS.We have created a Dedicated R/3 system which is pointing to the WAS where these packages are deployed.
    All these things are working fine i.e. once the user maps the id pswd it directly runs the Web Dynpro applications in the iviews.
    That means, even if application is running on one WAS, and the user personalises data on another WAS, it still retrieves the credentials and shows the appropriate results for ESS MSS Packages.
    Query-
    Now i need to implement the same scenario in my Web Dynpro application
    Steps
    1) I have the WD application running on one WAS and portal on another
    2) In portal there is a R/3 system created
    3) The Web Dynpro application needs to know if the user has personalised mapping against that system created on portal(other WAS)
    4) If yes show him the home page else take him to the login page.
    Just as it is implemented for ESS MSS Packages.
    How can i pass the mapped data to the Web Dynpro iview ?
    Thanks and Regards,
    Samta Nichani

    Amol,
    as this questions existed twice, I've deleted one.
    As roles are in the UME, you can access them. But why do you want to do this? You could login to that user, but then the question is what you want to do....
    Regards,
    Benny

  • Using Ajax in Web Dynpro

    Hello everyone,
    I need to use an Ajax Script (namely the Google Maps API) in a Web Dynpro project. Is this possible? And if: How to realize? I would be happy about any suggestions.
    Greetings Marco

    Hi,
    It is possible.
    The Google Maps JavaScript API lets you embed Google Maps in your own web pages. To use the API, you need to sign up for an API key and then follow the instructions specified in the link http://www.google.com/apis/maps/documentation/.
    You need use the javascript API and there is no specific webdynpro API available.
    Refer to the links below:
    1. Is Web Dynpro using AJAX?
    2. Change the way you write AJAX based Web applications….
    3.This is a very good blog:
    Google Map Services for your Site/Portal
    4. Visual Composer demo - Customer and Google API
    5.https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fd68e590-0201-0010-da89-ba631f41b3d7
    Regards,
    Nithya

  • Java Web dynpro with ABAP Clients?

    Morning,
    We have a situation where we would like to use a Java Web dynpro with multiple ABAP backend data sources. This is for autorization as well as data. We are not using Enterprise Portal.
    We've created a pair of system Jcos and mapped them to the Web dynpro via the URL. This works and the correct data from the correct Client is retrieved depending on which pair of Jcos we define in the URL.
    The problem we are having is that we are only able to logon using the ABAP Client defined in the ume....master.client parameter.
    Is there a way to achieve this (again without EP) either in the system configuration or programatically in the web dynpro?
    tia
    Cheers,
    Mitch

    Hello,
    Thanks for the updates. Actually my query is we have a SCM 5.0 system which has a java stack in it. But now we are going to upgrade it  to SCM  7.0. -  Is SCM 7.0 has a java stack ?
    If it doesn't have , can we upgrade SCM 5.0 to  SCM 7.0 without Java Stack ? Is it posssible to upgrade without Java Stack or not ?
    Is it possible that  we can convert Java Stuff into ABAP web dyn pro ? If yes , how shall we can achieve it ? If not, how shall we proceed in an alternate way ?
    Thanks for your help  in advance.
    Madhu

  • E-Recruiting u0096 Web Dynpro ABAP UI u0096 Button, Tab, RMP steps Color change.

    Hi,
    I need to change the color of Heading, buttons, Tabs and Road Map Pattern steps in Web Dynpro ABAP UI for external candidate. I’m looking into WDA component ‘HRRCF_C_STARTPAGE’ to change the color of Heading, buttons, Tabs and Road Map Pattern.
    I would appreciate for your valuable input.
    also i need to change the Loago. Is logo is configurable through IMG path (SPRO)?
    Do let me know, if you need anything else.
    See -> Error - when opening/downloading 'NW04SP14EclipseThemesEditor.zip'.
    Regards,
    ...Naddy
    Edited by: Naddy on May 14, 2008 11:06 PM

    Hi Naddy,
    Export the them from the file system of portal through BSP_UPDATE_MIMEREPOS and  change it then import the theme using BSP_UPDATE_MIMEREPOS program and apply the theme.
    go through this links hope these help you to solve your probelm.
    [url]http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/7feef553415e4fb357e80f7a6223b1/content.htm [url]
    [url]http://help.sap.com/saphelp_nw04s/helpdata/en/43/d8e0a488ef05f6e10000000a11466f/content.htm [url]
    [url]/people/sergio.ferrari2/blog/2007/04/06/bsphowto--customizing-the-design-of-system-logon-page-in-netweaver-04 [url]
    [url]/people/sergio.ferrari2/blog/2007/02/16/sap-web-ashowto--customizing-the-design-of-system-logon-page-new-options-of-the-netweaver-04s [url]

  • Web Dynpro ABAP ALV menu button icon image

    Hi
    Does anybody know how to add or link an image or an icon to a menu button in a
    Web Dynpro ABAP ALV view?
    I know how to do it in the alv table column but can't find a method for a menu button.
    Best regards
    Lars

    Hi
    Found the answer:
      DATA: lr_febutton TYPE REF TO cl_salv_wd_fe_button.
      lr_febutton->set_image_source( '@4B@' ).
    Just used a wrong class.
    Best regards
    Lars

  • How to display an status Icon in Table UI web dynpro ABAP?

    Hi Experts ,
    How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?
    Thanks in advance.
    Regards,

    Hi Laeeq,
    click on table cntrol n place it on the screen..
    now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.
    in the PBO..
    loop at internal table and call module in the loop (say) .
    MODULE ICON_DISP.
    now in the module try the foll code :
    module icon_display output.
    check some condition and assign the icon to the variable icon_r
      icon_R = 'ICON_GREEN_LIGHT'.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name                        = ICON_R
        TEXT                        = ' '
        INFO                        = ' '
        ADD_STDINF                  = 'X'
       IMPORTING
         RESULT                      = ICON
      EXCEPTIONS
        ICON_NOT_FOUND              = 1
        OUTPUTFIELD_TOO_SHORT       = 2
        OTHERS                      = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      endmodule.
    where icon(35) and icon_r(35) type c .
    hope this helps u..
    Regards
    Aparna

  • I am trying to find a method to customise the pin icon on Web Apps map display

    Hi all,
    We are trying to find a method to customise the pin icon on Web Apps map display. This is the page that we are working with, it has 2 categories of locations.
    http://www.corporategames.net.au/aus/Sport/venue-map
    I want to be able to set the pin either at a web app item level or a category level.
    Any ideas?
    Thanks,
    Jude.

    There's really no simple answer to your problem but I think this link is a good place to start
    http://code.google.com/apis/ajax/playground/#custom_marker_image_v3
    Also, there are lots of examples of what you want here:
    https://developers.google.com/showcase/
    But how you apply this to your needs is likely something that's gonna keep you up through many nights and coffees!
    @webmospherehttp://www.webmosphere.co.uk/

  • Data node mapped to  Adobe Form empty - Web Dynpro ABAP

    Hi,
    I've created a web dynpro component in ABAP. One of the view contains an interactive Adobe form.
    Form properties : Data source and pdf source are mapped
    Enabled checked
    Submit action mapped to a method. This method reads the node mapped to the form.
    Form Layout: Used ZCI Layout and Inserted web dynpro script (XML interface)
    Dragged attributes from data view to create text fields.
    Submit button used from Web dynpro native group
    I could not read data from the form.
    When I submit the form, data is not captured in the context.
    I have used the same context for view and could save the data from the view. But from the adobe form, I cannot read the data.
    Is there anything I missed. I have been on this since 2 days with no solution. I dont see any mistake but the form doesnt work.
    Version: Adobe Designer : 8.1 (from market place)
    SAP Netweaver 2004s SP18
    Any help on this is appreciated.
    P.S. Used all possible help from SDN existing posts and SAP notes.
    Thanks in advance,
    Srinivas

    Hi Srinivas,
    place a button on webdynpro view it self then try.
    make sure your form is working in interactive mode.
    else keep this conde in modifyview method.
    method WDDOMODIFYVIEW.
    data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    check first_time = abap_true.
    LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018<<ID_OF_YOUR_UIELEMENT>>u2019).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    endmethod.
    or try these links
    For More Information look at the link below.
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
    Please look into SAP Notes: 1229392
    You can also look at the elearning below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
    Regards,
    Mahesh

  • My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    I'd maybe try doing a search for Safari on your iPad first (swipe to the left to search). If it shows up in that search you can go to Settings > General > Reset and choose 'reset home screen layout' which will put it back where it would be by default.
    All else fails? Restore it.

Maybe you are looking for