Wi don't disappear if user cancel the transaction

Frinends,
I'm testing one scene, that the wi calls one transaction, and this transaction calls (by button click) other transaction (MIGO).
If the user cancel the MIGO and go back and exit... I want the wi continue in inbox.
I remember that once a time Ramki answered me to user EXIT_CANCELLED statement in the method, controlled by a variable. But I don't know how to use this statement.
how can I do this ?

Hi Peter,
That's it, but I didn't understand how to do this...
1- I have to create a variable ...
2- if I identify that the user had canceled the transaction, I have to interceptate with the EXIT_CANCELLED macro. But how I call this macro... because I've tested and put it on the end of the method directly, but the wi disapears always.
eg.: (Is this the way to do that ??????)
begin ... method
call ... MIGO
if (some condition, I don't know)
  EXIT_CANCELLED.
end if.
end ...method
Please, helpe what to do step-by-step.... I think it isn't so hard to do...
Thanks,
Glauco

Similar Messages

  • How to know user cancel the transaction

    Hi all,
              Anybody know how to detect whether the HTTP connection is lost before
              the transaction is complete through JSP or servlet, so that my JSP can
              rollback the transaction?
              Any answer is appreciated.
              Raymond
              

    Just a thought. You might want to check the log and see what kind of
              exception is thrown in this scenario and see if you can catch in service
              method and handle it.
              Thanks
              Raymond wrote:
              > Hi all,
              > Anybody know how to detect whether the HTTP connection is lost before
              > the transaction is complete through JSP or servlet, so that my JSP can
              > rollback the transaction?
              >
              > Any answer is appreciated.
              >
              > Raymond
              

  • I preordered the new one direction album and I ment to preorder the one with 18 songs and it preordered both of the albums and I don't know how to cancel the one can someone help me?

    I preordered a album then preordered the Same one and I don't know how to cancel the one I preordered that I didn't mean too and it's charging me for both and I don't have a lot of money on my iTunes

    Go to the iTunes Store. Click on your Apple ID and enter your password. Scroll down towards the end of the page, you should see a line item that says Pre-Order. You can cancel the pre-order there.

  • Cancel download method when the user cancel the download file

    I have a method that download a file ("downloadLog_action()")when the user click over the comandlink component and the dialog box is opening to save the file, but how to know that the user canceled the download file to cancel all accions.
    This is the code of the commandlink in the jspx page that call the method and pass one parameter:
    <af:commandLink binding="#{ConsultaValidacion.commandLink1}"
    id="commandLink1"
    action="#{ConsultaValidacion.descargarLog_action}"
    text="Log">
    <f:param name="codInstitucion"
    value="#{row.CodInstitucion}"
    binding="#{ConsultaValidacion.codInstitucion}"
    id="codInstitucion"/>
    </af:commandLink>
    This is the method to download the file:
    HttpServletResponse response = (HttpServletResponse)fctx.getExternalContext().getResponse();
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachement; filename=\"Log_" +
    codigoInstitucion + ".txt\"");
    response.setContentLength((new Long(blob.getLength())).intValue());
    //Streams de entrada y salida
    InputStream is;
    OutputStream out;
    try {
    //Obtenemos el stream de entrada el cual se lo extrae de la BD
    is = blob.getInputStream();
    //Obtenemos el stream de salida para el cliente
    out = response.getOutputStream();
    //Sección de código que me permite escribir los datos en el stream de salida
    int size = (new Long(blob.getLength())).intValue();
    byte[] buffer = new byte[size];
    int length = -1;
    while ((length = is.read(buffer)) != -1) {
    out.write(buffer, 0, length);
    //Cerramos los streams
    out.flush();
    is.close();
    out.close();
    *//Una vez descargado todo el LOG actualizamos el contador. HERE IS THE PROBLEM BECAUSE THE COUNTER IS UPDATING WHEN THE USER CANCEL THE DOWNLOAD!!! AND ITS WRONG*
    row.setNumDescargaLog(new Number(num + 1));
    //Guardamos los cambios
    webRvc.getAppModuleWebRvc().getDBTransaction().commit();
    //Request lifecyce understands that the response is completed and no further action needs to happen
    fctx.responseComplete();
    } catch (IOException e) {
    e.printStackTrace();
    webRvc.close("Consulta bitacoras validacion");
    return null;
    } catch (JboException ex) {
    webRvc.getAppModuleWebRvc().getDBTransaction().rollback();
    webRvc.close("Consulta bitacoras validacion");
    return null;
    This works fine.
    The problem occurs when the user cancels the download, because all the sentences run including updating the counter downloads, the counter only to be updated only when the user chooses to save the file.

    Hi.
    The problem is when the user cancel the dowload I do not know how to capture the user's response.
    How to capture the response?
    if(cancelled) <------Is there a parameter to tell me this?
    ......<your cancel code>..... none
    else
    .....<your non-cancel code>...THE METHOD THAT DOWNLOAD THE FILE - "downloadLog_action()" and increment the counter
    Thanks.

  • ME9F : no update  message 'NEU' when user cancel the printing

    I use transaction ME9F and when the user click on the button ‘Output message’, a specific program is called.
    A popup is displaying in order to display a choice for  the user. He can choose print ‘Original document’ or ‘Copy’ and he can also cancel the printing.
    But when he cancel the printing  the message ‘NEU’ is ‘OK’ (green cross) but the PO is not printed.
    Do you a solution for not changing the message ‘NEU’  when the user cancel the printing.
    Thanks for your help.
    Best regards.

    Hi ,
    u need to check ur driver program , if its standard SAP , then u need to change driver program.
    Regards
    Peram

  • I made a movie purchase assuming I could use an authorization code received to download. How do I cancell the transaction ?

    I made a movie purchase assuming I could use an authorization code received to download. How do I cancell the transaction ?

    dfviens wrote:
    I made a movie purchase assuming I could use an authorization code received to download. How do I cancell the transaction ?
    Not sure what that means.
    But purchases are final as per the Itunes Terms and Conditions. No refunds are available.
    However that does not mean you can't wait to download it.  Or just pause the download until you are at a location where you wish to download it.

  • HT201359 Why am I being charges almost $16 and almost $6 when All I've ordered is ONE song???? How do I cancel the transaction???

    Why am I being charges almost $16 and almost $6 when All I've ordered is ONE song???? How do I cancel the transaction???

    http://www.apple.com/support/itunes/contact/

  • User cancelled the payment run by mistake

    Hi friends user has cancelled the payment run by mistake.
    below is what I see on status screen on R3P
    Parameters have been entered
    Payment proposal has been created
    Payment run has been cancelled
    please let me know what should I do in order to run it again.

    Hi,
    This is the way to delete the payment run which was cancelled, till you delete the cancelled payment run you cannot rerun the APP.
    Once you press this you see a pop up press yes and proceed to delete the proposal.
    Thanks
    VK

  • I want to find out which user cancelled the Job

    I m looking at job log in SM37 but no matter how much I searched, I could not find the user id of the user who cancelled that job. Is there some way I can find out who did it? Will give points for the rights answer. Thanks for reading.

    use the FM's
    BAPI_XBP_JOBLIST_STATUS_GET
    BP_JOB_SELECT
    Message was edited by:
            Eswar Kanakanti

  • How to find a specific activity done by a particular user in the database

    How to find who (a specific user) does what (activities) on a specific date/time to certain Objects in a database instance. If similar posting and/or resources are available, please advise.
    Thanks.

    I have got the same problem. My operation steps is below:
    1. create one dictory
    mkdir /usr/local/dbs
    chown oracle:oinstall /usr/local/dbs
    2. modify the paramter
    alter system set utl_file_dir='/usr/local/dbs' scope=spfile;
    3. restart database
    4. create the logmnr file:
    BEGIN
    dbms_logmnr_d.build(
    dictionary_filename => 'logminer_dict.dat',
    dictionary_location => '/usr/local/dbs');
    END;
    5. add the online redo log file:
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.new,logfilename =>'/u01/app/oracle/oradata/orcl/redo01.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo02.log');
    execute dbms_logmnr.add_logfile(options =>dbms_logmnr.addfile,logfilename =>'/u01/app/oracle/oradata/orcl/redo03.log');
    6. start logmnr
    BEGIN
    dbms_logmnr.start_logmnr(
    dictfilename => '/usr/local/dbs/logminer_dict.dat');
    END;
    7. check the result
    select sql_redo FROM v$logmnr_contents;
    I got error message at the step:
    ORA-01306:dbms_logmnr.start_logmnr() must be invoked before selecting from v$logmnr_contents
    Could anyone help about this?

  • HT4381 I try the hulu  plus 1 week free trial i didn't like i don't know how to cancel the subscription. Please tell me where it can be disabled if is not in settings

    I try the hulu plus for a free week trial. I'm not interested so i tried to disabled it and no luck, can you guide on how to do it?
    Thanksu

    Hello Astridrecio,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes Store: Purchasing and managing auto-renewing subscriptions
    http://support.apple.com/kb/ht4098
    Best of luck,
    Mario

  • How can I cancel the transaction

    I have an account number, I forgot the password and registration email, but it keeps charging me 38.45 every 3 months.
    How can I have it cancelled?
    Plus, there is no number to contact skype, I feel it very upset.
    [Edited by moderator to remove private information]

    Hi and welcome to the Skype Community,
    please contact Skype customer service
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Javascript: Don't interact with the user - Question isn't shown but canceled the action

    Hi
    In m yJavascript I use a method from a third party plugin. During this method there is an alert, a question. I like to suppress this question.
    I use app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; and then the quesion isn't shown. But the method is canceled with a message like "The user canceled the action!".
    Can I do something? Is there a workaround?
    Thanks
    Hans

    Hmmm. I don't know what "never interact" does, internally, but suppose you switched off user interaction and then a script calls "document.close". The three choices in the Save confirmation dialog are "Save:Yes", "Save:No", and "Cancel". Given that, it would be the safest to have it always return "cancel"!
    Since this is a 3rd party plugin, you probably can contact its manufacturor and ask for a workaround, or possibly a modification.

  • How to handle event when the user closing the browser (Urgent Please)

    Hi,
    How to handle the event when user closes the browser....
    i want to display some alter message when user trying to close the browser...
    Please can any one help me how i have to do this...........
    Thanks.

    Finally got this working. You cannot use the stop() or destroy methods. By the time they are called all database connections are gone and you will get a null pointer exception.
    You will have to use the onBeforeUnload method in the html file that calls the applet and use JavaScript to call the save method in java which saves the document:
    <SCRIPT LANGUAGE="JScript" TYPE="text/javascript">
    function Save()
    //i call the applets doSave() method from here in which i save all
    //changes to the database
    top.Tree.document.TestApplet.doSave();
    //this will invoke the default IE message for closing the window
    //when user clicks on the x in the browser
    message = "Your document has been saved."
    return message;
    window.onbeforeunload=Save;
    </SCRIPT>
    //the applets doSave()
    public void doSave()
    //this frame provides user with the message that document is being
    //saved
    final JFrame frame = new JFrame("Saving");
    JPanel contentPane = new JPanel();
    JLabel label = new JLabel(" Please wait, saving document...");
    frame.getContentPane().add(label,BorderLayout.CENTER);
    frame.setSize(250, 100);
    frame.setLocation(300, 400);
    frame.setResizable(false);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter()
    //the frame is just for user's information, so prevent user from
    //closing it or iconifying it.
    public void windowClosing(WindowEvent e)
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    public void windowIconified(WindowEvent e)
    frame.setState(frame.NORMAL);
    //call my saveDocument() method that saves everything to the database.
    editorModule.saveDocument();
    //System.out.println("finished calling saving document");
    //once the saving is done the frame with the message disappears
    frame.setVisible(false);
    //System.out.println("setting frame to false");
    //I also had an exit button in my applet, that would perform the same task, however now with the above onBeforeUnload method, the exit message would appear twice, so had to modify my exit button action performed, so that if the exitbutton was clicked the onbeforeunload method would get passed a null value and not do anything.
    private void exitButton_actionPerformed()
    if (DEBUG) System.out.println("Calling exit");
    doSave();
    window.eval("this.onbeforeunload=null;");
    window.eval("top.close();");
    //continue from here if user cancels the closing of the window
    window.eval("this.onbeforeunload=doSave;");
    window.eval("top.focus()");
    window.eval("document.TestApplet.requestFocus()");
    homePanel.requestFocus();
    }

  • Close excel programmatically after user cancels file selection

    Greetings all. I apologize but I incorrectly posted this question on the wrong board originally so am posting it again here. I have a VI that I wrote with some help from this site that reads in as many user selected Flat Data Files as desired into Excel. The VI opens Excel, places each Flat Data File on one row and ends, allowing the user to manipulate the Excel data as desired. I have tested it without problems with up to 100 files at a time. The VI minimizes Excel at startup so that it will not block the Select File(s) dialogue. MY problem is this: If the user cancels the file selection, it returns an error and leaves Excel open. I understand how to handle the error, but have been unable to make Excel close automatically if the action is canceled. I have tried to invoke the Close without saving node with no luck... probably because I don't understand how to apply it. Ideally, I want to take the error number to a case statement, and if it is anything other than zero (0), meaning no error, I want Excel to close down. This will eventually be an executable so I need to make this right. Can anybody help? I have attached a zip file with the VI's and some sample Flat Data Files.
    Thanks
    Attachments:
    RTS Flat File Data.zip ‏103 KB

    If you want anything to run after an error you must clear the error status boolean from the error cluster. To do this use the bundle by name and set the status value to FALSE, take this output cluster into the function you wish to run.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com

Maybe you are looking for

  • IPhoto, iChat, wont open "due to a problem"

    iPhoto and iChat do not open, they close "due to a problem". I have repaired disk permissions a plethora of times, I used Disk Warrior to rebuild the partition. And Ive done everything, including deleting preferences (plists, etc). I appreciate any h

  • How to manage Itunes?

    OK need some help here. Below is a list of Current products at my House Family Room - Mac Mini Network Room -Mac Mini Server, AppleTV(V2) Dads - MacBook Pro,Iphone 4, Ipad V2, Ipod Nano---Itunes User 1 Mom - MacBook Pro,Iphone 4, Ipad V2 ---Itunes Us

  • Sort table columns in a table and context created dinamically

    Hello all, I have implemented the table sorting several times in another developments, but now I'm facing a problem. I have created the table and context node that I need to sort dinamically (before somebody ask me why, I would say that it's the only

  • HTML animation effects doesn't work after last update

    After last update my html animation that have different effects with different time: fade, translate, rotation, scale, ecc... plays but some effects doesn't play. Various animated png in html project appears immediatly without shows transitions or de

  • Windows Vista Boot camp will not show video card

    Hello Im running a macbook pro in windows vista 32 bit boot camp mode. Every thing works fine except that the device manager only shows the VGA adapter and not the Nvidia Geforce 8600M GT I have equiped. I cant find any drivers for this card. Is ther