How to Cancel Event processing

I have integrated a WD-ABAP application in Portal. I want to change the behaviour of Close button (By default it closes the browesr window !!). I am able to catch the FPM_CLOSE event and execute my custom code, but the problem is, after my code gets executed, the standard handler for FPM_CLOSE also gets executed. Is there any way to cancel the processing of standard handler. In debug mode I was able to do it by clearing the mv_event_id. It's a readonly parameter and I cannot do it programmatically.
Thanks
Prashant

Solved it by changing the ev_result parameter to failed after executing my custom handler.
  ev_result = if_fpm_constants=>gc_event_result-failed
Thanks
Prashant

Similar Messages

  • How to cancel the process in initiator of human task in 11g?

    human task as the initiator of the process, by default there is only a SUBMIT button, how to cancel the process then?
    if I just close the form, a task will still created in the task list, still in initiator step. what if I don't want this?
    I tried to add an "CANCEL" output for this , if the output is CANCEL then go to then end activity, but seems it doesn't work. anyone got a better solution? thank you.

    You should be able to use the "Withdraw" action for this - available from the task Actions button/drop down on the human task form.

  • How to cancel downloading process in JAVA ftp?

    I tried to write a java ftp client to transfer files within our network. One of very usefully function I want to add is to cancel the transfer while files
    are downloading or uploading. I can do this on file uploading by closing "ftpclient.put(filename) methods at anytime, but have trouble on closing "ftpClient.get(remoteFilename)". When I tried to close it by using "in.close()", the program stucked. I even tried to kill the thread, but no luck. Can any one give me a hint? Here is the code:
    protected void downloadfile ()
    byte [] buffer = new byte[BUFFER_SIZE];
    try{
    FileOutputStream out = new FileOutputStream(Localfilename);
    InputStream in = ftpClient.get(remoteFilename); //downloading
    // Write to local file
    while (true && !cancelORnot)
    // write to file
    } catch ( Exception ex) { }
    finally
    try {
    if (out ! = null)
    out.close(); // this can be closed at any time
    if (in != null)
    in.close(); // This one stucked if it is in the middle
    // of downloading and can not disconnect to the
    // ftp server
    catch ( IOException ex)
    }

    How does the ftpClient.get("fileName") work? Also, are you running everything in the EventDispatchThread? If your running everything in the EventDispatchThread then ftpClient.get() will need to finish before an event can be handled.
    If thats the case, you could use a SwingWorker to do the downloading so that the Event Thread is available to handle the cancel event.

  • How to Cancel Succesful Processed Messages

    Hi Experts,
    How to cancel the succesful processed messages which reached Integration Server and sender Adapter engine in XI.
    Thanks
    Venkat Anil

    We cannot cancel Successfully processed messages.
    However you can configure Archiving and/ or deletion of successfully processed messages to remove the entry from the DB
    Edited by: abhishek salvi on Jan 8, 2010 2:57 PM

  • CVI2013 f1: how to cancel build process?

    how to cancel the build process after it's started?
    I can't find a way...
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.

    Hello Wolfgang!
    Yes, my answer to vix's initial question was basically the same as your's: the 'Cancel Build' menu item from the Build menu.
    As of CVI 2013, the build process is not longer blocking the ADE UI anymore, so users can operate the CVI ADE independent of the currently running build process. Hence, the modal dialog from CVI 2012 has been removed. Because the dialog was removed, we moved the ability to cancel the current build over to the CVI ADE menu, amoung the other menu items related to the build process (e.g. Build, Rebuild, Batch Build...). However, we didn't want to modify the behavior of the STOP button, because it's main purpose has been closely targeted towards controlling the execution state of a debugged program. If we have changed it's behavior, we would also have to change it's naming, i.e. currently 'Terminate Execution' toolbar button.

  • How To Cancel Completely Processed Shipment?

    Hi.
    I have created sales order ->Delivery->Picking---> Shipment.
    The shipment is completely processed now (Cost Calculation is done)
    But I want to cancel this shipment and delivery...how to go about this?
    Thanks in advance.

    Hi Saket,
    Activities are nothing but the steps you executed in shipment document to capture the shipment cost.
    In VT02N screen select Deadl tab which you can see in the below portion of the screen.In this
    screen you can see 7 pushbuttons. We Starts with MRP ( Single click)and ends with shipment End
    push button to get the green light in the processing tab which will be in the upper portion of the screen.
    Now you have to perform the steps exxctly in the reverse way i.e starts from shipment End ( Single
    click),shipment start, shipment completion,  LoadingEND,  Loading start , check in and ends
    with MRP ( Single click). If you perform in this way the green light you have seen in the *processing
    tab* would be switched off.
    I think we need to cancel the information related to daparture point and fwd agent  in stages tab.
    After completion of this first you save the changes,then again go back to VT02N and delete the
    document.
    Please correct me if missed somewhere.
    Regards,
    Satish
    Edited by: Satheesh on Jun 15, 2009 10:44 AM
    Edited by: Satheesh on Jun 15, 2009 10:47 AM

  • SAP Bidding Engine. How to cancel/block processes

    Hi,
    I would appreciate somebody to explain with detail the procedure to cancel/block certain shopping documents during the bidding process.
    I am refering to a bidding process when the following documents are related:
    1- Shopping basket
    2- Auction
    3- Supplier offer
    4- Order
    2 cases:
    1- Delete/cancel processes only keepig the Shoping Basket "alive" so it  can be re-processed
    2- Delete/cancel each document (whole process, 4 documents)
    It would be very helpful if anyody could send me any documentation bidding related.
    Your quick answer would be much appreciated.
    Many thanks
    Nuria
    Edited by: nuria ventura on Jun 7, 2008 4:40 PM

    Hi,
    You can delete the Published Bid Invitation in the change mode only before the bid end date and time.
    Once the end date was reached and the bid was opened then there is no point in deleting the bid and you don't get that option even in the change mode.
    BR,
    Disha.
    Do reward points for useful answers.

  • Canceling Events

    Is anybody know how to canceling event ?
    the case is like this :
    user click the [x] button on the top right of the windows. it will return an close event right? and how do we cancel it ? (cancel the close event)

    If you mean like have a pop-up dialog asking if one is sure they want to exit, then you will have to user your own listener. Like for the JFrame, set the default close operation to Do Nothing On Close then add a window listener that will "respond" to a close event where in it's window close method will have the code you write that will give the appropiate dialogs to either continue or cancel.

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • Recently I have added a new icloud account for my iphone but now my email is hacked and I cant complete the verification process.How to cancel the verification in my phone?  plsz help me.....

    Hi
    Recentky I have added a new icloud account to my iPhone 5s but my email is now hacked! so I can't complete the verification procedures. How to cancel the current verification process????plszz help me...

    Ah thanks Razmee however there is NO option to delete the iCloud account in settings!

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • How to get the name of correlation item in OM through event processing scripts?

    I am trying to write a groovy script in OM event processing scripts, I want that script to read the event correlation and set custom attributes accordingly. I am unable to read the correlation item. Please guide me how to get it? What method should I use to get the correlation item? I am using OPR library.

    Hi there,
    the name property would be the correct attribute to get the subform name, just by looking at the code it doesn't seem like it's doing the right thing
    I am assuming that you send Main in the function countChk() which would look something like this
    countChk(Main);
    And you probably want to make sure you are entering the right subform so you need to keep that loop at the end of the function
    but if you want to get through all the checkboxes inside that subform you must do a loop through that node to find each checkbox
    I am assuming that the function would probably look something like this
    function countChk(vNode) {//Starts vNode with Main
         for (var i = 0; i < vNode.nodes.length; i++) {
              if (vNode.nodes.item(i).className === "field") {
                   if (vNode.ui.oneOfChild.className === "checkButton") {
                        if (vNode.items.nodes.length > 1) {
                             if (vNode.value.oneOfChild.value == 1) {
                                  nChk++ ;
              }else if (vNode.nodes.item(i).className === "subform"){
                   if (vNode.nodes.item(i).name === "Door_Subform"){
                        countChk(vNode.nodes.item(i));
         }//endloop
    Hope this help!

  • How to get the cancel event of inlineDocument-style dialog.

    Hi experts,
    My customer has a question about ADF dialog framework.
    When we open new inlineDocument-style dialog from af:commandButtton, how can we get dialog cancel event?
    [Sample code]
    <af:commandButton id="cb2" action="dialog:test"
    windowModalityType="modeless"
    text="dialog:test" windowHeight="500"
    windowWidth="800"
    windowEmbedStyle="inlineDocument"
    useWindow="true"/>
    When we use af:popup, it has popupCanceledlListener attribute so that we can handle the situation where users click close button or Esc button.
    Does dialog have a similar feature?
    We can set a returnListener for dialog, but it doesn't work in case users click close button.
    Regards,
    Atsushi

    is this what you are looking for [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf]Handling the af:dialog Ok and CANCEL buttons
    and [url https://blogs.oracle.com/jdevotnharvest/entry/strategies_for_controlling_the_af]Strategies for controlling the af:popup close event
    Edited by: Mohammad Jabr on Apr 27, 2012 11:34 AM

  • How to cancel messages in "Transfer to process engine" status

    Hi All,
    In our production env, few of the messages in SXMB_MONI are stuck with the flag "Transfer to Process Engine". I would like to know where I can find these message or how canI cancel these messages. I checked all the options in "SMB_MONI_BPE", but could not find my message.
    I want to find that message and cancel it out as I don't want it to consume server resources.
    Any help would be appreciated.

    ANy how if you want to delete those BPM runtime instance you can do so by deleting the logical instance of the BPM instance
    go to SXMB_MONI and click on PE which got stuck and it will take you PE engine go to list technical options and chose workflow log option and then chose delete logical instance option
    /people/michal.krawczyk2/blog/2009/03/18/xipi-bpe-admin--logical-deletion-of-a-process-instance
    Rajesh

  • In forms how to cancel long running process or query in 10g

    We have application which is hosted on 10g AS. Some forms has lot of processing to be done and sometimes user wants to cancel the processing in between maybe because he wants to change some value and refire processing.
    Based on the search on net 'Esc' key was used in earlier version of forms to function as User requested Cancel operation. How can same be done in 10g. Do we have to do anything in fmrweb.res for this. Is there some setting to be done in forms or in AS for this functionality.
    Does this matter on whether JInitiator is used or JPI is used for running the application?
    Edited by: suresh_mathew on May 21, 2013 1:36 AM

    Hi,
    Exit can be used to cancel query mode i.e. in case you go into query mode by Exit you can cancel query mode. Suppose you went into query mode and you have fired query which will take some time to fetch how can I abort it.
    In earlier version of form there was 'Cancel' facility wherein if triggered it used to fire an error message 'Ora--01013 user requested cancel of current operation"
    With this facility you can abort any query which is executing or any long running process which forms is currently performing.
    fmrweb.res would have entry like
    27 : 0 : "Esc" : 1001 : "Cancel"
    The above entry I picked from OPN
    Java Function Numbers And Key Mappings For Forms Deployed Over Web [ID 66534.1]
    Unfortunately this is not working for us even if I put this in frmweb.res of 10g AS
    Basically I want ability to Abort/Cancel a long running process be it query execution or standard process triggered in the form.
    Any advise or help is highly appreciated.
    Suresh

Maybe you are looking for

  • Saving iWork Document in Mavericks: "** Couldn't be opened"

    When trying to save a file from the dropdown menu or when closing a document the following message appears: The file "Untitled.pages" couldn't be opened. Also the same problem with Keynote and Numbers.  Has happened since upgarding to Mavericks and t

  • FCP 4.5 on Intel Mac?

    A couple of general compatibility questions: Will an Intel-based Mac run Final Cut Pro HD 4.5? Also, will a PPC running Leopard do all right with 4.5? Thanks.

  • Need to be able to sort all columns in AP Invoice Workbench

    Hi, I found that only the 1st three columns can be sorted in the invoice workbench. Alternatively, dragging any other columns to these positions can also be done. I need to know if there is a way to enable sort in all the columns. Any document statin

  • RF Transactions

    Can someone please guide where I can find list of all standard SAP RF transactions and brief info about the transaction if available. Thanks in advance.

  • Cannot type in any textbox for a specific website

    Hello, I have a website and I cannot type anything in any textbox (e.g. search box) when using FireFox. I tried loading the site in Safe Mode with no effect, I still cannot type anything. I have seen similar behavior, but it always seems to get fixed