Add button on window

Hi I am creating window with selection parameters. When this window is displayed i am getting some of the SAP standard buttons like check save cancel etc. I want to add one extra button at the bottom. Is it feasible ? If yes how?

Hi,
SET PF-STATUS is used for defining menu in the program and screens.
For that first you need to create the GUI Status for the program in which you are going to use the GUI Status....
GUI Status contains the Menubar , Standard Toolbar & Application Toolbar.
You can create it by this way ...
SE80
Create Program
Right Click on Program
Create --> GUS Status...
Give Name of that GUI Status.. ( Further it will be useful in the program )
Now it opens the window where you can design your own menu & toolbar...
Design it...
Now save and activate it..
Now come back to your program (ABAP Editor )
Write the first statement like below..
SET PF-STATUS 'MENU1'.
Here MENU1 is the name of the GUI status which you created from SE80..
You can handle the user command here using
case sy-ucomm.
when 'SE11'.
call transaction 'SE11'.
when 'NEXT'.
Some logic...
endcase.
Please check this links for more information and sample codes.
http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
http://www.sapfans.com/sapfans/alex.htm
Regards,
Ferry Lianto

Similar Messages

  • How do I add a close window button/image

    All I want to do: Add a close window button (round/square with an "x" through it) to either one or many html files. I don't see how to do this.
    Using RoboHelp 8 HTML and WinXP. Thanks.

    Ahh I see now. You are asking where to obtain such an image!
    The RoboHelp Gallery doesn't contain one. Sorry. You will need to obtain one from any number of other locations.
    You might look at the following link for one possibility.
    Icon Archive
    Here are a couple from my own colloection. You might right-click and save as.
    There are also a number of packages you may purchase or find. Perhaps the following link will help.
    Click here to search Google
    I cannot advise on the legal implications of using said images.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • HANA Studio: On "New Calculated Column" window Add Button Not Visible

    Hi Geeks,
    On HANA Studio, I'm trying to create a calculated column on Analytical view but "Calculated Column" window doesn't have "Okie" or "Add" buttons visible to save entered values on this applet. Could you please suggest me how to fix this. Thanks.
    Regards, Amit

    Hi Experts
    We have here right the same kind of problem :
    In the expression editor, I don't have any 'OK' button to validate my Input.
    I tried ENTER and TAB, as suggested by Kunal Arvind Gandhi, but with no clue of success.
    I am running on SAP HANA SPS07, with the SAP HANA studio version 1.0.7300 (Build id:  389160). My colleague running the studio version 1.80.x has the same problem, whereas some other guys with the same version do have 'OK' on the bottom right of their screen. (Same view, same expression !).
    Any suggestion is more than welcome !

  • Missing the "ADD" button for custom print sizes

    I can follow an instruction like:
    - Open the Printers or Printer And Faxes window from the Start menu. Right-click the Adobe PDF printer, and choose Printing Preferences.
    or i can get to that same place in Word/Print/etc.
    But when i get to the tab "Adobe PDF Settings" and look next to the drop-down for "Adobe PDF Page Size", the "ADD" button is missing.
    You can see what I mean with a screen print I pasted at http://www.miloshapiro.com/temp/temp.htm .
    I know I'm looking in the right place because I remember seeing the button there before.
    What might i possibly have messed up to have this button go away...and more importantly how can I get it back?
    I'm on Acrobat 6 on WinXP, if that matters.
    Will try to paste image below as well.

    Did you check for a custom setting under the Page Size list?

  • How  add buttons to Jframe from other class

    Hi, a have a little problem;)
    I want make a JFrame, but i want to add JButtons from other class. Now I have something like that:
    My JFrame class:
    package windoow;
    import javax.swing.*;
    import java.awt.*;
    public class MyWindow extends JFrame {
           Butt buttons ;
            public Window(String s) {
                     super(s);
                    this.setSize(600, 600);
                    this.setVisible(true);
                    Buttons();
                public void Buttons(){
                    setLayout(null);            
                   buttons = new Butt();
                   buttons.mywindow =this;
    } My class with buttons:
    package windoow;
    import javax.swing.JButton;
    public class Butt {
            MyWindow mywindow;
            JButton b1;
            Butt(){
                      b1 = new JButton("Button");
                      b1.setBounds(100,100,100,20);
                      mywindow.add(b1);  
    } and i have NullPointerException.
    When i try to make new MyWindow in Butt clas i have something like StackOverFlow.
    what should i do?

    Your null pointer exception is occuring because, in your Butt() constructor, you are calling mywindow.add(b1), but you don't set mywindow until after you call the constructor in the MyWindow::Buttons() method.
    And, if you try to create a new MyWindow() in your Butt() constructor, and, assuming that you are calling the MyWindow::Window(String s) method from the MyWindow() constructor (which is not clear from the code fragment you posted), then Butt() calls new MyWindow() which calls Window(String s) which calls Butt() which calls ... and so on, until the stack overflows.
    One possible solution ... pass your MyWindow reference into your Butt() constructor as this, as so:
    public void Buttons()
       // stuff deleted
      buttons = new Butt( this );
       // stuff deleted
    // AND
    Butt( MyWindow mw )
       // stuff deleted
      mywindow = mw;
      mywindow.add( b1 ); // b1 created in stuff deleted section  
    }Also, I would call setVisible(true) as the last thing I did during the construction of the frame. This realizes the frame, and from that point forward, most changes to the frame should be made on the event thread.
    ¦ {Þ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Placement of cursor - when ADD button, place cursor on first item in row

    I have several collections on a page. The third collection CATCH_C is usually empty. The user can tab to ADD button. Currently, the cursor is then placed at the first item on the page. I would like it to be place in the first item in that collection. Is that possible?
    ps. when the page is pulled up, the page attributes HTML body has the command onload="html_GetElement('f3_0001').focus()"
    could I do something similiar for c042 in CATCH_C? and if so, where would I place such a statement? again, very new to java/html so all help appreciated.
    karen

    indeed. thanks!
    so, now I have two processes....but neither work. Upon entering the form, the cursor is on the FILE menu (top left of window):
    start_cursor is PROCESS after footer condition REQUEST != ADD
    BEGIN
    HTP.p ('<script>');
    HTP.p ('html_GetElement(''f03_0001'').focus();');
    HTP.p ('</script>');
    END;
    add_cursor is PROCESS after submit condition REQUEST = ADD
    BEGIN
    HTP.p ('<script>');
    HTP.p ('html_GetElement(''f42_9901'').focus();');
    HTP.p ('</script>');
    END;

  • Pick Ticket Printing when Pressing Add Button in Order ENtry

    Simple question ...
    All I need to do is when I press the Add button when entering and Order is automatically print a Pick Ticket
    Not an Order and I do not want to Prompt the Order Entry person if they Want to print a Pick Ticket or an Order or Both. 
    How do I get Pick Ticket and ONLY the Pick Ticket to print without the prompts?   I know I can make an Order look like a Pick Ticket and and go to Print Preferences and Un Check Pick tickets,  but I am trying to avoid creating a new form,  and whe might want to print both forms again in the future.  I am sure it is something simple
    Thanks in advance!!!

    The options window where you Choose Pick ticket / Sales Order cannot be avoided.  By system design this window will appear when ever you have Print Picking sheet checked

  • CF10 HF7 shows Win2k3 PerfMon Counters but Add button disabled

    hi there
    in another topic I am looking for a cpu load prob where the cpu hits the ceiling and remains there.
    So i wanted to use Windows' PerfMon to do a long time log to get a timestamp to corelate with the server logs ...
    However, PerfMon shows the CF10 and its options, but the Add button for all options or select ones is disabled (grayed out). However, PerfMon does show their explanations.
    In CF, we have set Server Monitoring on, except for memory, because memory is not an issue.
    I checked all related msgs here, but no one has this behavior i am facing ...
    thanks for hints
    Martin

    hi there
    in another topic I am looking for a cpu load prob where the cpu hits the ceiling and remains there.
    So i wanted to use Windows' PerfMon to do a long time log to get a timestamp to corelate with the server logs ...
    However, PerfMon shows the CF10 and its options, but the Add button for all options or select ones is disabled (grayed out). However, PerfMon does show their explanations.
    In CF, we have set Server Monitoring on, except for memory, because memory is not an issue.
    I checked all related msgs here, but no one has this behavior i am facing ...
    thanks for hints
    Martin

  • No "Add" button for new SDKs!

    OK, I'm trying to add the new 3.4 SDK to my Flex Builder 3 and I'm trying to follow the directions that I found here: http://blog.flexexamples.com/2008/08/01/downloading-and-installing-flex-sdk-builds-from-op ensourceadobecom/
    But I don't have an "Add" button anywhere on the Flex - Installed Flex SDK.... I have Reset SDK List and Apply and thats it.. nothing else... what am I missing here?

    Thanks for the tips. I did some research myself and I believe I've found a solution of my own. What I do is click window>preferences and select the "general" section on the left. Then I close the preferences window and open it again. Then I resize this window so there is a lot of space on the right, where the buttons should appear and when my window is big enough I go to Flex>Installed Flex SDKs. Voila! I can see all the buttons I need Sounds crazy, I know but it works everytime.
    Oh, and I'm also running on a 64b system (win7), so I guess that's the main problem here.

  • No radio validation on "add" button

    Hello all,
    I have a group of radio buttons, and a group of submit
    buttons. If the user clicks the "add" button, I don't want
    validation to be performed on the radios.
    One other thing: If user clicks "delete" button and a radio
    is selected, I would like user to see an "are you sure?" window or
    something, preferably an interactive error message like the
    validation message.
    Are these possible?
    My code is the basic 'what you see in the example' sort of
    thing. I am happy to post it if need be.
    Thanks,

    Hello all,
    I have a group of radio buttons, and a group of submit
    buttons. If the user clicks the "add" button, I don't want
    validation to be performed on the radios.
    One other thing: If user clicks "delete" button and a radio
    is selected, I would like user to see an "are you sure?" window or
    something, preferably an interactive error message like the
    validation message.
    Are these possible?
    My code is the basic 'what you see in the example' sort of
    thing. I am happy to post it if need be.
    Thanks,

  • How do i add buttons in the tool bar?

    Hi,
    I want to add buttons like "Load' in the tool bar.How do i do it? I am using LabView7.1
    Please help me..
    Regards
    Meenatchi

    Meenatchi wrote:
    I am creating one dialog,in that i want to add menu bar and title bar.
    See the attached VI, whose Window Appearance category is set to Top-level, from the VI Properties window.
    From this, you can go ahead customizing the menu bar to your wish.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Top-level Application Window.vi ‏11 KB

  • The add-ons tool window hangs when I click Options for any add-on

    This morning, IE8 showed up as the default browser. Also, the Lastpass button was missing. When I click Tools-Add-ons and click the Options button for any add-on, the window hangs. Sometimes it hangs FF as well.

    I resolved this by using a different add-on.
    I was issued a new computer at work. It's a Windows 7 Dell E6410, and I was configuring a new installation of Firefox for it. I had downloaded the same URL shortening tool that I used on my old Windows XP IBM T60 computer. That add-on had the hang when you click on "Options" from the Tools > Add-ons menu. After uninstalling the add-on, I searched for a different URL shortening tool, and this one did NOT produce the hang.

  • Add data to the table in the database with the use of add button

    The name of my database is Socrates.
    The name of the table in the database is Employees
    I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
    The error upon compilation is with this line of code
    If (ae.getSource() == jbtnA)// it says that ";" is expected
    Below is the entire code
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
         public void actionPerformed(ActionEvent ae)
                   If (ae.getSource() == jbtnA)
                                    fst = jFirstName.getText();
                        srn = jSurname.getText();
                        cty = jCity.getText();
                        cnty = jCountry.getText();
                        int sn =
    Interger.parseInt(jSSN.getText());
                                    String ad = "Insert into Employees
    (Firstname,Surname,City,Country,SSN)" +
    "values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
                        JOptionPane.showMessageDialog("Your
    details have been registered");
                        Statement stmt = con.createStatment();
                        int rowcount = stmt.executeUpdate(ad);
    public static void main (String args[])
              Mainpage ObjFr = new Mainpage("Please fill this
    registration form");
              try
                   Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
                   String plato = "jdbc:odbc:socrates";
                   Connection con =
    DriverManager.getConnection(plato);
              catch(SQLException ce)
                   System.out.println(ce);
    }

    i have restructured the code, but the following line of code is giving error:
    String plato = jdbc:odbc:socrates;
    the entire code is below:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class Mainpage extends JFrame implements ActionListener
         JTextField jFirstName = new JTextField(15);
         JTextField jSurname = new JTextField(12);
         JTextField jCity = new JTextField(10);
         JTextField jCountry = new JTextField(12);
         JTextField jSSN = new JTextField(8);
         JLabel jFirstLab = new JLabel("First Name");
         JLabel jSurnameLab = new JLabel("Surname");
         JLabel jCityLab = new JLabel("City");
         JLabel jCountryLab = new JLabel("Country");
         JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
         JButton jbtnA = new JButton ("Add");
         JButton jbtnPrv = new JButton ("Previous");
         JButton jbtnNt = new JButton ("Next");
         JButton jbtnDl= new JButton ("Delete");
         JButton jbtnSrch = new JButton ("Search");
         Statement stmt;
            String ad;
            public Mainpage (String title)
              super (title);
              Container cont = getContentPane();
              JPanel pane1 = new JPanel();
              JPanel pane2 = new JPanel();
              JPanel pane3 = new JPanel();
              pane1.setLayout (new GridLayout (0,1));
              pane2.setLayout (new GridLayout(0,1));
              pane3.setLayout (new FlowLayout());
              pane1.add(jFirstLab);
              pane1.add(jSurnameLab);     
              pane1.add(jCityLab);
              pane1.add(jCountryLab);
              pane1.add(jSSNLab);
              pane2.add(jFirstName);
              pane2.add(jSurname);
              pane2.add(jCity);
              pane2.add(jCountry);
              pane2.add(jSSN);
              pane3.add(jbtnA);
              pane3.add(jbtnPrv);
              pane3.add(jbtnNt);
              pane3.add(jbtnDl);
              pane3.add(jbtnSrch);
              cont.add(pane1, BorderLayout.CENTER);
              cont.add(pane2, BorderLayout.LINE_END);
              cont.add(pane3, BorderLayout.SOUTH);
              jFirstName.addActionListener(this);
              jSurname.addActionListener(this);
              jCity.addActionListener(this);
              jCountry.addActionListener(this);
              jSSN.addActionListener(this);
              jbtnA.addActionListener(this);
              jbtnPrv.addActionListener(this);
              jbtnNt.addActionListener(this);
              jbtnDl.addActionListener(this);
              jbtnSrch.addActionListener(this);
              validate();
              setVisible(true);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setResizable(false);
              try
                   Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
                   String plato = jdbc:odbc:socrates;
                   Connection con = DriverManager.getConnection(plato);
                   stmt = con.createStatment();
              catch(SQLException ce)
                   System.out.println(ce);
              catch(ClassNotFoundException ce)
                   System.out.println(ce);
         public void actionPerformed(ActionEvent ae)
                   try
                        if(ae.getSource().equals(jbtnA))
                                         fst = jFirstName.getText();
                             srn = jSurname.getText();
                             cty = jCity.getText();
                             cnty = jCountry.getText();
                             int sn = Interger.parseInt(jSSN.getText());
                                         ad = "Insert into Employees
    values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
                             stmt.executeUpdate(ad);
                             JOptionPane.showMessageDialog(this, "Your details have been
    registered");
                   catch(SQLException ce)
                        System.out.println(ce);
    public static void main(String args[])
              Mainpage ObjFr = new Mainpage("Please fill this registration form");
    }

  • How to add button in ALV report (Class method )?

    Hello experts,
    I have developed one ALV report using classes.
    I want to add one more  button on the report like already is there named DISPLQUA
    How ca i do that here?
    Following the code of CLASS definition & implimentation
    CLASS lcl_handle_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_on_user_command FOR EVENT added_function OF cl_salv_events
            IMPORTING e_salv_function.
    ENDCLASS.                    "lcl_handle_events DEFINITION
          CLASS lcl_handle_events IMPLEMENTATION
    CLASS lcl_handle_events IMPLEMENTATION.
      METHOD handle_on_user_command.
        CASE e_salv_function.
          WHEN 'DISPLQUA'.
            PERFORM show_quant_record.
         WHEN 'DISPQM03'.                                " Here i want to add button
           PERFORM display_quality_notification.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_on_user_command
    ENDCLASS.                    "lcl_handle_events IMPLEMENTATION

    HI Ronny.
    Code snippet for reference.
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION.
        METHODS :
    *--Toolbar control
          HANDLE_TOOLBAR FOR EVENT TOOLBAR
            OF CL_GUI_ALV_GRID IMPORTING E_OBJECT
                                         E_INTERACTIVE,
    ENDCLASS
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *--handle toolbar
      METHOD HANDLE_TOOLBAR.
    * append a separator to normal toolbar
        CLEAR G_TOOLBAR.
        G_TOOLBAR-BUTN_TYPE = 3.
        APPEND G_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR G_TOOLBAR.
        G_TOOLBAR-FUNCTION = 'SAVE'.
        G_TOOLBAR-ICON = ICON_SYSTEM_SAVE.
        G_TOOLBAR-BUTN_TYPE = 0.
        G_TOOLBAR-QUICKINFO = 'Save the Customer'(203).
        APPEND G_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "HANDLE_TOOLBAR
    Hope this helps.
    Gary.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 7, 2008 5:41 PM

  • Clicking add button to display the values

    requrement is like this
    Could anyone give suggestions with some code .
    we have lovs using this one we are searching for the value(ex emloyee name) that value is returned to the base page filed like message text input . we have add button, when ever we click that button to display the value(ex employee name ,desigantion this is from another table )on that same page.

    I could not understand your requirement. Post more details of the requirement with specific details.
    Message was edited by:
    Srini

Maybe you are looking for

  • Questions in Solution manager

    Hello friends, Can any one answer these questions SAP Solution Manager Overview Key points -       Scope of Solution Managers capabilities -       Work required to implement and configure Solution Manager – i.e. how much is out of box vs. customer/im

  • HFR: How to calculate variation over last period for dynamic columns

    Hello Everyone,                          How to calculate the period wise variation in a report where the period columns are dynamically generated from a range function? For example, the range function in the period column is &Current:Dec. What formu

  • Automator help

    Hi guys; I've able to get an automator service to rename a bunch of files exactly the way I want by having it "Copy Finder Items" and then Make Finder Items Sequential". But it then dumps all the renamed files on the desktop. How do I add an option f

  • BPM Estimation

    Hi, I have a few questions around BPM estimation - - Is there a standard methodology to classify BPM processes by their complexity? - How can a process be classified as simple/medium or complex? Could it be by just the number of activities, or activi

  • The new transformers movie is out today in the american itunes store but i have a uk itunes account why cant i buy it ?

    the new transformers movie is out today in the american itunes store but i have a uk itunes account why cant i buy it ?