How to display standard SAP icons in WebDynpro?

Hi everybody,
in my web dynpro app I'm using several web icons for display. Works very well so far with this notation: `~Icon/Failure` e.g.
Now I need an icon which I can't find in the web icons library: the standard sap icon ICON_PRESENCE.
I have tried this method: http://www.sapgeek.net/2009/10/web-dynpro-use-icons/  but it doesn't work; it seems that the system searches for the gif name as a web icon and can't find it.
Is there any other way to diaplay standard sap icons in web dynpro, or does someone know if there is a web icon showing a burning light bulb??
Thank you in advance for any advice!

Hi,
   Suppose you need to display a standard SAP icon then take a image UI element and in the property SOURCE
   of image element click on the small F4 icon, a window opens with different tabstrips, select SAP ICONS tab
   and choose the relevent icon.
   If you dont find the icon, then you can upload the icon onto the application server and use it in your component.
  For this rightclick on your component and create a mime object and import the image from PC to SAP and you can
  now use this and will find it in the component usage tab in that F4 window of SOURCE property.

Similar Messages

  • BP Cockpit. Standard sap icon (e.g. ICON_OKAY) within a cell of XML table?

    Hello all,
    I have programmed a custom bp cockpit.
    I am able to build up the xml to show the data, but only with texts.
    Does anybody know how could I be able to insert an image (an standard SAP icon like "ICON_OKAY") in any of the table cells?
    Thank you very much in advance.
    Gonzalo Milla Millá

    Hello all again,
    finally, I found the way...
    The problem was that the standard XSLT conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' ignores the tag 'img' so... there's no way to insert images (at least within a table cell).
    I try to explain the solution:
    FIRST: Create own XSLT conversion program
    a. Go to transaction XSLT_TOOL
    b. Copy the standard conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' to a customer one... let's call it 'Z_CCKPT_CFS_SERVICE'.
    c. Modify this Z_CCKPT_CFS_SERVICE adding following lines:
    <xsl:when test="child::img=true()">
      <td class="table7" width="{@width}" nowrap="x">
        <img src="{child::img/@src}"/>
      </td>
    </xsl:when>
    insert this lines just before, and at the same level that
    <xsl:when test="@colspan=true()">
    Here we are telling to the conversion program how to translate XML code for images to HTML code (only when they are found between "td" tags)
    SECOND: Find icon path and insert it within XML code
    a. Go to your Z class for your infoblock (let's say Z_CL_INFOBLOCK) that inherits from CL_CRM_CCKPT_IOS and modify the GET_REPORT method
    b. Get the icon path:
    DATA:
      lc_icono TYPE string.
      lc_icono = cl_bsp_mimes=>sap_icon( 'ICON_OKAY' ).
    This way, we get the physical path to the icon.
    c. insert icon in xml code:
    DATA:
      lv_string TYPE string.
    CONCATENATE '<img src="' lc_icono '"/>'
      INTO lv_string.
    CALL METHOD crmcl_cckpt_templatesplitter=>fill_template
      EXPORTING
        iv_tagname  = 'S1'
        iv_string   = lv_string
      CHANGING
        cv_template = ls_template.
    Here, we are filling contents of tab 'S1' in the XML template LS_TEMPLATE with the line
    <img src="physical/path/of/your/icon.gif"/>
    , that will be "translated" with your Z XSLT conversion program Z_CCKPT_CFS_SERVICE
    THIRD: link Z conversion program ('Z_CCKPT_CFS_SERVICE') to your XML.
    a. Also within the GET_REPORT method, after the creation of the XML code, insert following line as the first one in the XML table (export parameter of the method):
    DATA:
      lw_meta TYPE string.
      lw_meta = '<meta:metadata xmlns:meta="urn:sap-com:document:sap:crm_cckpt:metadata" STYLESHEET="Z_CCKPT_CFS_SERVICE"/>'.
      INSERT lw_meta INTO lt_xml_temp INDEX 1.
      _et_xml_out[] = lt_xml_temp[].
      CLEAR et_xml_out.
      LOOP AT _et_xml_out INTO _ls_xml_out.
        CONCATENATE et_xml_out lv_newline _ls_xml_out INTO
                    et_xml_out.
      ENDLOOP.
    FOURTH: Finally, it works!!!
    You have your icon included as the content of a table cell...
    Hope this helps
    Best Regards
    Gonzalo Milla Millá

  • 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

  • How to display existing sap form in our menuclick

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation" form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Thanks Teun,
    Thanks for giving reply.
    i am not getting any ActivateMenuItem method in menuclick event
    But here i am addding one menu item from my addon when i click on my menu 20.2.orderrecomnds i have to populate same screen which is coming in mrp order recomonds which form id is 65215
    if ((pVal.MenuUID == "Submenuordrecom") & (pVal.BeforeAction == false))
    // code
    in above menu click event i have to populate order recomonds screen so how to do that.
    Regards,
    sri
    Edited by: dns_sap on Jul 28, 2010 12:09 PM

  • How to display standard ALV toolbar function in Webdynpro ABAP

    Hi All,
    Could any one please let me know that how to display the standard ALV functions. What I tried is as follows:
    data :lr_config_table type ref to cl_salv_wd_config_table.
    data lr_function type ref to cl_salv_wd_function_std
    Got the reference by calling the get_model().
    Now tried to display a standard button say :
      CALL METHOD lr_config_table ->if_salv_wd_function_settings~get_function_std
        EXPORTING
          id    = 'SALV_WD_INPUT_INSERT_ROW'
        RECEIVING
          value = lr_function.
      CALL METHOD lr_function->set_visible
        EXPORTING
          value = cl_wd_uielement=>e_visible-visible.
    But I can't see the button added to my ALV toolbar! Could any one please help me out on this if I am missing something.
    Many Thanks!
    Somnath

    Hi..
    ALV report which when displayed normally allows users to insert and delete rows using the methods below from class Cl_Salv_Wd_Config_Table:
    I think add these lines to your code and check..
    IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY (false)
    IF_SALV_WD_STD_FUNCTIONS~SET_EDIT_INSERT_ROW_ALLOWED (true).
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_basic( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_basic( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      l_table->if_salv_wd_table_settings~set_read_only( abap_false ). 
      l_table->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_false ).
      l_table->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).
      l_table->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false ).
    Cheers,
    Kris.

  • IMPORTING STANDARD SAP ICONS

    Hi
    I have an WD4A app and I would like to import sap's standard icons such as s_b_okay.gif to be displayed in my app
    based on some condition. My question is how do I call these icons and attach them to image UI elements I have
    created?
    Thanks for yr help
    Yuval Peery

    HI Perry ,
    You can bind the image sourse property of your UI with the attribute type string and programatically you can change the value for the image source based on your condition
    Sample code :
    DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_image TYPE wd_this->Element_context-image.
    *   get element via lead selection
        lo_el_context = wd_context->get_element( ).
    if condition = 1.  " here you can change icon based on your condition
       lv_image = '~Icon/Add'.  " or you can get the value from table - ICON  & copy the text , Eg : @00@  lv_image = ' @00@'.
    else.
       lv_image = '~Icon/AddRow'.
    endif.
    *   set single attribute
        lo_el_context->set_attribute(
          name =  `IMAGE`
          value = lv_image ).
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jul 6, 2010 4:14 PM

  • How to change standard SAP Calender

    Hi Friends,
    As per standard SAP when we press F4 on a Date field system provides a calender(as search help)  on which we get Monday as the starting day of the week.
    QUERY
    1. How can I change this Week sequence... i.e as per requirement Week should start with SUNDAY instead of MONDAY.
    2. This calender should indicate Company Holidays also, so that when the user selects date from this search help they are consious of the Company Holiday  and enters working dates from the search help.
    Thanks In Advance
    SK

    SK,
    1. How can I change this Week sequence... i.e. as per requirement Week should start with SUNDAY instead of MONDAY.
    SAP uses a Gregorian calendar in the background for many time/date functionalities. Standard definition is that Monday is the beginning of the week.  There is a modification that you can do to make the display with Sunday as 1st day of the week.  Refer to note https://service.sap.com/sap/support/notes/599989
    2. This calendar should indicate Company Holidays also, so that when the user selects date from this search help they are conscious of the Company Holiday and enters working dates from the search help.
    This is definitely going to cost you some custom programming.  There are many factory calendars in R/3, and each of them typically have different holiday schedules.  In order for you to meet your requirement, you would need to tell the system which factory calendar would be relevant, find the holidays, and then display them in the search help.  To make matters worse, a given date field in a SAP transaction may be relevant for multiple holiday calendars, depending on other info that is entered on the same screen.  If I were a consultant, and you asked me to do this, I would make you specify every date field on every screen that you wish to see this functionality displayed, and I would  also make you give me the rules with which to find the appropriate calendar.  I wouldn't take the assignment without this info.
    I really think you need to consider the cost vs benefit for this last requirement.  
    Rgds,
    DB49

  • How to display a HTML Page in Webdynpro (without IFrame)?

    Hi everyone,
    maybe this one is really simple. I have a RFC returning the URL to a HTML-Page in the backend.  Which of the standard UI-Elements should I use to display that page in my Webdynpro?
    My first guess was to use the IFrame. However, according to different sources this element is deprecated and buggy. So I'm hesitating.
    Are there any other possibilities? Or is it ok to use IFrame nevertheless?
    Many thanks,
    Xiaopeng
    Message was edited by: Xiaopeng Tan

    hi Ashutosh,
    I took a look at the help document. It states that "_self" is no longer supported. And I should use exit plugs instead and specify the URL there.
    But even that won't serve the purpose. I have other UI-elements (fields, tables) on the same screen where I want the page being embedded next to them as co-component. Using _SELF and clicking on the link would would remove all other components.

  • How to use standard SAP stylesheets in WAD

    Hello ,
    I created a new Web template.
    Assigned a data provider, inserted a table.
    In order to view i include a Analaysis box in one of the cell of Table.
    Now i need to change the colours of result rows.
    How to use Standard Stylesheets provided by SAP.
    Where this stylesheets will be located
    Under which properties.
    How to use those.
    How to edit those and save as we wanted.
    An y step by step documents, please send it to [email protected]
    I want to include Information button in Template, so when executing if user click this button he/she should know,
    What are provided variables and if they chosen some specific variable restriction to see the result,
    Also by default this information should get print.
    In standard sap portal, this button is located on upper right corner.
    Please advise.

    Thanks Rusty,
    Thats exactly right,
    I included a naviagtion block and it worked well
    But while printing the query on Web template, It only prints the data that is coming in Analysis block.
    Similarly while running the query thru BEX to Portal,
    Navigation block is on left, but while printing it prints exactly every data in Information tab.
    Information is the button located on upper right corner.
    If you click, it will give you information such as , which restrictions u did, which extra filters you added everything.
    And while printing it prints this information too.
    I want to do the same designing for my custom Web template.
    How can i do that.
    I already added navigation block, so it will be easy for users to drag and drop Chars and KFs in rows and columns as well as filter if they needed.
    I hope you are trying to understand.
    Also for using stylesheets can you suggest.
    So that i can make changes to row and columns.
    I am unable to locate stylesheet in any of the properties.

  • How to copy standard SAP report to a Z report?

    Hi All,
    Guys, I have a requirement to copy an standard SAP report and make some changes to it. Please let me know how to copy a standard SAP report as a Z report. Is there any simple way or will I have to open the source code and copy it into the new Z program? If that is the case, how will I copy the screens and related PBO/PAI events?
    Please provide me a step-by-step solution.
    Thanks & Regards,
    Madhur

    Hello Madhur,
    As Raja had said, yuo could just copy the program from SE38. But just remember a few points:
    1. If the standard report is being used in some other programs, then there's no way you can make your Z-report get used in all such instances. I suspect that you may not want to do that anyways, but just in case.
    2. Just also check out if the standard report you're talking about has any INCLUDE programs within it. If there are too many standard INCLUDEs in the main report, then you might have to decide whether you need to copy all of them too, or let them be as they are.
    3. You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
    I have experienced some problems with respect to the second and third points in the past, so it is worth it to be a bit careful.
    Regards,
    Anand Mandalika.
    Regards,
    Anand Mandalika.

  • How to call standard SAP method in the Custom Program ?

    Hi,
    i need to call sap standard method 'OpenItemRollinout' in my custom program. For the SAP Standard method 'OpenItemRollinoun' the BOR(Business Object) is 'PAYSCHEME'. So how to call the SAP standard method in the custom program ???

    Hi,
    In the method that you have provided only one function module is being used so better use the FM and copy the remaining code based on ur requirement.
    FM is ISU_S_PAYSCHEME_ROLLIN_ROLLOUT.
    Regards,
    Vijay.

  • How to change standard SAP program SAPLFSKB to add custom fields...?

    Hi Gurus,
    I have to change the standard SAP program SAPLFSKB screen 100 to add custom fields...i looked into OSS notes and there is a note: 174413 that provides steps to add custom fields...but when i try to do this it doesnt let me do it...it says that request cannot be changed....do i have to use modification agent...if that is the case then how shud i proceed with this....so please provide me some inputs....
    your help will be appreciated...
    Any inputs for me....
    cheers:sam
    Message was edited by:
            Sam williams

    try going into edit->enhancement operations->create.  this will allow up to add your customized field.

  • How to copy standard SAP list edit tcode IW28 , IW29 to our Z transtions...

    Hi friends,
    Can any one help me on this plz.
    Need two reports for Notifications List Edit, one for change mode and one for display mode.
    These reports need to be copied from the standard SAP list edit transactions IW28 and IW29.
    I. The selection and display variants for the customized notification list edit (ZIW28 & ZIW29) need to include the following custom fields:
    a) SONGS custom Notification attributes include:
    •     Significance level
    •     MRule code
    •     ARC
    •     “Feedback Required? “ checkbox
    b) PPD custom Notification attributes include:
    •     Outage Issue checkbox
    •     “Feedback Required? “ checkbox
    c) Order attributes to be included:
    •     Order Type
    •     Order system statuses
    •     Order users statuses
    •     Order Maint activity type
    •     Order Revision code
    d) Non-Energy Notification custom field attributes include:
    •     Circuit ID
    •     Caller Name
    •     Caller SAP Personnel No
    •     Caller Pax
    •     Caller Alt Phone
    •     Caller email
    •     Caller Company
    •     Caller Bus Unit
    •     Caller Dept
    •     Contact Name
    •     Contact SAP PERNR
    •     Contact PAX
    •     Contact Alt Phone
    •     Contact email
    •     Peregrine #
    •     Created by
    •     Closed by
    e) EAM Notification custom field attributes include:
    •     Location
    •     Elevation
    •     Room
    •     Column
    II. These fields need to be available on both selection and display variant screens. They will be grouped together on the Selection screen (as given in the layout). Also, these fields need to be variant configurable (include/exclude) on the Display screen. Report should make use of the ABAP List Viewer (ALV) functionality to permit standard SAP display results sorting, filtering, etc.
    III. The above requirement specifies that the identified custom fields need to be added to the Custom List Edit Display Variant. In addition, the Order Header Short Text (CAUFVD-KTEXT) and Order Delay Code (WA_COCI_AUFK-ZZDCODES) should only be added to the Custom List Edit Display Variant.
    IV. Delete the standard SAP section for "Selection Using IS-U Objects" and Display Variant fields from the custom list edit report.
    Thanks and regards,
    Ankitha.

    Hi,
    Copy RIQMEL20 program to your Z Program, and insert your custom fields.
    But i think it will be very difficult since it has many enhancement point and it's not recommended. And it also will give you much trouble in upgrading time.
    May be you can find screen exit for this program and add your custom fields, or just create your new z program.
    Regards,

  • How to changes  standard sap label description

    Hi !
    I heard that there is a way ton change standard sap label description. 
    Please tell me how to do this ?
    Thanks
    moshe

    Hi Solman
       You can do that using the method i have mentioned in
    my earlier post to change the descrptions. Mostly these
    will be used for Product Attributes in Material Master
    to give meaningful names as per our business. You can
    find the same if you go through the documentation
    following the below path
    IMG -> Sales & Distribution -> System Modifications ->
       Create New Fields( without Condition Technique).
    Here check the documentation of "Reserve Fields in the
    Customer Master Record"
      Hope that can help you understand better.
    Kind Regards
    Eswar

  • How to display HTML files using ABAP Webdynpro?

    Hi,
    I have a html index file and a bunch of other files accessed by the index file  in a specific directory on the SAP server. I'd like to display the index file via ABAP webdynpro and allow the users to click on what they need to see. How can I achieve this using utilizing the ABAP webdynpro technology ?
    Thanks!

    Hi Thomas,
    Thanks for taking the time to answer my question.
    I have the main html file and all other files needed by the main file in one directory on the application layer of SAP. I'd like to provide the user with a link, by clicking on which they should be able to get to the main html file using the browser. This is just a standalone application.
    I can try the approach using BSPs, however, I'm new to that area. Could you point me in the right direction to get started?

Maybe you are looking for

  • BPM: is manual interaction possible in BPM?

    Hi , ALL, i would like to design a BPM, in such a way that in between my BPM should interact with another Application to get approval ( like manager approval). How can i design my BPM steps for that particular type of Business processes? can anybody

  • Unable to Create Project Contract  from back end (R12)

    Hello, I am trying to create project contract using following code: DECLARE lv_return_status VARCHAR2 ( 1000 ); ln_msg_count NUMBER; lv_msg_data VARCHAR2 ( 1000 ); l1 oke_import_contract_pub.chr_rec_type; l2 oke_import_contract_pub.chr_rec_type; erro

  • Slow start (white frame) when hardware acceleration is on

    When I launch FF4, I see a white windows frame for 2-4 sec before it actually show the interface inside the frame. This is not happening if I uncheck the "Use hardware acceleration" checkbox. However, I would like to use it... My System is a new Dell

  • Mouse lag / slow down due to bandwidth useage?

    I'm using a late 2009 Macbook Pro running Lion. All software is up to date. I have a Magic Mouse and also a Microsoft Wireless Mobile Mouse 4000. The mouse slows down and becomes very jerky and laggy jumping all over under certain curcumstances, I ha

  • Best practice game design

    Having decided to use java to develop what will be for the most part a 2D (overhead) tile-based RPG game I'm wondering what the best practice is for designing a game like this. At the minute I'm intending on using a 'state' system, varying game state