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

Similar Messages

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

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

  • NWDS - Importing standard SAp packages

    Hi,
          I am new to NWDS java developmennt.
    I have succesfully developed, deployed a demo EJB to J2EE and also able to execute it from my SAP portal server.
    I am trying to use the user management API ot Portal (like package com.sap.security.api), however when I write the following statement, it gives an error on my local NWDS build.
    import com.sap.security.api;
    Question is how do I refer to this remote package (or any other SAP package) which is lying on J2EE on my local NWDS software build.
    Thanks,
    Amit Jain

    This is answered. The standard SAP packages are available on local machine.
    Right click on project->properties
    Selectr Java Build path-> Libraries->Add Variable->Select ECLIPSE_HOME
    Hit Extend
    Select Plugins
    Select com.sap.security_2.0.0
    Now the import com.sap.security.api.* statement will not give any syntax errors.
    Closing the thread.

  • Error in Importing standard SAP DCs to Production system

    Hi All
    I am trying to do a transport from QA to Production system. 3 of the standard components
    sap.com_GP-CORE
    sap.com_CAF-MF
    sap.com_CAF
    are not getting imported  to Prod. It gives an error
    caused by Exception:com.sap.cms.tcs.beans.exception.TCSDeployException_Communication: The user 'cedeploy' could not be connected to the specified host 'bhbc1ce01.ent.bhicorp.com'and port '50004'.:The user 'cedeploy' could not be connected to the specified host 'bhbc1ce01.ent.bhicorp.com'and port '50004'.
    com.sap.cms.tcs.beans.exception.TCSDeployException_Communication: The user 'cedeploy' could not be connected to the specified host 'bhbc1ce01.ent.bhicorp.com'and port '50004'.
    The user is not locked. I managed to import the rest of the components to Prod with the same user ID.
    Only thing i am able to notice is that, the Owner for these 3 components are "jointadm"  and the rest of the other components had owner as "Make".
    Please give me your suggestion.
    regards
    Deepu

    HI,
    Under the runtime systems tab in CMS lanscape configurator,
    check  the username and password details given for thr production runtime system .
    also once save the configuration.
    Regards,
    Satya.

  • ESR - How do you import standard SAP Models

    Hi,
    We've recently upgraded to PI 7.1 and I'm looking to model some integration scenarios.
    I have been reading the following help
    http://help.sap.com/saphelp_nwpi71/helpdata/en/73/70bfcc163b48b0bb5edb6cdd860766/frameset.htm
    Under the section - Modeling Guide for model types in the ES Repository - there is the following note
    Finally, the different models are a good way of documenting the whole process of an application and make it easier to enhance software later.
    Note
    SAP already works internally with the modeling environment, including a unification and standardization process (Governance Process), to increase the level of reusability. SAP delivers the models that were produced by this process as ESR content to aid the understanding of the SAP application.
    End of the note.
    I'm wondering if there is a way to import these models so I can view them.
    Regards,
    John

    Hi John,
    After the upgrade, if you drill down the SAP Standard Software Component Versions in the ESR you'll notice some of the models that SAP shipped with the upgrade. You can start looking at those to get a good idea of how SAP has used them.
    The other alternative is that if you import XI Content from Service Marketplace that you migh require for building Enterprise Services for a specific scenario you may have, SAP Models used to produce that Enterprise Service/s are shipped with the XI content. You can browse through those as well.
    Regards, Trevor

  • Toolbar: replace SAP icon with custom icon

    Hello,
    in the account overview (component BP_HEAD, view BPHEADOverview), the implementation class (CL_BP_HEAD_BPHEADOVERVIEW_IMPL) contains method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS where the buttons for the account overview are collected.
    Here you can check which buttons are used by SAP standard, e.g. for the PDF fact sheet, an icon is added:
    ls_button-icon_src = '/sap/bc/bsp/sap/crm_ppm/w_pdf__s.gif' .
    Now, I wanted to replace the given icon by another, customer-specific icon. I've tried to change the given URL to anything else, however, it didn't work. I even found out that the given URL is not necessary, it even works with this:
    ls_button-icon_src = 'w_pdf__s.gif' .
    ls_button-icon_src = 'i_do_not_exist/w_pdf__s.gif' .
    Thus, I assume that there's some kind of mapping of the icon name (e.g. "w_pdf__s.gif") is mapped to any table entry or whatever hard-coded.
    Does anyone having experience with replacing the icon with a custom-specific one and can provide the necessary steps?
    Regards
    Wolfgang

    Hi Wolfgang,
               You can use below sample code to get corresponding url for any standard sap icon:
    lv_icon = 'ICON_LED_GREEN'.
    *   Convert icon code into URL and prepare bee
        lv_icon = cl_bsp_mimes=>sap_icon( id = lv_icon ).
        lr_image->src = lv_icon.
    Also, all the icons are available in the database table 'ICON'.
    I hope that helps.
    Thanks,
    Rohit

  • Standard sap BACK, CANCEL icons affected by custom status - why?

    Hello SDN Community,
    I was trying to clean up some items in the Function List display of my custom status and I had deleted a couple of items that I had created incorrectly.
    After that, I ran my transaction and clicked the standard sap EXIT icon.  It returned me to the initial SAP screen.   However, I noticed that the BACK and CANCEL icons were greyed out.  It was working fine 5 minutes before this.
    Would anyone know what I might have done to cause this to happen?  Things to look for, places to check?
    Thank you,
    Dean Atteberry.

    Rich,
    Both buttons (BACK, CANCEL) have function codes of the same name.
    The EXIT button has function code of "EXIT".
    All three are active as long as my transaction is running and they function fine from any screen (about 6 screens).
    However, when I hit any one of the three (BACK, EXIT, CANCEL), it returns me to the SAP Easy Access screen.  On that screen BACK and CANCEL are greyed out.  EXIT is active.
    When I hit back from my first screen, my program does "LEAVE PROGRAM".   So I turned on debugger and put SY-PFKEY in the variable display and hit BACK.  It went directly to Easy Access, so I didn't see anything.  However, when I typed in SE38 in command line, it was still in debugging mode and "SESSION" showed up in debug variable display for SY-PFKEY.
    Program for easy access is SAPLSMTR_NAVIGATION and when I looked in SE41 for status SESSION, found it.  I can see function code settings, but not sure what it means.
    Looks like I managed to mess something up internally when I deleted those incorrect function codes because my program works fine.  Its when I return to SAP that this happens.
    Also tried logging off and logging on in hopes that it was transient, but still happening.  8-(
    Thank you for your help.
    Dean Atteberry.

  • Adding field in standard SAP transaction output results.

    Hi,
    I have to add a new field in standard SAP transaction output results.
    Can any one tell me what are the ways (brief explanation) that I can do this?
    If using exists - then what kind of exists I have to use? And how to find out the possibility with user exists?
    Thanks for your time.
    Thanks.
    Chris.

    Hi,
        There are so many ways to find out the user exits.
    Hi,
    To see SAP Exits -> Use Tcode SMOD
    To See create a project for Customer Exits -> Use Tcode CMOD
    There are projects to which Exits are assigned. Selects the relevant projects.
    What is User Exit:
    http://www.sap-img.com/abap/what-is-user-exits.htm
    How to find then:
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    All Exits List:
    http://www.easymarketplace.de/userexit.php
    Do a search on SAP Exits, Customer Exits, enhancements, etc
    Step 1 :- Execute transaction
    step 2 :- Click on Status Menu
    step 3 :- Double click on the program (screen) __?????___
    Step 4 :- Search source code for the 'Customer-Function' string using the find button. Remember to select 'In main program'.
    Step 5 :- A list of search results should be displayed indicating where all function exits can be found.
    You can now double click on each of them to go to its position in the source code. This also
    allows for the insertion of breakpoints so that you can test if the exits are called in the
    appropriate place.
    Step 6 :-Once you have found the Function Exit within the source code (Find Function Exit) you need to
    access the actual function module it executes. This is done using the following steps:
    Step 6.1 :-
    Step 1
    Locate desired 'Call Customer-function' statement within source code.
    Step 2
    If code is not within main program (module pool) e.g. SAP* then you will need to find this
    out by selecting 'Main Program' from the 'GOTO' menu. The Main program for transaction
    Step 3
    The actual function module name can now be calculated based on the information retrieved,
    it is defined by the following format:
    EXIT_<Program name>_<Exit number>
    eg :- 'EXIT_SAPLMR1M_004'.
    Step 7.1:-
    Once you have found the Exit function module
    Step 1
    Execute transaction CMOD
    Step 2
    Select 'SAP Enhancements' from the 'Utilities' menu.
    Step 3
    Select 'All selections' from the 'Edit' menu.
    Step 4
    Now populate the Component name field with the exit function module and press
    the execute button.
    Step 5
    A list of all Exits(Enhancements) containing that function module should now be displayed.
    Step 5
    You can now double click on the desired exit to display a detailed description of its uses and a list of all
    components contained in it.
    Implementing Function Exit
    This is required in-order to activate Function exit:
    Step 1
    The first step is to enter source code into function module in the usual way i.e. via SE37.
    There will already be an include declaration within the code with the following
    format: Include zx*.
    Double click on this to create it, source code can then be entered within here.
    Although it is good practice to create another include with this to store your
    code, this allows separation of difference enhancements allowing them to be easlity
    removed without de-activating the enhancement.
    Step 2
    Execute transaction CMOD and create new Enhancement. Enter name and press the create
    Button.
    Step 3
    The following screen should be displayed, enter short text then click on the 'Enhancement
    Step 4
    Now enter the Exit name (enhancement) which contains the desired Function Exit.
    Step 5
    Return to initial screen of CMOD and press the activate icon. The exit is now ready for use.
    Please Mark The Helfull Answers & close the thread.
    regards
    dj
    reward for all useful answers.

  • How to change The Standard JOptionPane Icon?

    in this simple code
    i want to change the Standard JOptionPane icon to a different icon
    how could it be?
    thank you
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import javax.sound.sampled.*;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.Icon;
    import java.awt.event.*;
      public class MyFrame extends JFrame 
    JLabel label=new JLabel("Hello");
      MyInner inner;
          MyFrame ()
            setupGUI();
        private void setupGUI()
           JFrame f =new JFrame();
        //   f.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
           f.setTitle("Window Event");
            f.setSize(550,350);
            f.setResizable(false);
            f.setLayout(new BorderLayout());
            f.add("Center",label);
            f.show(true);
             inner=new  MyInner();
             f.addWindowListener(inner);
                   class MyInner extends WindowAdapter
           public void windowClosing(WindowEvent ee)
                         Toolkit tool = Toolkit.getDefaultToolkit();
                  tool.beep();
                      JOptionPane.showMessageDialog(null, "Nice Work! " );
                      System.exit(0);
          public  static void main(String[]args)
             MyFrame frame=new MyFrame ();
    }

    For instance:
        class MyInner extends WindowAdapter
            public void windowClosing(WindowEvent ee)
                Toolkit tool = Toolkit.getDefaultToolkit();
                tool.beep();
                JOptionPane.showMessageDialog(null, "Nice Work! ");
                ImageIcon myImageIcon = new ImageIcon("myPic.jpg"); // needs proper path here
                JOptionPane.showMessageDialog(null, "Better Work!", "Dang, I'm smart!", JOptionPane.ERROR_MESSAGE, myImageIcon);
                System.exit(0);
        }

  • Standard SAP report for variance analysis of SD and MM

    Dear All,
    I want the standard SAP report for the vendors and customer varaiance analysis for the posting done in MM and SD with the GL balance in FI .It should be same as the report we get from the transaction code MB5L.
    Thanks in advance
    Meruta

    HI,
    The 1AB library contains reports for variance analyses. This is an important report for Cost Center Accounting (CO-OM-CCA) supplied in the SAP R/3 System. Additional information for  report can be found in the documentation for the reports. Choose Extras->Documentation from the report itself.
    Hope I had been able to help you out. Please assign points.
    Rgds
    Manish

  • Change in Standard SAP menu : How to catch the transaction code!

    Hello,
    I have added a menu item 'More Help' to the standard SAP menu 'Help' which should navigate to URLs for the respective transactions. Suppose i am in transaction FB03 and click the 'More Help' menu, it should navigate to the URL mentioned in a table.
    My Problem is I have created a transaction for that menu item 'zhelp' which calls a program and when i am clicking the 'more help' tab , the original value of sy-tcode which should be FB03 is replaced with the new Transaction which is used for the menu item i.e. 'zhelp'. Because of this i am not able to retrieve my value from the table corresponding to the transaction FB03.
    Is there any other system field which stores the value of transaction FB03 aftter navigating to other transaction? How should i go ahead with this? Please help!!
    Edited by: Rojalin Priyadarshiny on Sep 10, 2009 3:45 PM

    Hi,
    I really dont know in how many standard transactions you have added the More Help option.
    If you hav added only in 2  to 3 transactions then you can think on using the below Logic.
    Say if u have added in  FB01, FB02 and FB03 transaction.
    Find one exit for each transaction, in the exit EXPORT TCODE ( EX: FB01 ) to memory.
    In your Ztransaction report IMPORT the TCODE from memory.
    Now u will get FB01 after inmport statement and u can make use of this.
    If the option is added in many transactions , you have to think again in using the above logic as it involves identification of many Exits.
    Regards,
    Sravan

  • Dynamic Selections in Standard SAP program

    There is an Icon which enables dynamic selection in the Standard SAP Transaction 'FBL3N'. How can I add or fields from this dynamic selection?
    Any help would be appeciated.
    Thanks,
    ALAM.

    Hi ,
    it all need upon requrement..
    if any extra paramaters need to add to input or output ---check for Badi or User-exits and add functionality.
    if no enhacements found try to create a copy of standard program and create z Program and add own code..
    Always better to create custom program for rather manually doing code changes to standard program..
    Prabhudas

  • Customization of Standard SAP Report.

    Hi Experts,
    I want to know the procedure of adding one more Tab in a standard SAP screen.Can I do that.If I can then please guide me and tell me stepwise.
    Thanks in Advance.
    Moderator message: please search for information and try yourself before asking.
    locked by: Thomas Zloch on Sep 16, 2010 9:19 AM

    Hi,
    try with:
    EXIT_SAPLV50G_001
    EXIT_SAPLV50G_002
    check as well package VEI where you can find the following function groups:
    X50G User exit for selecting decl. to auth.
    XAKK Documentary payments: User enhancements
    XMF1User exits - Preference determination
    XV50 User exit default Foreign Trade data
    XV52 User exit legal control
    XV55 User exits for printing FT documents
    XVIMP User exit: Default data import simul.
    and finally badi  BADI_LC_UPDATE
    Best regards.
    Edited by: Pablo Casamayor on May 11, 2010 11:21 AM

  • Reverting changes made to Standard SAP objects(Workflow Tasks)

    Hi,
        How to revert back changes made to Standard SAP program . The changes are stored in a Repair request . The details
    of repair request is as folloews .
        GD1K900068   ABAP
            Standard Task
                20000166
                20000167
                20000168
            Workflow templates
                20000075
    . The changes are not recorded in Modification Assistant .
        Kindly guide me .
    Thanks & Regards,
    S.Sivakumar

    Hi,
    Take the reference of another system of those tasks and modify as it is.
    And for Workflow Take Export the Workflow to XML using SWDD Tcode in another system and import the same using SWDD into the existing system.
    In SWDD Tcode ==>
    Step 1: Workflow-->Import/Export-->Export to XML File    " Export to XML file of the workflow which is in another system
    Step 2: Workflow-->Import/Export-->Import from XML File " Import From XML file of the workflow which is in another system to current system
    Hope this would help you to solve the issue.
    Regards
    Narin

Maybe you are looking for

  • Message: smart web printing is not compatable with my browser

    I have latest version[4.6] of smart web however when i try to use i get a message saying MY browser is not compatable... I am using internet explorer 6

  • For all of you who are having Motion Menu render problems - try this

    Just humour me for a minute. I have another Sonic application, and a known bug in the Motion Menu rendering applies to 29.97DF projects only. IE, NTSC. Often the video in a motion menu will fail to mux. There are workarounds though. 1 - Make sure you

  • I BOUGHT A NEW IPHONE6 I AM HAVING PROBLEMS CONNECTING TO FACE TIME AND IMESSAGE

    i need some help. i am not able to access face time and imessage from my new iphone 6.  took phone to my carrier they said all i needed to do was turned off my imessage from my old phone witch i did, but a message comes everytime i want to access fac

  • Local area network disable internet connection

    Hello, i have a strange problem, i explain Computer A  win XP   ip 192.168.2.231 with onboard network card Computer B  win 98   ip 192.168.2.232 with pci network card Router Linksys WRT54GS, with ip 192.168.2.230, but i use it just like a hub because

  • PSA SA and PhotoShop Elements (1.0)

    Hello: I believe that I have Photoshop Elements 1.0, though I can't find a version anywere (even the About box does not show it). I also have Photoshop Album Starter Edition 3.0. Can I use my Photoshop Elements 1.0 installation to edit photos through