Stop triggering the FPM event!!!

Hi Experts,
In SRM7 we have one OIF FPM event, on click of which a popup will appear.I have created the popup on click of that event.
But when click the 'SUBMIT' button, the event is getting triggered after that the popup is coming.
I want that event to be triggered from 'YES' button of the popup.
Any idea will be helpful.
With Regards,
Subhasis

Hi,
If you are inside a method of the FPM and want to alter the further flow of the method by an action set in the popup you are calling, this is not going to work. When using server side eventing, the phase model will make a complete roundtrip of the method, then render the popup, then user action is taken. The server sided event will not halt and wait for user interactions here.
Example:
What you think happens:
FPM method start.
--> <code>
--><popup>
--><code which execution depends on what was done in the popup>
FMP method end.
What happens in runtime:
FPM method start.
--> <code>
--> <popup is prepared for rendering>
--> <code which execution depends on what was done in the popup is executed with initial dependencies since the popup isn't even rendered yet.
FPM method end.
Server roundtrip.
Popup is rendered.
User takes action in the popup.
--> What you wanted to impact is long since over
Cheers, Lukas

Similar Messages

  • How to Read FPM Events in WDDOBEFOREACTION

    Dear All,
    I am working on a GAF solution. If the user clicks the PREV or EXIT buttons I want to skip the Check the mandatory field validations. But do not know how to read the FPM Events inside the WDDOBEFOREACTION method inside the View.
    Any help is greatly appreciated.
    Thank you.
    PK

    Hi,
    Below code can be used to get the current executed FPM event.
    DATA  io_event type cl_fpm_event.
    io_event = wdevent->get_string( 'ID' ).
    io_event will have the Event which is being triggered.
    FPM event can be captured in WDDOBEFOREACTION, but since this hook method is invoked before any events in the view, so it will throw a dump , if any action is triggered other FPM event.
    So it is better to write the validation in Component controller method,(ON_PROCESS ), if we want to Validate based on prev and next buttons.
    DATA  io_event type cl_fpm_event.
    CASE io_event->mv_event_id .
        WHEN cl_fpm_event=>'NEXT'.          " Global constants can be declared like gc_event_edit,etc
    Endcase.
    Regards,
    Harsha J

  • Capture FPM Event in another WDC

    Hello Friends,
    I trying to capture the name of event liek EDIT,CLOSE,NEXT etc.. that are defined in FPM in a std WDC.
    I need this because based on the ID of the button , i need to process some information.
    Could you pls let me know how to handle this or any code would be fine. ?
    Regards,
    Vinay

    Hello Jens..
    I am not trying to go into EDIT mode in std..WDC delivered by SAP .. but thru enh implementation..
    I do have dev authorization.
    The interface IF_FPM_UI_BUILDING_BLOCK  is already implemented in  WDC
    What I did was..
    In the component controller methods.. the method... PROCESS_EVENT  is not in EDIT mode..
    But i wrote  i wrote the code for capturing the instance of the FPM event in the post-exit of that method..
    When i tested this in portal.. this code not executed and hence unable to caputre the event.
    Is the design approach correct ? or is there another way
    Many thanks..
    Regards,
    Vinay
    Edited by: Vinay Reddy on Feb 6, 2012 12:12 PM
    Edited by: Vinay Reddy on Feb 6, 2012 12:24 PM

  • Workflow sending 20 email notifications every one hour for the same event

    Hi Experts,
    We had an issue on a clientu2019s prod system that the workflow triggered the same event 20 times in one hour. Later, a client has resolved the issue by removing the information from the workflow administration and reentering it back again. The workflow administration contains email settings, web settings, workflow roles, and active workflow maintenance. Although, the issue has been resolved but a client still needs to know how that happened. I would like to get some helpful opinions on how this happened because I am very new to the workflow. I would really appreciate your opinions.
    Thank you
    Don P.

    Hi Sue,
    Thank you for your response. I am not sure if the event has been triggered erroneously. The client told us that it didn't happen in the dev system when he tested it, but it only happen in the prod system. This project went live a little bit over a year ago without any issues, but it just happened the first on 6/22.
    The event is about to notify the user to review a new incident report (EHS), and it's same event id for all 20 email notifications. We will a client to look into their system about how this event raised?, what does the event log reveal? and if he uses the event queue. Again, thanks for your response.
    -Don P.

  • How to use FPM event in Launchpad Folder

    Hello Experts,
    We have a requirement in which we want to navigate to the Service on clicking the folder name of the launchpad. As this folder is going to have only one service inside it , it does not make any sense to go inside the folder and then access the service by clicking on the service link.
    Do you have any suggestions how we can do this.
    I was expecting that we can use the 'FPM Event ID'  of the Launchpad folder for this , but now sure how to use it.
    Please let me know how we can do this , and if  this can be done by 'FPM Event ID'  how to do that.
    Attached is image about the 'FPM Even ID' which i think i can use.
    Thanks
    Amol

    check this document on Actions configurations in Launchpad
    https://help.sap.com/erp_hcm_ias_2013_01/helpdata/en/5f/b1aa2dcdd54783b6ee557ce1abcb8e/content.htm?frameset=/en/63/61982…

  • Business Event not triggering the PLSQL procedure.. What to do?

    We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
    We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
    I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
    Business Event Subscription settings:
    System: ORDEBS.SYSTEM.COM
    Triggering Event
    Source Type:Local
    Event Filter: oracle.apps.gl.Journals.journal.approve
    Execution Condition
    Phase: 100
    Status: Enabled
    Rule Data: Message
    Action Type:Custom
    On Error: Stop and Rollback
    Action
    PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
    Priority: Normal
    Documentation (Not sure what value to be given for these. I went with the below values.)
    Owner: Company Name
    Owner Tag: Custom Schema
    Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
    select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
    Procedure:
    CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
    AS
    PROCEDURE Get_Attributes
    IS
    BEGIN
    INSERT INTO xx.xx_test_table VALUES ('From BE');
    COMMIT;
    END Get_Attributes;
    END XX_GL_APPROVE_BE_PKG;

    Thanks Alejandro. Now this is working.
    Changes i made:
    1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
    2. Changed the function signature to have standard parameters like:
    CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
    AS
    function subscription(p_subscription_guid in raw,
    p_event in out nocopy wf_event_t) return varchar2 is
    l_result varchar2(20);
    begin
    insert into xxvtv.xxvtv_test_table values ('From BE');
    commit;
    exception
    when others then
    wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
    wf_event.setErrorInfo(p_event, 'ERROR');
    return 'ERROR';
    end subscription;
    END XX_GL_APPROVE_BE_PKG;
    3. Changed the owner name and owner tag both to the custom schema name (XX)

  • Stopping Triggering Of Event

    Dear All,
    I have created workflow for Travel expense. Here once the Expense is raised it goes to HOD in display mode and once it is approved by HOD, workitem to goes to Auditor in chnage mode.
    Workflow starts on CREATED event of BUS2089 Business object. This event gets triggered when Expense is saved in PR05 transaction code.
    My problem is when I am sending workitem to Auditor in chnage mode he can make the chnages to expense and save that . At this point of time also the CREATED event is triggered and new workflow is getting started how do I stop this .

    Just create a virtual asttribute that checks whether there is an active instance already there. You can use FM SAP_WAPI_WORKITEM_TO_OBJECT. If it exist the attribute should have a value X.
    Now you need to create a start condition for this Workflow which specifies that the Workflow should be triggered only when the flag(Virtual attribute) value is initial
    Thanks
    Arghadip

  • Business Event not triggering the SOA BPEL Process with OA Adapter

    Hello Gurus,
    I am working on Business event "oracle.apps.per.api.employee.create_employee" and the event is getting triggered when creating an employee from EBS.
    The message has come till WF_BPEL_QTAB(I could seeit) and in "READY" status.We have a SOA BPEL Process that is subscribed to the event "oracle.apps.per.api.employee.create_employee" using OA Adapter.
    The issue is that the SOA BPEL process is not getting triggered and it is not dequeing the message from WF_BPEL_Q.
    Please let me know if I have missed any steps on SOA BPEL side.
    Note: Agent Listener is up and running.
    Thanks,
    Sunil

    Ofcourse, I subscribed to the business event using BPEL. Ideally the instances should be created and I should be able to receive the standard payload.
    Yes the JNDIs are correct. We have other business events working in the same fashion and we are using same JNDI.

  • Creation of a purchase order triggers the event ReleaseStepCreated twice

    Hello,
    I tried to use the standard workflow for the approval of a purchase order and noticed that i am receiving twice the same mail.
    As you know, the workflow is triggered by the event ReleaseStepCreated. After I created a purchase order, i saw that the event is triggered twice, so that is why i am receiving two emails.
    I believe this is wrong, Has anyone noticed this problem?
    Thanks,
    Efren

    Hello,
    The event linkage contains only one record, which is the one that connects my workflow to the event. This is not the cause.
    What do you mean by delegations? Are you talking about delegated objects? If yes, i do not have any.
    I looked in transaction SWEC(events for changed documents), and i guess i found the cause. There is a record with change doc. object EINKBELEG with the event ReleaseStepCreated of the object BUS2012. It has the trigger event "On Create", and in the Function Module, in Event Container it has function FRE_ORD_EVENT_PO_DB.
    I removed this record and now the event RELEASESTEPCREATED is triggered only once, so i think it is ok.
    I guess this record existed before there. Do you have that record with the function module FRE_ORD_EVENT_PO_DB?Or do you know what is the use of this function?

  • Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY- ERROR EVENT_RAISED - Error updating the process object

    Hi All
    I have set up a simple custom HCM process and Form regarding Infotype TO CREATE AND CHANGE POSITION. I have checked the process and form consistency and it seems fine. Now when I run the process from HRASR_DT it generates a process number but it also gives an error workflow could not start.I get following error (SWIA log - Step history)
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Exception occurred - Error when starting work item 000000007031
    PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
    CREATE - Error when creating a component of type 'Step'
    CREATE_WIM_HANDLE - Error when creating a work item
    CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
    Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
    Points to be noted:
    1) I have searched few SAP notes such as 1384961(Notes for 6.0.4) but our system is in higher level patch 6.0.5
    2) WF-BATCH have SAP_NEW and SAP_ALL authorization.
    Appreciate your valuable suggestions.
    Thanks
    Ragav

    Hi Ragav
    did you try to debug this? maybe something is missing in config of P&F?
    Since you are on 605, the following note would be there in your system....use it to debug:
    1422496 - Debugging background workflow tasks in HCM P&F
    This will help you find the root cause.
    regards,
    modak

  • I get the message 'ITunes has stopped working' whenever attempting to open iTune. The problem Event Name='APPCRASH'. The Fault Module Name=iTunes.dll. The fault module version=11.1.5.5. Anyone has a solution?

    I get the message 'ITunes has stopped working' whenever attempting to open iTune. The problem Event Name is 'APPCRASH'. The Fault Module Name is iTunes.dll. The fault module version is 11.1.5.5. Does anyone has a solution?

    Hello, philos188. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting articles that I would recommend going through.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    iTunes for Windows: Unable to install or open
    http://support.apple.com/kb/ts5376
    Cheers,
    Jason H.

  • How do I create event links in the FPM Application Editor?

    I'm am attempting to add a new step to the roadmap of ESS/BEN Benefits Application.  I've created a new VAC component and a corresponding view (using the "self-service administrator" role).
    When using the FPM Application Editor to create a new perspective, I need to add an event link but receive the error, "Either the perspective "Smoker Verify"  has no view assigned to it or none of the view(s) assigned  have any event assigned to them".
    How do I assign events to my new view?  Please assist and thanks in advance.
    -Jeff Karls-

    I see that the events are defined on the views themselves in the portal content.

  • Triggering a scheduled event based on the approval status

    Hi,
    I have created schedules for my project (one task and one milestone) with three phases(draft,approval,approved). The milestone is dependent on the task.Task is created for draft phase and milastone for approval phase
    Now after creating the schedules when I have saved the project, even before i put my project in the draft phase the schedule is getting triggered and can be seen on the workbench in the events channel.
    That means the schedules are getting triggered based on the date irrespective of the task or milestone being completed and also the schedule for a task needs to be triggered each time until the task is completed.
    So now I want accomplish two things -
    1. How can I trigger the schedule only when the user puts it in the draft phase or any required phase ?
    2. How can I send a mail to the collaborator each day until he proceed the project to approved status and only on getting "approved" status the milestone schedule should be triggered.

    Both would require scripting...
    on phase change, add the required events
    build a custom class that gets called nightly via scheduled task and searches through the projects meeting your criteria and sends them an email reminder.
    -Howie Wexler
    www.craftysystems.com

  • PCIe-6321 & ConfigureChangeDetection C# - Need to "debounce" the detection - event triggered multiple times

    I am working on a C# NIDAQmx application for a hardware configuration that uses a PCIe-6321 to interface with downstream hardware.  There is a DI signal from a manual switch on the downstream hardware that I must monitor for the start/stop signal for my application's data acquisition operations.
    I was having inconsistent results using the ConfigureChangeDetection NIDAQmx functionality.  So I used the ReadDigChan_ChangeDetection sample and using Debug.WriteLine statements have verified that when the switch on the hardware is toggled, multiple ChangeDetected events are thrown before the signal settles into the actual High or Low state.
    Since I am not a hardware guru, I consulted another engineer, and was told that this is common with switches, and the signal and/or change detection needs to be "debounced". 
    Can this be done purely through additional configuration of the NIDAQmx DI task?  I saw properties for digital filtering, but don't understand their use.  I looked at the ReadDigChan_ChangeDetection_DigFilter sample, but it seems to imply that some other DI needs to be connected on the card to be used as the filter, which I don't have.  Only one DI is coming from the downstream hardware.
    Any help and/or advice will be greatly appreciated.

    I believe I have found the solution.  By searching the forums I came across a couple of posts that pointed to this article
    http://digital.ni.com/public.nsf/allkb/220083B08217CFD686257131007E5D2C?OpenDocument
    So i started playing with the corresponding properties in the C# task, and it looks like I may have to only set the following properties:
                    myTask.DIChannels[0].DigitalFilterEnable = true;
                    myTask.DIChannels[0].DigitalFilterMinimumPulseWidth = 10.240000e-6;
    According to error messages, the DigitalFilterMinimumPulseWidth for the PCIe-6321 can only be set to specific values.
    Using this in the ReadDidChan_ChangeDetection_Events sample appears to be successfully debouncing the ChangeDetection events to only 1 per physical switch toggle.
    If this is not the approach I should be using, please advise otherwise.

  • What is the difference in the System Event triggers: Any queue limit set to zero and System queue reached its job limit

    My co-worker and I are not sure what the difference between Any queue limit set to zero and System queue reached its job limit are in the System Events.

    Hi jlayton,
    System queue limit is the sum of all queue limits you have defined. For example, if you have a system queue limit of, say, 100 -- queue A has 50 jobs active, and queue B also has 50 jobs active, then you will receive an alert System queue reached its job limit since it is set to 100.
    Any queue limit set to zero. Note, this may also include the System queue. For example, if you want to gracefully stop Tidal, you may want to set system queue = 0 so that there are no active jobs. When you do this, you will receive an alert queue limit set to zero.
    BR,
    Derrick Au

Maybe you are looking for