How to trigger 'save' event without pressing SAVE button

Hi, i want to execute my 'save' event without press the SAVE button.
I want to simulate press the button with abap code and sy-ucomm = 'SAVE'.
Is there a function module for this functionality
Thanks
Reward Points

Well, than just forget about the buttons and create some code at the end of the PAI event which you have already coded (i realize some actions ( with my code)). Just do a perform event_xxx and perform event_yyy. The code which will be executed (processed) will look exactly the same as if you had created it when pushing buttons:
CASE OK_CODE.
WHEN 'AAA'.
let's say this is done with your code
perform event_aaa.
perform: event_xxx, event_yyy.
WHEN 'XXX'.
perform event_xxx.
WHEN'YYY'.
perform event_yyy.
ENDCASE.
Helpful?

Similar Messages

  • How to trigger an event by using

    Hi all,
    I have created a jbutton and an event for the jbutton, for example,
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)Now, I would like to trigger the event by pressing a hot key, for example "F1", how can i make it? Can anyone help me? Thanks.
    Ning.

    Hi,
    I have read through the information that you provided and tried to integrate it into my coding, but I'm really not so clear about that and i don't know how to apply into my coding correctly......can anyone help me? Thanks.
    I'm creating an application using the J2SE v 1.4.2_10 SDK with NetBeans 4.1 Bundle. By the way, below is a simple testing program that including component jLabel1, jButton1 and jButton2. Both of the button are hold an event each. I would like to create a hotkey for each button, "F1" key for jButtton1, "F2" key for jButton2. If I click on the "F1" key, the jLabel1 will displays the character "ABC", if I click on the "F2" key, the jLabel1 will display the character "123". Can anyone provide the code to me? Thanks.
    * test.java
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jLabel1 = new javax.swing.JLabel();
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("ABC");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            getContentPane().add(jButton1);
            jButton1.setBounds(90, 70, 90, 23);
            jButton2.setText("123");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            getContentPane().add(jButton2);
            jButton2.setBounds(191, 70, 80, 23);
            jLabel1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
            getContentPane().add(jLabel1);
            jLabel1.setBounds(110, 134, 150, 20);
            setBounds(20, 20, 400, 300);
        // </editor-fold>
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
            jLabel1.setText("123");
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
            jLabel1.setText("ABC");
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        // End of variables declaration
    }Ning.

  • How to trigger left_click_run event on ALV GRID

    Hiiiiiiii........
    Can any of u please tell me how to trigger left_click_run event on ALV GRID.
         There is an event LEFT_CLICK_RUN and  its a public accessed event. But the problem is , the corresponding  attribute of this event  "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events  using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell  me is there any alternative way to register that event.......ANY POSSIBLE WAY?
    Thanks in advance,
    Rams

    I think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=&gt;node_sel_mode_single.
    For more information, see this thread: Urgently required :  cl_gui_alv_tree single_click event...

  • How to trigger an event in the program

    Hi,
    I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
    In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
    So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
    Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
    And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
    Please help me. Thanks in advance,
    Best Regards,
    Paddu.

    Hello Paddu,
    have a look at tables
    - btcsev, btcsed (system events)
    - btcuev, btcued (user events)
    and use function BP_EVENT_RAISE.
    kind regards
    Walter Habich

  • How to trigger a event when WBS gets changed in Cj02

    Hello,
    I have a requirement where I need to send create an idoc and send the idoc to external system when WBS is created or changed.  Currently, I have the following setup:
       - I have created a YBUS2054 as a subtype of BUS2054 using SWO1
       - YBUS2054 has been delegated to BUS2054
       - created an CHANGED event in the YBUS2054. This event is implemented and then released
       - created a type linkage (object type=YBUS2054, event=CHANGED, receiver type null, and receiver function module = zz_create_wbs_idoc) using SWETYPV. This function is supposed to create an idoc when CHANGED event occurs. I just don't know how to trigger the event to occur.
       - all the port, define idoc type, logical system, and etc are setup
       - when I try to create an entry in "Event for Chagne Document" using SWEC with change doc object=PROJ, business object type = YBUS2054, with on change, I get "Key for change doc object PROJ and business object type YBUS2054 are incompatible".
    I tried various configurations, and I was not successfully in creating an event on CHANGED
    can you please advise what I am missing in getting the changed event to trigger?
    Thank you in advance,
    Shawn

    Hi,
    If the change doc doesnt exist, check if you can create an event using BSVW.
    Also use the event log to see if there are other sap standard events happening.
    I checked the package belonging to CJ02 to see if there is something useable, but didn't find anything: CN_PSP_OPR
    If there are no sap standard ways to get an event, you'll have to find a badi/enhancement spot and include some coding to start the event using fm SAP_WAPI_CREATE_EVENT.
    Kind regards, Rob Dielemans

  • Generate Key Events without pressing key???

    Hi,
    Is it possible to generate key events without pressing a key in swing???
    i dont know if the question is logical or not, but just i want to generate some display as if the key is pressed by the user
    Ashish

    assuming c represents a text field.
    This will type the character 'a' in the text field:
    c.dispatchEvent( new KeyEvent (c, KeyEvent.KEY_TYPED, 0, 0, KeyEvent.VK_UNDEFINED, 'a') );
    This will invoke Ctrl+F1, which will show the tool tip for the text field:
    c.dispatchEvent( new KeyEvent (c, KeyEvent.KEY_PRESSED, 0, KeyEvent.CTRL_MASK, KeyEvent.VK_F1) );

  • How to lock the phone without pressing power butto...

    I am using Nokia Asha 500, Nokia Asha Software Platform 1.1.1.
    My question is there any way to lock the without pressing power button. 
    This function can be added in the drop-down menu(The menu when we swipe down from the status bar).
    Is it possible to send request to developers?

    Yep and technically something like already exists: from Settings > Phone lock you can set the screen time-out period (down to 30 secs).
    http://www.microsoft.com/en/mobile/nokia-x-updates/
    http://www.microsoft.com/en/mobile/nokia-x2-update/
    http://www.microsoft.com/en/mobile/asha-software-update/
    http://www.microsoft.com/en/mobile/support/software-update/wp8-software-update/
    http://www.developer.nokia.com/Community/Wiki/Nokia_firmware_change_logs
    https://twitter.com/LumiaSWUpdates

  • So I have an iPad with the smart cover, and it's usually supposed to turn on the iPad when u open it, but it's no doing that for me. Nor is it turning off without pressing the button. What is the meaning of this?

    So I have an iPad with the smart cover, and it's usually supposed to turn on and off the iPad when u open it and close it, but it's not turning on for me. Nor is it turning off without pressing the button. What is the meaning of this?what caused it to be this way? Is there someway that I could fix it?

    Wait a sec did this just start?
    You set up the smart cover function in settings (you did that, right?) so, if you did that and it's failed you make an appointment at your nearest Genius Bar now.

  • My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    first try:
    iOS: Device not recognized in iTunes for Windows
    next
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Songs stop without pressing any button

    hi, I need help, my ipod nano stops the song while I am listening them without pressing any button not even play/pause button. If someone can tell me what to do it will be great.
    thanks

    no, the songs just stop, it does not turn off or turn on, the songs stop, and then i press the play/pause button and it continues playing but then it stops again many times, may be it will fix without help but it is a little annoying, also when i reset the ipod it fix just for a little time then it continues stoping.

  • How to auto-store files without prompting 'save as'. Adobe X/Adobe X Pro

    We have a database program that we have a lot of dokuments on. We have a option to print all documents on each case, and we want to "print" all these documents (word 2003) to the PDF printer and store the files on a pre-defined adress (Example: C:\Users\UserName\Documents\StoreHere\)
    We have the "Printer" set as PDF printer as standard, so every time we press print we are prompted to where we want to print the said .doc file. So how to we avoid the prompting and make a setting a standard?
    This is OK when its 1-5 files, but when we have 1000 .doc files, things gets very tiresome.
    TL;DR: Print .doc files to PDF reader which will auto store any and all .doc files as .pdf files into a pre-defined adress without prompting "save as".

    You posted in the wrong place. This is the Reader forum and the Adobe PDF printer is a part of Acrobat...
    But anyway, to do that right-click the printer and select Printing Preferences, then go to the "Adobe PDF Settings" tab and click on the Browse button next to the "Adobe PDF Output Folder" drop-down. Select the folder where you want the files to be saved and click OK.
    That should do it...

  • Validate a page item before go to next item without press save or submit

    Hello,
    I will be very greatful if someone help me. using apex 3.1.2
    actaully, i have created a form and all work fine including validations and processess but i want to know how can i validate an item before submit the form?
    for example: if i have two items on the page i.e :p1_item1 and :p2_item2 and save button so i like to validate both items before press the save button?
    if item1 is date item then should check date is correct format before go to next item? at the moment i am validating when press save button and its work fine!
    thanks for help.
    kind regarrds,
    RI
    Edited by: Irha10 on 13-May-2011 15:40
    Edited by: Irha10 on 13-May-2011 16:45

    Hi,
    If it is related to date.. why don't you use jQuery Date picker and disable manual entry into the field...
    this will make sure that date is always in correct format...
    Anyways... You have the options to use Javascript function to validate that the date is in correct format by calling the function onblur..
    Regards,
    Shijesh

  • How to distribute Sales Order without pressing end in context Area

    Hi Experts,
    I have a requirement in which I am planning to add a new button near to the "end" button in the context area. According to me this new button will distribute the Sales Order into R/3 (similar to end button functionality) but it will not clear the BP identification screen ( while it can clear rest of the screens like sales order, cases etc) i.e. whenever a Call centre employee pressing this new button then he can see the new Sales order in R/3 but he will not identify consumer once again ( he can save his time during conversation).
    Can any body of you help me how can I achive this functionlity (or any other alternative way by which I can achive the above functionality).
    Definately best answer will be rewarded by full points.
    Regards
    Sandeep

    Hello Sandeep,
    I suppose that the sales order you're talking about was just created in the WebClient itself? Normally a sales order is replicated to R/3 when you save it. When you save it the sales order itself becomes locked ('distribution lock'). On the sales order screen, when you press save, is the order locked (are the fields read-only)?
    Normally, just saving the sales order should trigger a replication/distribution to R/3, you don't need any new buttons or anything other fancy
    Regards,
    Joost

  • Triggering POPUP to SAVE when user Presses BACK  Button

    h4.
    Hi Friends,
    h4.
    When the User Presses BACK Button in the PF Status, it should trigger POPUP_TO_CONFIRM  whether to SAVE or not.
    h4.
    Suppose if the user doesn't change any thing in the Screen, it should not ask the User.
    h4.
    How can i know whether the user changes something in the Screen.
    h4.
    Screen mean Table Control..
    h4.
    How can i track this.
    h4.
    Regards:.
    h4.
    Sridhar.J

    Hi Sridhar,
    Within the table control loop, create a chain of all the fields in the structure of line type. call a PAI module with addition ON CHAIN-REQUEST. This is a conditional module call which will be triggered ONLY when user changes something on the screen. In this module you can set a global variable DATA_CHANGED to say 'X'. When user chooses BACK function, check this global variable to decide on the confirmation popup.
    One small caution. If you have the ROW SELECTION field also included in the line type of your internal table associated with the table control, you need to exclude that from the CHAIN of fields above; otherwise even when user selects a line or de-selects, this module will be triggered.
    Read ON CHAIN-REQUEST and ON REQUEST online ABAP help for more clarity.
    Regards
    Suresh
    Edited by: Suresh Radhakrishnan on Sep 28, 2009 4:29 PM

  • How to trigger wd event in flex

    Hi,
    I want to trigger an event in abap web dynpro (e.g. through pressing an button). This event should be handled in flex. Does anyone know how to do this?
    Thank you and best regards, Eddy

    Hi Edger,
    You can have any trigger event on your WebDynpro Abap screen and then on that event you can call swf file from your mime folder or you can even update flex application data.
    for your help you can refer following tutorial which easily explaining all necessary steps nicely as per your required scenario:
    https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDATutorial1
    If you are willing to trigger an event in flex then act in WDA that is also possible.
    Refer Bi-directional Data Binding and Eventing in following tutorial:
    https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDATutorial2
    Regards,
    Vivek

Maybe you are looking for

  • [MSI PRO MOD] IRON MAIDEN bY Mario Viana (2XHAF XB)

    [MSI PRO MOD] IRON MAIDEN bY Mario Viana (2XHAF XB) DESIGN: Iron Maiden: COOLER MASTER HAF XB DUAL "Modder MVIANA" I apologize for the photos, they are mobile and also do not dominate the English The hardware is not as current, however still gives a

  • Current Date in WPC webform

    Hi Community, I need to get Current date into the Custom WPC webform. I used the following code in my XSL: <xsl:value-of disable-output-escaping="yes" select="date:date()"/> and the NameSpace: xmlns:date="http://exslt.org/dates-and-times" I am gettin

  • Cursor is in URL field, not (Google) search box

    This problem is referred to on so many forums, but after half the afternoon going from site to site trying out suggestions, I haven't been able to fix it... When I open Firefox (Google is my homepage), the cursor is in the Google search box, but if I

  • Program to upload contract price changes to inforecord

    Hi Friends, Is there any standard program available to update changes in contract price to info record I know if you put info update indicator in contract system will update provided you have EVO parameter set in id But i would like to know if we can

  • Adding the ABAP code to SAP Query to support Query's ALV Double click.

    Hi, Expert. I need to add some ABAP Code into SAP Query (or Infoset) to support the double click event on ALV cell of result of query. Is it possible & How to do ? Thank you very much. Best Regard Nattapash C.