Start workflow when pressing save button

Hello community,
can anybody explain me how I can start a workflow when somebody clicks on 'save' in transaction me22n?
Thanks a lot for your help!
Christoph
Edited by: Christoph Schle on Jan 9, 2008 7:48 AM

Hi,
It looks like an interesting requirement and
1. As per your problem, we are not able to distiniuish between the Changed event whether it is really came because of decreasing value or is it because of change in release indicator at header level.
2. Check this BADI IF_EX_ME_TRIGGER_ATP for ME22n - if you look at TRIGGER_ATP method of this BADI you have access to PO header old and new, and also PO line item old and new.  Since you have access to old and new header values and also lineitem values,
when <old header-relindicator> = <new header- relindicator> and <old line item value> is lessthan  <new line item value> rasie a new custom event on BUS2012. Say ZBUS2012.SPECIALCASE ( for this create ZBUS2012 and delegate it to BUS2012)
Before doing the real code in the BADI, just implement the BADI with out any code and put a breakpoint in this methid. Put ME22n in debug and see whether the contorl is coming to this BADI or not and also check whether you are able to access header/linitem values old and new. if you are able to then we are done with it.
3. Associate BUS2012.SPECIALCASE also as triggering event ( apart from standard RELEASETEPCREATED) of your workflow and in the workflow create a parallel fork ( parallel to your approval process ) and create a step for 'Wait for BUS2012.SPECIALCASE) and connect this branch to End of workflow ( this will take care of terminating the existing workflow before decreasing value)
i am bit creative here in suggesting above , give it a try and see !!. However general way to handle sceanrio's like this to handle them in Check Function Modules, but for your case its bit tough as you will not have access to old header and old line item values.
Just try above and update me if it works
Regards
Krishna Mohan
Edited by: Dubbaka Krishna Mohan on Jan 9, 2008 11:37 AM
Edited by: Dubbaka Krishna Mohan on Jan 9, 2008 11:37 AM

Similar Messages

  • Is it possible to save a data portion starting from when a "save" button is pressed?

    Hi,
    The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
    Best regards,
    Ninjatovitch
    Solved!
    Go to Solution.
    Attachments:
    Sensor Signal Acquisition.vi ‏52 KB

    this should be in 8.2
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    RandomNumberSubVI.vi ‏8 KB
    savefilewhenselected.vi ‏11 KB
    f.txt ‏1 KB

  • Error in any ServiceImpl when pressing save button

    In our application after pressing the save button we are getting the following error on screen:
    "com.nbd.demeter.model.service.AbonnementenServiceImpl".
    This error can occur in any screen (any ServiceImpl). We do not get this error every time when the save button is pressed, but it happens more and more.
    This problem blocking normal use of the application.
    The first time this happened was after installing a new EAR-file, but untill now we are not able to determine what causes it.
    Anyone got an idea??

    Can you tell us what the OC4J log says? There must be more logging if you got such an error. Perhaps you should try to enable ADF BC logging by setting -Djbo.debugoutput=true as run parameter (tools - properties - Run/Debug - Edit - Launch Settings - Java Options).
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

  • Downloading is started before pressing save button on save as dialog.

    I select "Always ask me where to save files" radio button in Options menu. And when I download something, I notice that transferring is started before I press save button on "Save as" dialog. Is there any way to prevent the pre-caching before pressing save button?
    Thanks

    Sorry, not that I have ever seen mentioned in this forum. Firefox has always done that when "Ask me ...." is selected in Options.
    Are you having any particular problems with downloads being started before you select a specific location for the "final resting place" for the download?

  • Getting dump after pressing save button in web interface

    Hi all!
    When i press save button in my web interface. i'm getting dump:
    The following error text was processed in the system EDW : Syntax error in program GP1ARALDY6TX0M51YNJ5FNELBCI .
    The error occurred on the application server kurmutau_EDW_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
    Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
    Form: VALUE_TO_SID_CONVERT of program SAPLRRSI
    Function: RRSI_VAL_SID_SINGLE_CONVERT of program SAPLRRSI
    Form: GET_SID of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: GET_DIMID_DA of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: WRITEIC of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
    Form: APO_WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
    Method: _WRITE_TO_CUBE of program CL_RSDRI_INFOCUBE=============CP
    Infocube and web interface were imported from BW3.5 system...
    How can i solve this problem?
    Thanks in advance...

    Go in ST22 and post the short dump to better ubderstand.
    Regards

  • Avoid pressing save button while conversion

    Hi All,
    I am using FlashPaper at my work. I need a help from you all
    , to convert the files to .swf or .pdf is there any possibility to
    convert directly except the following possibilities.
    1) using ant for batch of files dir conversion
    2) using the word and print option , disadv: every time the
    document to be converted is openning in flashpaper and we have save
    then.
    3) the other possibility is we can convert the files using
    the FlashPaper option which will be in word or ppt etc so that
    after pressing save button it wll convert, here also we have the
    disadv that we cannot use this since everytime we have to press
    save.
    4) another possibility is by right-click on the doc and say
    convert to .swf or .pdf then flashpaper will show you an filedialog
    where you have to give the filename and press save.
    these are the posibilities to convert to .swf or .pdf files
    but we cannot use these conversion are there any other possibility
    to convertion please let me.
    Its really important for me.
    Bye
    Mahi

    Hi Lai.
    U can use the badi ME_PROCESS_REQ_CUST.
    In this badi u implement the badi and use the method check.
    as u can say the sample code
    data: l_item_list type mmpur_requisition_items,
            l_item type mmpur_requisition_item.
    data: ls_header type mereq_header,
            l_item_akt type mereq_item.
       l_item_list = im_header->get_items( ).
      loop at l_item_list into l_item.
        " Get Items
        l_item_akt = l_item-item->get_data( ).
        if l_item_akt-zzusr01 is initial.
          message 'Please enter your enhanced field u can give here in your enhanced tab u can give ' type 'E'.
        endif.
    Note : Here zzusr01 is the filed wht u extended in the eban .
    Then wht system will do when they save or check the  PR , One popup will come with the error  as u write.
    Regards
    Rajendra

  • Which trigger fires after pressing 'Save' button on toolbar.

    hi,
    I wanted to know which triggers get fired after pressing 'save' button on toolbar, and in which sequence it get's fired.

    When you press 'save' it tries to do a commit_form.
    Before commiting the form, it checks for any errors which might occur at form level, block level or item level and does the commit only when it doesn't find one.

  • I dont want to commit master-detail form untill user press save button

    We have department-employee kind of master detail form.
    1) We click on any record on department block.
    2) Then we change / insert /delete record in employee block.
    3) then we move to anothe department.
    4) now it ask for saving the changes. THIS WE DO NOT WANT.
    5) WE WANT TO SAVE CHANGES WHEN USER CLICK ON SAVE BUTTON.
    6) If user make changes to various employees of various department,
    we want user to cancel changes when ever user wants.
    IN SHORT WHAT WE WANT IS
    No record should be saved untill user press save button below.
    and If user press cancel all changes made must be undo.
    PLEASE DO NOT SUGGEST DO_COMMIT in clear block details,
    We know that and we dont want that option.
    Regards
    Upendra

    Hi URTRIVEDI
    but it gives "could not reserve record (x tries), keep trying?" error.The problem is not within the code given by Francois but in sessions u opened.
    pls make sure u r not running more than one instance of ur form with in one session.
    e.g. FireFox is opening more than one tab at a time every modification u made > compile > Generate , Save & Run only one Form instance
    Hope this helps...
    Regards,
    Amatu Allah

  • Submiting requests when pressing a button.

    I have a button that when pressed should fire an HTMLDB After Submit process and just after the process has finished, it should trigger a javaScript function to call a pop-up page.I've tried to do that in three different ways:
    1)Using the button optional URL redirect, and as the URL target I send first the request to run the After submit process and then the request to open the pop-up window.
    The problem with that solution is that the pop-up window opens before the
    process is completed, which is an inconvinience for me.
    2)Running the After submit process when pressing the button and running an after processing braching to call the javaScript function. It didn't work as HTMLDB redirect the application to an error page saying that no branch is specified...
    3)Inside the After submit process after a call to a procedure that resolves the logic of the process I've tried to call the pop-up using webtoolkit's tag htp.p as follows:
    htp.init;
    htp.p('<script language = "javascript">');
    htp.p('callMyPopup2("480",'+l_aux+');');
    htp.p('alert("entre");');
    htp.p('</script>');
    But it didn't work neither.
    The HTMLDB version I'm using is 1.5.0.00.33. Is there a way to accomplish that when pressing a button a process is ran and just after its execution is finished call a javascript function that opens a pop-up page?
    Thanks in advance.
    Best Regards.
    Larissa.

    Vikas,
    The question is interesting. I remember trying something similar without success and would be interested in an answer. I could imagine the following situation:
    1. I start a process that runs a procedure which fills in a table with values
    2. after the process is completed a pop-up window opens and runs a report on that table...
    This could be practical since a user that started the procedure doesn't have to wait for it to complete in order to click another button to see the result. This is just one possible example.
    Denes Kubicek

  • My mini ipod appears off and not respond to any commands when pressed the buttons to reset, apple logo appeared and then the apple support site and it shuts down. already tried all the steps, but none worked, and when I plug it into my computer it does no

    My mini ipod appears off and not respond to any commands when pressed the buttons to reset, apple logo appeared and then the apple support site and it shuts down. already tried all the steps, but none worked, and when I plug it into my computer it does not appear in the iTunes bar. what do I do?

    If MacKeeper corrupted the Recovery partition then even I underestimated its potential for damage. Garbage "cleaning" apps will cause misery but I have not found that the Recovery partition to have been affected by using MacKeeper or anything like it. I doubt that it did so, but I have learned not to underestimate the potential for such things to result in system corruption.
    Before concluding your Mac has a hardware failure, try booting OS X Internet Recovery by holding command option r on startup (three fingers). That will force your iMac to bypass the Recovery partition altogether, and convey the ability to create a new one.
    An Internet connection will be required (wired or wireless).
    At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red. If Disk Utility reports "The volume Macintosh HD appears to be OK" in green then you can be reasonably (though not completely) assured your hard disk is in good working order.
    Assuming the HD remains usable you can then use Disk Utility to erase it. Reinstall OS X, restore your essential software and other files, and don't reinstall the junk.

  • FB70: User exit when the save button (for posting) has been click

    Hi ABAP Gurus,
    With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
    Thanks!
    <b>
    Best Regards.
    Brando</b>

    Hello Brando,
    With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
    The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
    1. PPA_CUST_BADI
    2. FI_RES_ITEM_CURRENCY
    3. AC_QUANTITY_GET
    4. BADI_PRKNG_NO_UPDATE
    5. FM_POP_CORE
    6. FMRI
    7. FMRE_BUS_PROCESS
    8. FAGL_SET_SEGMENT
    9. EXIT_XFMPR1_001
    10. BUAVC_CHECK_RESTRICT
    11. UKM_R3_ACTIVATE
    12. CO_DOCUMENT_INFO
    I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
    Good luck.
    Cheers,
    Sougata.

  • How to when press the button and can change the value in the table?

    this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
    * SimpleTableDemo.java is a 1.4 application that requires no other files.
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
    private JPanel button;
    private JButton enter;
    public SimpleTableDemo() {
    super(new BorderLayout());
    //button.setBackground(Color.pink);
    //setForeground(Color.pink);
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    enter = new JButton("Press me");
    //Add the scroll pane to this panel.
    buildButton();
    add(scrollPane, BorderLayout.NORTH);
    add(button, BorderLayout.CENTER);
    private void buildButton(){
    button = new JPanel();
    button.add(enter);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=676105

  • Starting workflow, when importing records

    Hello!
    Is it possible to start workflow, when records were imported with Import Manager and the import action was set as Update or Replace?
    Thanks,
    Vika

    Hi Viktoria,
    It is possible to trigger workflow whenever records are imported by setting the <b>Trigger action</b> while defining the workflow as "<b>Record Import</b>".
    Hope this answers your query,
    Regards,
    <b>Rashmi</b>

  • User Exit which runs after pressing SAVE button at VF01 Screen.

    Dear all,
    I need user Exit which runs after pressing SAVE button at VF01 Screen.
    Kind Regards,

    If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
    Regards,

  • Malfunctioning printer call to DLBAPRP,DLL FOR DELL PRINTER A940, ERROR 126. This error occurs when pressing properties button. Is there a patch to fix this?

    This error does not occur with any of my other programs employing this printer when pressing properties button. The complete error message I get is as follows:
    '''DELL PRINTER A940 PROPERTIES'''
    Function address 0x0 caused a protection fault (exception code 0xc0000005). The application property sheet page(s) may not function properly.
    |OK|

    Perform the suggestions mentioned in the following articles:
    * [[Firefox prints incorrectly#w_reset-firefox-printer-setting|Reset Firefox Printer Setting]]
    * http://kb.mozillazine.org/Problems_printing_web_pages
    Check and tell if its working.

Maybe you are looking for

  • Synching on 2 separate PCs with 1 iPad + purchased app issue

    Hi all, The problem I have is that I have two desktop PC's with iTunes, one at Home, one in at Work. And 1 iPad. I purchased the Brushes app (brilliant!) using my iPad. Then synched with my Work Desktop PC which then removed by Brushes app from my iP

  • Disable / Deactivate Update Price button in Sales order creation

    Hi Gurus, My requirement is to disable the 'Price Update' button in the item --> conditions screen while creating or changing the sale sorder. A set of users should not be able to update the prices using 'Update Pricing' button. Is there any way to d

  • Iphone music manually managed but music now disappeared

    I plugged my iphone into my laptop as usually, transferred a song that I purchased. I ejected the phone as normal then when i went to close itunes it was completely frozen. I had to restart my computer. Then upon checking the songs on my iphone there

  • Ps touch - how 2 import fm dropbox?

    i start ps touch on my galaxy note 10.1(android) . there is a lot  of help about picture modulation etcetc ...but nothing about the simple stuff like how to get hold of a picture in a dropbox folder. the app only seems to see /  open the picture fold

  • We have version mac os x 10.6.8

    We downloaded facetime on our imac and we got the icon on our dock and clicked on it and the box came up with our picture.  We entered our apple id that we've always used and it took forever and came back saying, could not sign in please check your n