Clearing/Canceling a FPM event

Hello all,
    I have a class attribute that is a flag. What I am trying to do is stop/clear/kill/cancel all events that are called while the flag is still set. I am currently looking into FPM_OVERRIDE_EVENT_OIF of the CL_LO_OIF_MODEL class, but still trying to figure it out. It seems the only place I can call this method is in the OVERRIDE_EVENT_OIF method, but in that method I don't have an instance of the current event. Does anyone have any ideas or a different approach?
Michael

Hi,
In method OVERRIDE_EVENT_OIF you have parameter  io_oif. You can access the event by io_oif->mo_event.
The event can be canceled by io_oif->cancel_event( )
Also you can set the event  as failed in method PROCESS_EVENT by returning ev_result = if_fpm_constants=>gc_event_result-failed.
Regards
Kameliya

Similar Messages

  • 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

  • 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

  • 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

  • Executing Essbase Clear Script through FDM event scripts

    Hi,
    Is it possible to access and execute essbase clear script through FDM event scripts? I know one method is to modify Load action, but was wondering if can be done any other way.
    Thanks in advance.

    The Essbase client is installed on the FDM application server so yes. You can create a batch file that calls a calc script via the Essbase Client and execute this from your Event script

  • How to trigger standard FPM events through coding.

    While a standard FPM event triggers, it carries out with some event parameters which are automatically filled and is taken care by standard program.
    I have a requirement to raise a standard event manually, but in this case, the standard event parameters are not filled.
    Can any one tell me if there is any way through which I can get the event parameters automatically by raising a standard fpm event manually.

    Hi Chittibabu,
    There is no any such method to fill the event parameters automatically while we raise standard fpm event manually. You have to fill the parameters accordingly before you raise fpm event manually.
    Regards,
    Ravikiran.K

  • Custom FPM Event for Button row element

    Hi Expects,
    I have created a new button row element in standard screen, where I want to add custom FPM event and handle the same in get_data( ). But by default SAP is providing few event ID's in drop down.
    Please help me how to add custom FPM event for  button row element.
    Regards,
    Reny Richard

    Hi Remy,
    Process Event method does have any signature parameters in it which allow us to disable/enable buttons.
    We can handle this in Get data method.Get Data is always triggered after Process Event. So you can write that in Get Data instead.
    ****this is a sample code to do the same. You can do a read as well if single button needs tobe handled***
    LOOP AT CT_ACTION_USAGE INTO lw_action WHERE id = (your event id for the button).
        lw_action-enabled = abap_false.
        MODIFY CT_ACTION_USAGE FROM lw_action TRANSPORTING enabled.
        EV_ACTION_USAGE_CHANGED = 'X'.
    ENDLOOP.
    ***use field symbol to avoid modify if you want***

  • How to cancel datagrid itemclick event for one column with a button control

    I have a datagrid that displays rows of data that can be
    edited and deleted. To edit the user clicks on a row and the row
    data appears above in some text fields and user can edit data then
    clicks save and datagrid is refreshed with updated data. Also on
    each row is a delete button. This button will delete the current
    row of data. The conflict is when user clicks on the delete button
    the itemclick event of row is activated and edit fields get filled
    and then data row is deleted. I can create some very inefficient
    code around this, but i rather not. What I would like to do is
    cancel the itemclick event in the delete button column so the
    itemclick event never happens when click on the button. Is this
    possible?

    Just ran across this problem myself. My simple approach is to check the columnIndex in the ListEvent that is passed on itemClick.

  • 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…

  • Remove the cancelled document from Event history overview tab in vehicle

    Hi Experts,
        when a activity is created for a vehicle it is found in the event history overview tab of vehicle. In my project we want to show only the open and completed documents. we want to hide the cancelled documents.
    Need solution through configuration.
    With Regards,
    Selvam T

    hello sir,
    i want to your help
    i was installed fresh windows 7 via cd rom and then after installed all software.
    and now after 1 day customer complained me that cd rom not read any cd and i m also check when i insurt cd so its not read and when i am double click on cd rom icon its eject so what i do for that please reply on my email address.
    [text removed for privacy]
    VIMAL

  • Handling FPM Events in Java WDP

    Hi All,
    I have a requirement for a simple WDPJ iView that responds to the selection of an employee in MSS.
    Is it possible to handle the employee selection event from Business Package for Manager Self-Service (mySAP ERP) from a simple WDPJ iView that is not configured/resgistered as an FPM Self-Service application?
    Can a WDPJ simply handle theses events if the event name is known?
    Cheers,
    Steve

    Steve,
    you may want to check out these links
    Adding custom iview to general info
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29
    and check this note 1112733
    Thanks
    Bala Duvvuri

  • How does one clear Custom Views (Administrative Events) in the Event Viewer?

    Windows Logs and Applications and Services Logs have a "clear log" option; however, I am puzzled how to edit/delete Administrative Events?Eighter from Decatur, county seat of Wise (of course it's in Texas)

    Ronnie Vernon said: Hi p010ne
    The Custom View / Administrative Events is a compilation of all the other event logs in the Event Viewer.
    Entries in this log will be removed when the log where the event originated from is cleared.
    Hope this helps.
    Ronnie Vernon MVP
    I thought that was the case; however, I cleared all the other logs! This is an example of an entry in this log: Log Name:      Microsoft-Windows-Dhcpv6-Client/AdminSource:        Microsoft-Windows-DHCPv6-Client
    Date:          1/17/2009 7:52:33 AM
    Event ID:      1001
    Task Category: Address Configuration State Event
    Level:         Error
    Keywords:      
    User:          LOCAL SERVICE
    Computer:      Windows7
    Description:
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x000129F558C5.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DHCPv6-Client" Guid="{6A1F2B00-6A90-4C38-95A5-5CAB3B056778}" />
        <EventID>1001</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>3</Task>
        <Opcode>74</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2009-01-17T13:52:33.858398400Z" />
        <EventRecordID>202</EventRecordID>
        <Correlation />
        <Execution ProcessID="1088" ThreadID="864" />
        <Channel>Microsoft-Windows-Dhcpv6-Client/Admin</Channel>
        <Computer>Windows7</Computer>
        <Security UserID="S-1-5-19" />
      </System>
      <EventData>
        <Data Name="HWLength">6</Data>
        <Data Name="HWAddress">000129F558C5</Data>
        <Data Name="StatusCode">121</Data>
      </EventData>
    </Event>
    When I search for "Microsoft-Windows-DHCPv6-Client" I do not find that file?
    OK, I found the entrys in the Microsoft section (DHCPv6-Client) and am able to clear them there! 
    Eighter from Decatur, county seat of Wise (of course it's in Texas)

  • Cancel JTree selection event ?

    Hello,
    I have defined a user object in the DefaultMutableTreeNode that holds a flag for disabled nodes - Now I would like to cancel events from the user when this node is being selected, also I would like to make this node appear disabled.
    How should I do this with JTree embedded inside an applet ?
    Thank you,
    Maxim.

    My rough idea is, store your previous selection, when you get selection change event, check if the node is disabled, if so, set the selection back to previous selection. Also, you can implement TreeCellRender interface, make the node's background gray to let user feel it is disabled.

  • Cancel a SelectionListener event

    Hello all.
    Any ideas on how to cancel a custom SelectionListener event? I have a table and when the user clicks on a specific row, I check if that row's data have been changed. If they have I want to go back to the original table row, or cancel the row selection. Any ideas?
    Thanks alot
    Milan

    Hmmm, not sure if that will do, here is exactly what I'm doing:
    class SelectionListener implements ListSelectionListener{
    public void valueChanged(ListSelectionEvent e){
    if (!e.getValueIsAdjusting()){
    ListSelectionModel m =(ListSelectionModel)
    Here I want to put the code:
    if edited() then cancel this event and leave the originally selected table row. If I could at least get the last selected row, I could move it back, but getLastIndex() gives me some weird numbers and I can't find other methods to do what I need. Any suggestions?
    Thank you
    Milan

  • DSC - can't acknowledge or clear a user defined event

    I wrote this code for alarms but now I have modified it to handle events.  So, first create the event (create alarm button), then try to acknowledge it or clear it.  There should be a time inserted for acknowledging and clearing.  It does't work.  I have used the exact event URL to acknowledge it.  Please help.
    Thanks
    Matt
    Attachments:
    User Defined Alarms.vi ‏52 KB

    Hi Matt,
    Thank you for attaching the new code, I didn't realize there was a path in that constant since the original box was so small. Part of the problem you are seeing actually lies within that path, you should be locating to \\*\Process Name\UserDefinedAlarm now that you switched from working with events to alarms. Also, you are still using the Set User Defined Event.vi and Read Events.vi, which need to move over to their Alarm counterparts.
    Once you have those changes made, you need to alter the way you are trying to acknowledge the alarms. The problem isn't within logging the time but that the alarms are not being acknowledged at all. If you use the Read Alarms.vi and then wire the "alarms" output into the acknowledge function then it will acknowledge all of the active events (you may have to change the acknowledge type to Alarms). If you only want to acknowledge a single alarm at a time then you will need to trim down that cluster to focus on your selected alarm.
    Finally, the way you are logging to the multicolumn listbox is not functioning correctly. I would suggest you look at the DSC Alarms Demo example (Help » Find Examples... » Toolkits and Modules » Datalogging and Supervisory Control » Alarms and Events » DSC Alarms Demo.lvproj). In that example there is a subVI, which is not part of the Alarms & Events palette but probably should be, named Format Alarm Data.vi. It is used in the first three examples under that project and should work better for logging all of your alarm interaction than searching through the database.
    Regards,
    Peter W.

Maybe you are looking for

  • Could not load application module error in EBS 12.0.6 / JDev 10.1.3.3

    Hi, JDeveloper 10.1.3.3.0.3 Oracle EBS 12.0.6 I have extended a seeded VO (added only 1 new column). I am able to run the application successfully from JDev. I can see that the seeded VO is substituted by new VO when I click on "About this Page" - "B

  • Adobe Premiere Elements 7 Silent Uninstall

    Hi I have a tailored silent install of APE 7 which installs the main application separate to the templates on licensed network computers however when uninstalling, I don't want the templates to be removed aswell which they automatically do. They're i

  • How do you sync itunes between a MacBook and ipad mini with different operating systems ?

    I own a Macbook with OS X 10.5.8 operating system, and have recently bought an ipad mini but I cant sync itunes because it operates on the 10.6.8 system, is ther an upgrade for the Macbook, or is there another way of syncing the two ?

  • How to load AFS Material Master records.

    Hello everyone, I am new to loading AFS Material Master records.  In the past I have simply used the Material Master direct input programs, or batch input, to load the data.  Because of the extra AFS fields, I was guessing there must be a new direct

  • Saving PSE10 edits back into Lightroom3

    I'm working on a Mac, running 10.6.8. I recently upgraded from PSE9 to PSE10. No problem opening files in PSE10 from Lightoom, choosing TIFF format, 8-bit. However, when I try to save edited file back into Lightroom, Command-S brings up "SAVE AS" dia