Inserting a ICON in a T.code

hai Gurus,
i have a synario...I want to insert a Icon (Information Icon) in a standard T.code (say VF03). Can we do it? If so how?
Please reply soon...
points will be awarded.
Thank you in advance

Hi,
Go With Enhancements .
Menu Exits
Menu exits add items to the pull down menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.

Similar Messages

  • [b]How inserting an icon in a JTable[/b]

    I want to insert an icon in a JTable's column. But a different icon each time in order to represents details about a Jtree.
    I display an adress instead of an icon.
    If you could help me by a sample code,
    Thanks.

    Hi,
    You can find a lot of tutorials for JAVA.
    http://www2.gol.com/users/tame/swing/examples/JTableExamples8.html
    JRG

  • Insertion of icons into JTextPane

    Hello!
    I am trying to insert icons into JTextPane object, and I got a problem.
    My partial code is as follows...
    StyleConstants.setIcon(s, icnIcons);
    doc.insertString(doc.getLength(), "I", doc.getStyle("icon"));
    doc.insertString(doc.getLength(), "I", doc.getStyle("icon"));
    In the above code, s is an object of Style, and icnIcons is an object of ImageIcon, and doc is an object of StyledDocument.
    And the style, s, is registered with a name, "icon".
    If I execute the above code, then only one icon is displayed. But the length of the text is increased by 2.(I check this using doc.getLength() method.)
    So, I make a little change to the above code like the following:
    StyleConstants.setIcon(s, icnIcons);
    doc.insertString(doc.getLength(), "I\n", doc.getStyle("icon")); //changed
    doc.insertString(doc.getLength(), "I", doc.getStyle("icon"));
    I just add "\n". And the second code is working, and displays two icons.
    But the two icons are on the separate line.
    And if I use two different icons, that is, two different styles, in the first code segment, then it works and shows the two icons on the same line, though I didn't use the "\n".
    Why does this happen?
    I am so confused. Please help me.
    Thanks for every body!
    Regards

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.text.*;
    public class IconPane {
        private void showTest(BufferedImage[] images) throws IOException {
            JTextPane textPane = new JTextPane();
            // Add some content.
            File file = new File("IconPane.java");
            BufferedReader br = new BufferedReader(
                                new InputStreamReader(
                                new FileInputStream(file)));
            textPane.read(br, file);
            br.close();
            // Make up a couple of styles.
            int pos1 = 875, pos2 = 876;
            StyledDocument doc = textPane.getStyledDocument();
            Style style = textPane.addStyle("icon1", null);
            StyleConstants.setIcon(style, new ImageIcon(images[0]));
            // Set  icons.
            doc.setCharacterAttributes(pos1, 1, style, false);
            style = textPane.addStyle("icon2", null);
            StyleConstants.setIcon(style, new ImageIcon(images[1]));
            doc.setCharacterAttributes(pos2, 1, style, false);
            // Add the icons again with the insertString method.
            addContent(doc);
            // Show me.
            JScrollPane scrollPane = new JScrollPane(textPane);
            scrollPane.setPreferredSize(new Dimension(500,400));
            textPane.addMouseMotionListener(mouseInput);
            JOptionPane.showMessageDialog(null, scrollPane, "",
                                          JOptionPane.PLAIN_MESSAGE);
        private void addContent(StyledDocument doc) {
            int pos1 = 1667, pos2 = 1669;
            try {
                // Try inserting icons with insertString.
                doc.insertString(pos1, " ", doc.getStyle("icon1"));
                doc.insertString(pos2, " ", doc.getStyle("icon2"));
            } catch(BadLocationException e) {
                System.out.printf("bad location error: %s%n", e.getMessage());
        public static void main(String[] args) throws IOException {
            String[] ids = { "--g--", "---h-" };
            BufferedImage[] images = new BufferedImage[ids.length];
            for(int j = 0; j < images.length; j++)
                images[j] = ImageIO.read(new File("images/geek" + ids[j] + ".gif"));
            new IconPane().showTest(images);
        private MouseMotionAdapter mouseInput = new MouseMotionAdapter() {
            public void mouseMoved(MouseEvent e) {
                int pos = ((JTextComponent)e.getSource()).viewToModel(e.getPoint());
                System.out.println(String.valueOf(pos));
    }

  • Insert SAP ICONS into from SAP into Word document (OLE)

    Hi ,
    I want to Insert SAP ICONS into from SAP into Word document (OLE) .
    Please let me know how can I do it? I would really appreciate it.
    Regards,
    Sanjeev

    Hello,
    Try this out:
    (1) Copy program DD_ADD_PICTURE into your own version called ZDD_ADD_PICTURE. Make sure
    you select all the checkboxes (including GUI Status and screens).
    (2) Paste the modified code at the end of this reply into your ZZ_ADD_PICTURE program.
    (3) Run ZZ_ADD_PICTURE for a range of Icons (e.g. enter Icon name ICON_IN* on the selection screen)
    (4) When you get the result list, type in ok-code EXPO directly in the ok-code
    field (you could also add a button for this function in the GUI status).
    (5) Download all the displayed icons as .gif files into a Windows folder
    that you have created to hold the icon .gif files (e.g. C:SAPICONS)
    (6) Now you can work with the icon files as you would any .gif file. (e.g. In a Word doc, use menu path
    Insert -> Picture -> From file.)
    Here is the code:
    REPORT dd_add_picture.
    TYPE-POOLS: sdydo.
    DATA: do TYPE REF TO cl_dd_document.
    DATA: is_displayed.
    TABLES: icont.
    DATA: BEGIN OF icontab OCCURS 0.
            INCLUDE STRUCTURE icon.
    DATA: END OF icontab.
    select-options: s_icon for icontab-name obligatory.
    SELECT * FROM icon INTO TABLE icontab WHERE locked NE 'X'
                        AND name in s_icon.
    * Event Handler Definition, handling changes of GUI fonts, colors,...
    CLASS cl_my_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          use_new_resources FOR EVENT resources_changed OF cl_gui_resources.
    ENDCLASS.
    DATA: my_handler TYPE REF TO cl_my_event_handler.
    CREATE OBJECT my_handler.
    * Call Screen
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      IF is_displayed IS INITIAL.
        SET PF-STATUS 'BRP'.
        SET HANDLER my_handler->use_new_resources.
    * create document
        CREATE OBJECT do.
    * fill document
        PERFORM dd_add_icon USING do.
    * merge document
        CALL METHOD do->merge_document.
    * display document .
        CALL METHOD do->display_document
                           EXPORTING  container          = 'HTML'
                           EXCEPTIONS html_display_error = 1.
                                           " do some exception handling ...
        is_displayed = 'X'.
      ENDIF.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.                       "Beenden
          LEAVE PROGRAM.
        WHEN 'PRN'.
          CALL METHOD do->print_document
                  EXPORTING reuse_control = 'X'.
        WHEN 'PRN_NEW'.
          DATA text TYPE sdydo_text_element.
          CALL METHOD do->initialize_document.
          text = 'Dies Dokument wurde speziell fürs Drucken erstellt!' &
                            ' Druckdatum: '(500).
          CALL METHOD do->add_text EXPORTING
                               text         = text
                               sap_fontsize = cl_dd_area=>large.
          WRITE sy-datum TO text DD/MM/YYYY.
          CALL METHOD do->add_text EXPORTING text = text .
          CALL METHOD do->new_line EXPORTING repeat = 2.
          PERFORM dd_add_icon USING do.
          CALL METHOD do->merge_document.
          CALL METHOD do->print_document.
        WHEN 'EXPO'.
          CALL METHOD do->export_document EXPORTING to_filesystem = 'X'.
      ENDCASE.
      CLEAR sy-ucomm.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  DD_ADD_ICON
    *       text
    FORM dd_add_icon USING p_do TYPE REF TO cl_dd_document.
      DATA ta TYPE REF TO cl_dd_table_element.
      DATA col1 TYPE REF TO cl_dd_area.
      DATA col2 TYPE REF TO cl_dd_area.
      DATA col3 TYPE REF TO cl_dd_area.
      DATA text TYPE sdydo_text_element.
    * set Heading
      text = ' Bilder in Dynamischen Dokumenten'(001).
      CALL METHOD p_do->add_text EXPORTING text = text
                                      sap_style = 'heading'.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->add_table EXPORTING with_heading    = 'X'
                                          no_of_columns     = 3
                                          width             = '100%'
                                          IMPORTING table   = ta.
    * set columns
      text = 'Ikone'(011).
      CALL METHOD ta->add_column EXPORTING heading  = text
                                 IMPORTING column   = col1.
    * fill table
      LOOP AT icontab.
        SELECT SINGLE * FROM icont WHERE langu = sy-langu
                                   AND   id    = icontab-id.
        CALL METHOD col1->add_icon EXPORTING sap_icon = icontab-name
                                             sap_color = 'LIST_GROUP'.
      ENDLOOP.
    ENDFORM.                               " DD_ADD_ICON
    * CLASS cl_my_event_handler IMPLEMENTATION.
    CLASS cl_my_event_handler IMPLEMENTATION.
      METHOD use_new_resources.
        IF is_displayed EQ 'X'.
    * initialize document
          CALL METHOD do->initialize_document.
    * fill document
          PERFORM dd_add_icon USING do.
    * merge document
          CALL METHOD do->merge_document.
    * display document
          CALL METHOD do->display_document
                              EXPORTING reuse_control        = 'X'
                                        reuse_registration   = 'X'.
        ENDIF.
      ENDMETHOD.
    ENDCLASS.
    Regards,
    Vasanth

  • How to Insert Multiple Icons in a Canvas?

    Hi All
    I am new to MIDlets so I need some initial help related to UI generation in MIDlets.
    I have to Insert multiple Icons in a canvas.
    These Icon should behave like button i.e. all Icon must have key-pressed event separately(i.e.
    when any particular Icon will be selected(positioned whatever) some action will be performed.
    same like in smart phone a single screen contains multiple icon for multiple operations to be
    performed.
    Is it possible in single canvas or I have to make multiple canvas for each icons?
    Any suggestion will be appreciated
    Thanks
    Nitesh.

    Hi ,,
    In Bex analyzer (BI 7.0) i am getting the option tools-> insert query??
    Do i need to configure anywhere to get this option //
    Can you please give details on that.
    Thanks,
    Debasish

  • Inserting asp dynamic content into javascript code

    I am inserting the following javascript text scroller code
    into my page. As you will see, each line of text to be displayed on
    the scroller is preceded with fcontent[0], fcontent[1] etc.
    Since the text will be populated by a database field with a
    repeat region applied, how do I get the fcontent[0] to increase in
    value with each repeated record?
    Secondly, will the javascript code support the mix of asp
    code as well?
    var fcontent=new Array();
    begintag='<div style="font: normal 14px Arial; padding:
    5px;">'; //set opening tag, such as font declarations
    fcontent[0]="<b>What\'s new?</b><br>New
    scripts added to the Scroller category!<br><br>The
    MoreZone has been updated. <a
    href='../morezone/index.htm'>Click here to visit</a>";
    fcontent[1]="Dynamic Drive has been featured on Jars as a top
    5% resource, and About.com as a recommended DHTML destination.";
    fcontent[2]="Ok, enough with these pointless messages. You
    get the idea behind this script.</a>";
    closetag='</div>';

    Try this
    use eval() to evaluate your code stored in the variable.
    http://uk2.php.net/manual/en/function.eval.php
    but Chances are tiny mce is encoding the php as html and i am not sure if addt will also be html encoding it it as well, so you need to check in the database if the text is encoded or escaped in some fasion. dont use tiny mce to insert the code just use a normal text area field and if addt is html encoding then you will have to use addt html de encode function to reverse what ever addt may have done to it.

  • Insert valid sim with no pin code

    i buyed iphone 4s ....i updated it to ios 5.0.1 now it starts from start screen and says insert valid sim with no pin code....what does this mean i inserted many sim cards but not working ....m stuck at activation screen n cant do anything...my baseband is 1.0.13 and having model 9A405

    It is what I thought already. The problem is, that when you buy a second hand iPhone, you never know what someone did to it. A jailbroken iPhone you should never try to update, because then it won't work anymore. You can use it, but NEVER try to update. This was a painful lesson, I feel for you. In this forum you will not find any halp on this problem. You may try in some other forum perhaps.

  • How is add/insert jpeg/gif files on wiki (code gallery)

    Hi;
    I prepared new wiki-code gallery page. I must insert/add jpeg/gif files on my page. But I dont know  How is add/insert jpeg/gif files on wiki (code gallery).
    Please help me.
    Thanks.
    http://wiki.sdn.sap.com/wiki/display/Snippets/NewTimeDomainandConversionRoutineforTotalTime

    Hi;
    Mr Moshe Naveh helped me. He sended me new template page.
    I again prepared my wiki with new template.  ( http://wiki.sdn.sap.com/wiki/pages/createpage-entervariables.action?spaceKey=stage&templateId=113147905 ) I added jpeg files on new wiki page.
    Then He moved my new page.
    Thanks him.
    Best regards.

  • All Icons and their function codes

    Hi all!
    How can we find all the available icons and their related function codes? I have watched PRINT icon having different function codes in different ALV reports.
    Edited by: Jayasri P. on Jan 7, 2008 12:44 PM

    Hello.
    In order to use them in the GUI status of your ALV do the following:
    go copy the status "STANDARD_FULLSCREEN" of the program "SPLKKBL" to your program and change it.
    If you go to your own status now, under "Application Toolbar", you can define there your own function codes and use them in your code. As far as the icon is concerned, when you will first set the function code, the system will pop-up a screen in which you can define the icon you want to assign to that function code. You just have to do an F4 on the respective field of the pop-up and a new pop-up will show you all the available standard icons of the system that are available for use in your own GUI status. There, the name of each icon (for example, ICON_OKAY, or ICON_CANCEL etc) can be used to display icons in standard ABAP lists. In this case you have to add in your report the following line
    TYPE-POOLS: ICON.
    and then write something like this:
    write:/ icon_okay as icon.
    Reward please if it help.
    Regards,
    George

  • How to disable attachment icon in the below code

    Session session = null;
              Properties props = new Properties();
              props.put("mail.smtp.host", mailHost);
              session = Session.getDefaultInstance(props, null);
              log.info("STEP 1");
              try {
                   Calendar currentDate = Calendar.getInstance();
                   currentDate.add(Calendar.DATE, 0);
                   log.info("STEP 2");
                   MimeMessage mesg = new MimeMessage(session);
                   log.info("STEP 3");
                   String mailBody = "RSS Feed link as of"
                             + (currentDate.get(Calendar.MONTH) + 1) + File.separator
                             + currentDate.get(Calendar.DATE) + File.separator
                             + currentDate.get(Calendar.YEAR) + messageText;
                   log.info("THE MAIL BODY IS :" + mailBody);
                   try {
                        mesg.setFrom(new InternetAddress(fromAddress));
                        InternetAddress toAddress = new InternetAddress(destAddr);
                        mesg.addRecipient(Message.RecipientType.TO, toAddress);
                   } catch (Exception x) {
                   mesg.setSubject("Cybermedia Dice Job Portal RSS Feed information link");
                   MimeBodyPart messageBodyPart = new MimeBodyPart();
                   messageBodyPart.setText(mailBody, "us-ascii");
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(messageBodyPart);
                   mesg.setContent(multipart);
                   Transport.send(mesg);
                   * MimeBodyPart attachmentBodyPart = new MimeBodyPart(); DataSource
                   * source = new FileDataSource(outputFileName);
                   * attachmentBodyPart.setDataHandler(new DataHandler(source));
                   * attachmentBodyPart.setFileName(outputFileName);
                   * multipart.addBodyPart(attachmentBodyPart);
                   log.info("STOP HERE..");
              } catch (Exception ex) {
                   StringWriter writer = new StringWriter();
                   ex.printStackTrace(new PrintWriter(writer));
                   String trace = writer.toString();
                   log.error(trace);
    Can any one help what should be modified so that the attachment icon is disabled in mail
    Presently it shows attachment icon using the above code

    Hi naga,
    1. one option is to retrive the source code of the requried program,
       into internal table using the syntax READ REPORT (just see f1 help on it)
    READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
    2. Then we can loop / search the internal table for the required term.
    regards,
    amit m.

  • ERROR in inserting values in table  PL/SQL code

    Hello Friends,
    I am facing a peculiar logical error in my PL/SQL code. PFB the code for your reference -
    for k in (select account_no from mirror_lookup_accnt_hierarchy where mdate = sys_date) LOOP
    dbms_output.put_line(' SYSDATE :!! '||sys_date||' '||k.account_no);
    insert into sfdc_account select * from mirror_sfdc_account where sap_account_id__c=k.account_no;
    commit;
    end loop;
    Just to elaborate on the code functionality......
    The outer FOR loop on the table has the records in the order i want to populate in the final sfdc_account table.
    Now, i compare the account_no of the table mirror_sfdc_account table with the account_no of the FOR LOOP and INSERT that record in the final sfdc_account table. So, it is entered according to the order i want to have.
    The problem is, this code runs fine for the first time, but then on it does not popuate the values in the right order according to the FOR LOOP values.
    I have tried deleting data and running again, but the error persists. It enters the records but NOT IN ORDER according to the condition i have given!!
    Kindly Help.....what can be the problem!!
    Thanks and Regards,

    Hi friend,
    The thing is that we need to populate the final
    table based on a hierarchy,the relation between
    parent and child fieldNo. The thing is.... that Oracle is a relational database. That means that the data is stored in a relational manner, not in an ordered manner, such as you get with COBOL and it's flat file format.
    You CANNOT rely on the database to store data in an ordered manner.
    If you require the data in some sort of order when you retrieve it then you MUST store information against the data which can be used to determine that order and you MUST specify an ORDER BY clause on your query that retrieves the data.
    Internally Oracle will not maintain the order of the data for you automatically.
    This is a simple truth.

  • Insert HTML function to include a code editor

    Would love to see the Insert HTML function include coding features such as code completion and line numbers.

    that would be real helpful!

  • SAPSCript - Inserting a graphic dunamically with ABAB-Code?

    Hello,
    I want to insert a graphic dynamically from my ABAB-printprogram. It should not be inserted in a specific window. And the graphic should not be predefined in the layoutset. Is there a possibility to do this. Thanks for your help. Regards, Lars.

    Hello Vinod,
    we try to print a testlogo in the background of the printing form, depending on the SAP-System running. Is there a possibility for dynamically printing this graphic in the background without changing any existing layoutset. If not, we have to change every page in every layoutset and we have quit a lot of layoutsets. So we were thinking about the possibility of solving this problem with ABAP code, maybe in a function module. Regards, Lars.
    P.S.: May it be possible printing a graphic that was transformed to a textelement with the function 'PRINT_TEXT'.

  • Business Object Icon on Copy Company Code screen

    Hi,
    After sccessfully copying Company Code, on the screen of Tcode:EC01, theres an icon of BO, I would like to know what is this for???
    when I click on that icon, it takes me to screen that has Object tree structure. Please explain what type of configuration does it lead to???
    Thanks

    hi
    you can use Business Objects in your process also that is why it shows BO
    Edited by: AP on Apr 6, 2009 6:51 AM

  • Netbeans GUI editing: insert image / icon

    Hi everybody,
    I have build my GUI using the NetBeans 5.0 GUI editor. Does anybody know how to insert an image or icon in my GUI using this editor?
    Best regards,
    Jethro

    I've only tinkered with netbeans for about 5 minutes, but it seemed easy enough -
    in design view add a label, highlight the label, go to the label properties window
    (bottom right corner), click the elipse next to icon, select the image file, OK out
    an image appears

Maybe you are looking for