Event triggerred before Wait step

What can we do when the event is triggerred before the wait step? Does anyone know about the concept of parked events?
Iam using f.m swe_event_create, can we use the start_with_delay option or some other option..
I would like to have some delay before the second event is raised. but at the same time as this would be a online program, the user should not feel the delay..
or the Wait step should be modified to pick up already created events..(i think this is called parked events).
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
*objtype =
*objkey =
*event =
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
NO_COMMIT_FOR_QUEUE = ' '
DEBUG_FLAG = ' '
NO_LOGGING = ' '
IDENT =
IMPORTING

Hi Karri, thanks for the reply ..There is a presentation on parked events if you search the wiki and blogs on this site, you will find it but thats the only thing i have seen about it and its not really helpful.
the problem is.. 2 Inbound idocs are created both at the same time one raises a event for workflow.. one raises a event for Wait step in the same workflow ..
The 2 inbound F.Ms which raise the events, can error sometimes or the workflow can create a workitem before the Wait step and hang in there till its processed..(its unpredictable which one will trigger first)
If the second event(for Wait step) is raised first and the workflow processing has not yet reached the Wait step, the workflow waits for the event to be raised(although the event is already there)
Do you know of some way we can keep reprocessing until the Event receiver is found? (may be in a Raise event workflow step or in a Function Module)
Edited by: sk123456 on Jun 5, 2010 11:47 AM

Similar Messages

  • Event triggering before needed in  transaction VA02 as user exit is involve

    Hi All,
    My requirement was to put authorisation check using ABAP coding in VA02 transaction so that a particular user can delete change or modify a particular order . For this i had maintained a ztable in which authorisation was given to each user. For this i used User exit to write my code. Initially tha code was running fine.
    But now whenever i run the Transaction VA02 and enter the order number and hit the enter button , a message is displayed . which shuold have been displayed while the user made changes in line item. This message was written by me , whenever the user who is not authorised to change the Line Item . But it is comming when when order is entered i.e on initial screen.
    So pls Help.
    Thanks & regards
    Vijju.

    Vijju,
    You have done your code in MV45AFZB which also gets triggered on ENTER if data is changed on screen, so behavior is OK.
    i run the Transaction VA02 and enter the order number and hit the enter button , a message is displayed
    This should be NOT the case, it is NOT the same for me, When I open an order in VA02, CHANGE any field and then press ENTER, then only Exit gets triggered and msg should appear.
    If it is appearing for you without changing any field itself, then just DEBUG and check what is the data in XVBAP/YVBAP. Check with some other data as well, I think shouldn't be the case.
    Also, I feel, if you change anything and error comes on ENTER itself before SAVE , it should be actually Fine with the user and is normal with many other std transactions as well.
    1 more point, your condition " IF YVBAP NE XVBAP." should be the first condition and not later, because why you want to do a SELECT if nothing gets changed.
    Regards,
    Diwakar

  • Wait step event

    Hi,
    i am new to the workflows.i worked in support project and i am looking for development.
    could any one can explain:
    what is wait step event,
    when it should be used and
    while creating the wait step event do we use any tcodes to assign the events(swetypv,sweinst etc)
    generally when we use starting events we will write start conditions based up on that event will be triggered so in the same way how waitstep event will be triggered?
    Regards,
    Mudhiraj

    Use
    A wait step can wait for:
    u2022  An event
    u2022A condition
    u2022A local event
    u2022An event that is initially received by the workflow.
    At runtime, a wait step is represented by a wait step work item. Wait step work items are not displayed in the Business Workplace. You can, however, locate these using work item selection.
    Correlations
    You can use a correlation when waiting for an event and when waiting for an event by using workflow.
    A correlation enables you to identify objects that belong together, for example, a quotation and the relevant sales order.
    Features
    Wait for Event
    When waiting for an event, the wait step is terminated when the event specifies occurs. This event
    terminates all wait steps waiting for this event.
    You can use this type of wait step for the following purposes:
    u2022To suspend the workflow until a defined event has occurred.
               A workflow is to wait until documents requested have been provided for an applicant activity. Once the
    requested documents are received, the transaction used for inbound processing and archiving creates an
    event which the wait step waits as a receiver.
    u2022To wait for an event in a parallel processing branch, which renders processing in the other
    branches unnecessary.
    The event for which the wait step waits should not be created in the other branches of the fork.
    u2022Wait for the result or a message from another workflow that was started in another system by the
    WebFlow function.
    u2022Wait for a message of the process that the workflow started using a Wf-XML message.
    Wait for Condition
    When waiting for an event, the wait step is terminated when the corresponding condition returns the
    value true.
    Wait for Local Event
    When waiting for a local event, the wait step is terminated when this event occurs.
    Wait for Event Via Workflow
    When waiting for an event via the workflow, the event is initially received and temporarily saved by
    the workflow. Once the wait step has been activated, the event is forwarded to the wait step. During
    waiting via the workflow, the event can terminate a maximum of one wait step. If several wait steps are
    active, the event terminates the oldest wait step.

  • Wait step in fork

    hi all,
    i have one problem in workflow  i am using wait for event step  in fork but the event is not coming....
    i tried to create the event using function module but its not coming
    i think it is taking null object so i tried using create event step in workflow but it didnt work....
    i am creating the event through function module (activity)  but  it is not processing after that step..
    i tried to search in forum but i didnt find the solution...
    please help
    Piyush jain

    yeah i traced the event it is coming in event trace
    actually i have three events in zbo created ,approved ,rejected and accordingly i defined the activity
    for three events but the wait step is not processed yeah it is showing in event trace but the event is not coming in
    workflow step .....i am not using correlation step in that
    thanks for reply
    piyush

  • Wait step stops during PI BPM workflow

    Hello Guys,
    I'm testing the one BPM scenario in my test system, during runtime the workflow stops before wait step (only 1 min) but after 1 min the message not process and it is stucked in  'in process' state.
    Earlier the scenario works good with wait step, but now it's not working in Dev & test systems but only working in Production system,
    Note: Recently we migrated from Service pack upgraded from PI 7.31 SP06 to SP11 in all three systems.
    Do you have any idea on this error?  could you please suggest me
    Thank you.
    Sateesh

    Hello Udo,
    You are absolutely right, I reschedule my background jobs in t.code SXMB_ADM_BPE then it resolved my issue.
    And I have one more question currently my PI systems are in 7.31 SP11 and getting error ' Cache content Obsolete' (SXI_CACHE-->deltaMonitoring)
    Could you please provide me any suggestions on this .
    Thank you.
    Sateesh

  • Waiting step wait longer though event has created

    HI Experts,
    I have a WF which has a waiting step in one of two parallel branches of a Fork. I use below FM to create an event which is successfully created but my workflow sometimes takes longer to continue. It shows the status READY longer. BUT sometimes it works fine but sometimes more than 20, 30 minutes. I want to know why??? has any one an idea why??
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                                    = c_object
          objkey                                      = lv_key
          event                                       = c_event
          START_RECFB_SYNCHRON  = 'X'
          NO_COMMIT_FOR_QUEUE      = 'X'
        IMPORTING
          event_id                                   = lv_envt_id
          receiver_count                        = lv_rcvr_cnt
        EXCEPTIONS
          objtype_not_found                   = 1
          OTHERS                                   = 2.

    Hi,
    Definately check SWEL. It will probably give you more information what happened to the event or what it is waiting for.
    There is not really that much difference between the functions. Both will create the event. But in general you should always chekc SAP_WAPI* functions before using some SWW* function when you are doing workflow development. They are newer versions and the support API for workflow development.
    Regards,
    Karri
    EDIT: And perhaps with the SAP_WAPI_CREATE_EVENT the events would work better - which I actually doubt in your case, because I think that there is something wrong in the system of some general configurations (events go into queue or whatever).
    Edited by: Karri Kemppi on Aug 24, 2011 1:14 PM

  • Abap-Class-Event in Wait Step

    Hi guys,
    in my workflow i have an activity with an abap method. This method works like a dialog. This means, i get a workitem in the business-workplace which shows a webdynpro where a pdf is displayed and where i can choose whether i click on button1 or button2.
    When i click on one button, an abap-class event will be created. This event has a container. My target is, to bring the user desicion back to the workflow via event.
    When i start a new workflow with this event then it works fine. But i dont want 2 workflows. I need a solution with one workflow. So i use a fork in my workflow. In branch 1 i have the activity which displays the pdf and create the event. In the other branch i have a waiting step, which waits for the event and bring the user-desision from the event-container to my workflow-container.
    That was my plan, but it dont works this way. I checked the event-trace and theres no receaiver entered for my event. So my workflow stoped at the wait-step (wait step is ready).
    I read, the the workflow system is automatikly doing the type-linkage and the instance-linkage, but i found only the instance-linkage filled. Can it be, that the wait step is only working with BOR-Events?
    Any ideas?

    Hi swangir,
    i tryed this FW SAP_WAPI_WRITE_CONTAINER some days ago. I can use SAP_WAPI_READ_CONTAINER easylie but when i try to modify the container then i get an enqeue exception in the SAP_WAPI_WRITE_CONTAINER FM. I guess this came up, because i call the webdynpro from an activie-step in the workflow and not a dialog-step. So i guess the container is locked and i cant write. I also tried to unlock it with dequee_e_ .. FM i forgot the name. But it also didnt work.
    Thats why i tryed to bring the user desision via event back to the workflow. And it works, as long i use 2 workflows, like i explained in my first post.
    What do u mean with...
    "Alternatively, you can bind back the class event container to workflow container by binding back from the dialogue step."
    Andre

  • ABAP OO class-based workflow, wait step

    Hello,
    I'm hoping someone is able to help me.  I've implemented a class which triggers a custom workflow through a custom event of the class.  At one point during the workflow I want to use a wait step that waits for another custom event to occur.  I've created my second event which I want to trigger from an ABAP ALV Grid report for users, that will allow them to select the specific workflows to trigger this event for.  My problem is, I am having trouble figuring out how to find the correct object instance of my class from within the ABAP program and trigger the event specifically for that instance, so that the workflow can continue and eventually complete.  I have implemented the IF_WORKFLOW interface and up to this point the workflow is functioning correctly.
    Thanks,
    Leslie

    Hello,
    Sorry, not sure where my brain was. Actually I do know: at two clients with projects going live this month, so apologies for a rushed and inaccurate response. It's CL_SWF_EVT_EVENT.
    Jocelyn's blog I referred to includes a code sample using the same class on how to raise an event with an object key.
    Regarding your second question: No you don't need to do any binding. Just use an instance of your object and it will wait for an event with the same key. The WF part is very straightforward and works exactly like BOR, it's just raising event that can't be done with the WAPI.
    Cheers,
    Mike

  • Wait Step in Workflow

    Hi Workflow gurus,
    I have 2 questions want to ask.
    1. We have a wait step deadline monitoring in our workflow project. Let's say 30 day wait period. After 30 days workflow is getting triggered & everything works fine. But that is really required in Production. In Dev/QA systems we do not want to wait really 30 day. We want a small time period, let's say 1 day. Now what is the best way to handle this? Meaning Different time periods for different systems for the same workflow & same wait step period.
    2. If a work item is waiting for a wait step to be completed(for ex waiting for 60 day wait period) before 60 day itself,
    can we execute manually that work item using any std report?
    Kindly help me.
    Thanks,
    Pandu.

    Hi Pandu,
    1. There are a couple of things you can do in this instance. You could manually remove the deadline after the 1 day threshold.
    Open the work item and select Edit -> Change -> Change Deadline -> Excute and then remove the Requested Start deadline
    (ensure you have Technical View set for the work item display)
    Deadline monitoring (SWWDHEX) will have to execute before the work item will transition out of a Waiting state.
    Alternatively you could store the deadline parameter externally in a config table somewhere and retrieve it into the workflow for use with your deadline. Obviously when you change the configuration from 30 days to 1 taking care to ensure that the changes are not transported to prod. Not really fond of this since there is a risk of transporting the changes.
    2. Transactions like SWIA don't allow you to execute work items in a Waiting state. So as above go into the work item and either change the deadline or execute.
    I hope this helps,
    Best Regards,
    Trevor

  • ERROR in the wait step

    Hi all,
    I have a requirement, where automatic payment proposal goes for an approval process. When the proposal has created in the tcode F110 based upon user who has loged in a push button "Trigger Workflow" will appear once proposal is made (enchansment), When the user press this button workflow will be triggered using the function module. After that i am finding the approver details. After this step type, i am checking for the condition (payment or proposal) if it is proposal flow will proceed futher. After this i have used a fork step - two branches 1. for the workflow proceed further 2. cancle the workflow when and event "ZSAVE_ON_CLICK" (custome defined event) is triggered.
    I am getting the error at this wait step. The error is ""Workflow 000000703573 wait step 0000000248: No valid object ID in container element 'ZbusF110'""
    Thing i have done.
    1. I check the binding, here i am passing two key values of the bo to my workflow container from the event container.
    2. When i tried to bind the EVTOBJECT to zbusf110 - it is giving me an warining "'_EVT_OBJECT' is not an export element and hence sometimes has no defined value"
    Kindly help me in solving this issue.
    Thanks and Regards
    Balaji K.

    It is working fine

  • Need info on wait step in workflow

    Hi All,
    I am working on workflow scenario, where I have a wait step for an event (to be triggered by an incoming Idoc). Now when a time frame is reached, a workitem should be raised for an agent to take the action ( to continue wait or cancel the process).
    I understand that the wait for an event step also raises a work item. So I am planning to design as follows.
    1. Activate the requested start date tab which will put the WI in the inbox. But not very sure how to capture the agent decision and go back to wait step or cancel accordingly.
    Can someone provide me some inputs?
    ~ Roopesh

    Hi Roopesh,
    I think the easy way is to wrap your wait process into a subworkflow. Then make a modeled deadline on your waitstep. In the modeled path, you then place your userdecission, that updates an exporting container with the result. (Cancel, retry or event received)
    This subworkflow is wraped in a loop that determines to continue or not using this container.
    Hope it helps
    Kind regards
    Mikkel

  • BPM(with wait step) calling another BPM

    Hello,
    I have this scenario whereby i need to call a BPM from another BPM process. Call it BPM1 and BPM2. BPM1 will have a Sync-Send-step to call BPM2.
    The following is what i have setup:-
    Working OKAY:-
    BPM1 (receive from file, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
    But if i put an wait step (for 1 minute, see below) before the send syn step in BPM1, i will have problem and the queue in BPM1 show "STOP" and the BPM2 queue show "RETRY".
    Problem:-
    BPM1 (receive from file, wait step, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
    Yes, the RETRY will work but the problem is, my BPM1 has already timeout and has ERROR (see from SWWL) and BPM2 has exceptional error in the Close A/S Bridge send step (because it can't send back to BPM1).
    Anyone has any idea how to resolve this? and hopefully the above is clear enough to discribe the problem that i'm facing now.
    Any suggestions are welcome, scott.

    The minimum BPM-wait duration is 1 min and cannot be decreased below that....

  • Sessions with Event "class slave wait" taking 100% CPU

    Hi experts,
    I have an issue in an 11.2.0.2 RAC database with 2 standby nodes that are driving me nuts.
    All started when I've been told there are 2 Oracle processes consuming too much CPU in the environment.
    I found 2 processes which takes 100% CPU each. These processes are Oracle processes into the DB and checking them out although they are registered in v$process and v$session, there is nothing related to them in v$bgprocess so I could not find out which oracle processes started these 2 OS processes.
    The view v$session shows them ACTIVE in the event "class slave wait". There aren't too much information about this event, at least I failed to find...
    Using dbms_monitor and dbms_system to create trace events did not create any tracefile. Only ORADEBUG was able to create events but with nearly no information inside the trace files.
    Questions I need to have answered or at least hints that I can follow to find the answer:
    1) what is causing the CPUs to be consumed at 100%? Which process?
    2) Why does these processes are using that much of CPU?
    3) What can be done to safely get over it?
    Honestly I don't know where else to look at except trying to get some help. Could someone give me a hand please?
    BR,
    Lauro Ojeda
    Edited by: LauroOjeda on 26/01/2013 06:44

    Hi Pal, thanks for your reply!
    Here are the answers:
    1. If it is RAC there is no such construct as a "standby node" and you say you have two of them. Please be specific ... is this RAC or Data Guard or a combination? Or do you have a three node cluster with all services pointing to only a single server wasting all of the resources of the other three?
    A: This is a combination of them. We have 2 nodes in a RAC environment shipping logs to two physical standby databases in another site.
    2. Two processes can not be at 100% of CPU any more than I can be 200% awake. Please show us how you arrived at this conclusion, on what hardware and operating system, and include a formatted (read the FAQ to learn how) extract showing what you are seeing.
    A: top in Linux shows two oracle processes consuming 100% (or nearly of it) of 1 CPU each. This is a 16 cores server (each primary node) so 2 of these are working on full capacity to service the described processes.
    3. What processes? Name them and again run a SQL statement and post the output so we can see what you are looking at.
    A: Like I said before I failed to find which background process they belongs to as there are no indications of them in v$bgprocess and in v$session/v$process either. I can see them in v$process and v$session but again, there are no indications of for which bg process they belong to.
    4. Is anything slow? Are there any problems with the system or are you only reacting to two numbers you think are too high?
    A: No, system is not slow because of that but the client wants to investigate and have it sorted as it is not normal.
    Additionally I found a bug in metalink which seems to be the culprit, but I'm unsure yet. This is Bug 12929268 : HIGH CPU ON ORA_O00N PROCESS
    Is any other information that I may provide you?
    Thanks for help!
    Lauro Ojeda

  • Event triggered for checkbox in cl_gui_alv_grid

    Hi All ,
    I have a requirement like ,i give PO number on selection-screen.After execution, the items should be displayed on second screen ,which has some options on the top like before GR or after GR .(custom screen designed with cl_gui_alv_grid for display)
    I desgined checkboxes for each row of the line item.user can click on multiple rows and click on EXECUTE button on the screen.After that smartform should trigger and print .
    Now my query is how to capture the checkboxes which the user has entered (thru cl_gui_alv_grid) . Is there any event that gets triggered upon clicking the checkboxes?? I need the data of the corresponding row to process further .User can click on multiple items.
    Please respond
    Thanks

    Hi Hemanth
    You should have a field in your internal table matching the checkbox column in ALV.
    Call method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID on user command for execute button,
    it will set the field  = 'X' for ticked lines in your internal table.
    Then use a loop on your internal table and find selected lines.
    You don't need an event triggered when user clicks.
    Edited by: Bulent Balci on Aug 3, 2010 4:42 PM

  • Wait step in ccBPM

    hello everybody,
    i have a BPM process in my PI with a fork function and 2 braches.
    I would like that second brache wait 5 second before starting .
    I tried to use wait step but i see possible values are minutes, hours, days, months, year....
    why no seconds??
    Can i set value 0,1 minutes for wait 6 seconds??
    thanks in advance
    alex

    Hi Alex,
    minimum is one minute.
    BPM is using a job to trigger a message after a wait step, so it can be in reality 1 min and 59 sec.
    But only if you customize that in
    SXMB_ADM_BPE / Automatic BPM Customizing / Maintain Runtime Environment /Schedule Background Job for Workflow Deadline Monitoring
    Set interval to 1 minute
    Regard,
    Udo

Maybe you are looking for