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

Similar Messages

  • 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

  • Need info on implimentation steps

    Hi
    I have already set up connectivity from ECC6 to CRM 5.0 and replicated materials,Customers,and Sales areas.
    Now iam suppose to start other configuring and customization activities for Marketing,Sales and Service scenarios with telesales(webclient).
    Please guied/inform  me step by step what are all configuration and customization activities(pre requisites) i have to set up to run the above scenarios.for example setup transction types,etc..
    early response would be rewarded
    Regards
    Vikram

    Hi Vikram,
    1)Make settings for Lead creation, Qualification by questionanaire,
    workflows for automatic opportunity creation,Pre-defined evaluation reports for leads.
    2)Make the necessary settings for Customer segmentation,Marketing Calender,Campaign Execution,Personalized Mails,ELM, Campaign Analysis.
    3)Setting for Tasks and Business Activities,Pat determination,Org Determination,
    Followup documents,Calender Maintenence, Groupware integration ect.
    4)In oppty Mgt setting  for Sales Cycle,Sales Assistant,Buying center Lead to oppty workflow etc..
    reward with points.
    regards,
    Muralidhar Prasad.C

  • Reg:Wait Step

    Dear all,
            I created a work flow which will trigger mail on creation of project in CJ20N.I got another requirement of delaying the mail for 1 day .So in this regard how can i use WAIT step i.e how to use WAIT step for delay purpose ?

    Hi Nandi,
    > I  created a work flow which will trigger mail on creation of project in CJ20N.I got another requirement of delaying the mail for 1 day .So in this regard how can i use WAIT step i.e how to use WAIT step for delay purpose ?
    No Need of using WAIT Step Type. Please follow what raj has said.
    @ Raj:- Your Solution seems to be Correct..!!
    Nandi, if you want to know about that WF Step Type...Follow this Link:-
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/brief%252boverview%252bof%252bworkflow%252bstep-types
    Regards,
    Kanika

  • 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

  • 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 leave workflow wait for 20 min

    hi friends
      I have designed a multilevel ESS leave workflow. After 1st approver the status need to change from approved to sent after that i am using a wait step with condition REQ.STATUS = SENT. This condition is met immediately but it still waits there nearly 15 to 20 min after that only it goes to the next approver. I dont no y its happening even after the condition is met. There is background job SWWCOND is directly related to this wait step. I have scheduled this job for every 3 min. But its long time to execute. If i remove the wait step its shows dump. How to minimize the time of execution of the wait step.
    Regards
    vijay

    Hello,
    Let me know if I've understood the problem correctly.
    You have a workflow with two wait steps.
    These wait steps rely on the running of SWWCOND
    to check if the conditions have been satisfied.
    The workflow takes 15-20 mins to pass the first condition, even
    when already true, but takes little or no time to pass the second
    condition.
    SWWCOND is scheduled to run every 3 mins and doesn't run for more
    than a couple of minutes.
    My questions:
    - Are you absolutely certain SWWCOND runs every 3 minutes?
      Do you see that happening in SM37 while your workflow is waiting?
    - You've said that the first condition is REQ.STATUS = SENT,
      what is the second condition?
    - Is REQ.STATUS a virtual attribute?
    - Where is REQ.STATUS set to SENT? Outside of the workflow?
      Does it do so without an error? Is a commit work done?
    regards
    Rick Bakker
    Hanabi Technology

  • 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

  • Wait for Event step in Workflow (Urgent).

    Hi,all!
    I am unable to implement the wait for event successfully in my workflow..
    Sceanrio: I have created a container element in the WF with of type a <b>BOR(ISUPARTNER)</b> whose <b>CREATED</b> event is being waited for in the workflow.
    Then in the <b>WAIT FOR EVENT</b> step in WF I m giving putting in the details  of the event..
    Then putting a send mail after this.
    Problem: Now my workflow is throwing error and the send mail task is not executed even after the said event is done in the system..
    Plz... suggest as to how to do it..
    Thanks,
    Sudipto

    <i>Now for this I m actually creating a container element of type BOR B in my workflow n putting a step WAIT FOR EVENT in which I m putting the CREATED event. For triggering the CREATED event no instance is required...</i>
    - Once again, Wait For Event step is only possible when the Object Key is available to the Workflow container when the flow reaches the event (are you waiting for a specific ISUPARTNER to be created or you don't care as long as some ISUPARTNER is created).
    <i>my event CREATED is not getting triggered automatically...</i>
    - First check if the standard system triggers the event for your object. If not explore different options for doing that.
    For your scenario, check if you can trigger a custom event BORB_Created for BORA when BORB is created and use BORA in the Wait step.
    Please post future Workflow questions in the Business Process Management forum.
    Cheers,
    Ramki Maley.
    Message was edited by: Ramki Maley
    Message was edited by: Ramki Maley

  • Wait for a few minutes before starting a backgroung step in workflow

    Dear All,
    I have a requirement where in I have to make sure the user has completed a particular workitem. The workitem is to open the transaction PP02. I cannot make it asynchronous and use a terminating event as I could not see any logical place where I could trigger the terminating event on SAVE.
    Now, I am trying to check if the database is updated on save of the transaction and before I do that I would want the workflow to wait for a few mintues.Is this approach correct?
    Is there any way I can make the workflow to wait for a few mintues before it starts the next backgound step?
    Please suggest.
    Best Regards
    Vikram

    I think it is better option to use the WAIT Step 
    as you said that until you save the data in the trabsaction you don't want to proceed further then, try like this
    Create a wait step and use the option wait for condition.
    define a element in the workflow of type char01( assume TEST) .
    Pass X to this element from the transaction when ever you save the data.
    and define the condition for the wait step in such a way that until the value of TEST = X do not proceed further.

  • SAP MDM Workflow: Wait Step

    Dear Experts,
    We have a scenario to send an email for the created/changed records periodically/daily, but a single mail should be sent for all the records to the users.
    And we think that we can make use of the Wait Step for this activity, but we are not getting the values for GM Time Field and Literal Time Field.
    Thanks And Regards
    Gaurav Kumar Sharma

    Hi Gaurav,
    You can also try this scenario:
    1.Create two ports one for outbound and other for inbound.
    2. Create a sydnication map which will trigger automatically at a specific time using MDSS which only synidcates the records which were created/updated on that day..... say material number
    3. Use PI to pick the syndicated file and drop it in a inbound port which was created earlier.
    4. Create a import map for importing the syndicated file use MDIS here, with a workflow for notification under configuration options.
    5. Workflow design will be start (Check out)->Notification->Stop (Roll back) which triggers on Record import.
    The above steps will help you to send notification of created and updated records in one mail using MDM.
    Let me know if you have any questions.
    regards
    Sowseel

  • Need info on Upgrade / Conversion Steps for PO from 11.0.3 to  11.5.10

    Any info on the steps required to do the Upgrade / Conversion for PO from 11.0.3 to 11.5.10 will be appreciated.
    Thanks

    Do you just want to convert PO's or all open items such as AP invoices etc.? If you are just talking PO information, there is an interface table available in 11.5.10 that was not available in 11.0.3 to convert PO information. Please look at the Open Interface Manual for Manufacturing to get details.

  • XI BPM Wait Step

    We are attempting to receive an IDoc into BPM and look at the begin date of a record (BEGDA) and based on the date in BEGDA send the record immediately (if system date <= today) or hold the record if BEGDA > system date.
    We have constructed an abstract interface for the IDoc and a Wait Until Specified Time, then send the message.
    The BPM does not send the message at all.
    The container field for BEGDA in BPM is populated with a string (20050524) in workflow monitoring. 
    There is no documentation we can find on what this BPM process is looking for i.e. will the xsd string inherent with IDoc's work in this BPM or do we need to transform the field into a date?
    Any help would be greatly appreciated.

    Hi David,
    I assume that field <b>BEGDA</b> is from the IDOC:
    - in the Wait Step - when you click on the <b>Date</b> property
    en <b>Expression editor</b> opens
    - then you choose your <b>BEGDA</b> field right?
    but
    below you see your <b>Xpath Expression</b> to this field and the "<b>Type</b>" is is set to <i>xsd:Date</i>? or <i>String</i>?
    if string try changing it to date because even if the <b>BEGDA</b> has Date type in the IDOC when you choose it in the <b>Expression editor</b> it becomes string but you can change it over there
    Have you checked it? 
    Regards,
    michal

  • Need help on Wait for Event.

    Hello all.
    I faced an issue with wait for event step,Which goes like this.
    For a workflow one of the fork branches there is a wait for event step(wait for manual release) . On development server when ever that event is fired (manual release) , the wait for event is capturing and completing the workflow ( This is the correct process).(PO release procedure)
    On production system, this event is not been caught(after manual release is done) and and the workflow is not  complete and still in progress. (even po is released manually) Which should not happen.
    So what all the things i need to verify in the production to fix this. I cannot simulate any kind of event on production ryt. so please suggest.
    please suggest.
    Cheers
    PRASAD.

    Hi Prasad
    i doubt that in Production the event trace would be on. Check SWELS to see if you see the "OFF" button (this means the trace is on). If it is On, check SWEL to see if any event is there for rejection. You will have to ask example of the PO and search using the Key (PO number).
    Also, check the workflow instance which is supposed to complete when the rejection happens (which did not complete). Check the technical WF log. Look for the Business Object container element which should hold the runtime instance. Check if it has a value and the same is bound from the event to the workflow in the wait for event step's binding. (_EVT_OBJECT to Workflow Container element of same type). This WF container element should have an instance and should not be empty for the wait step to work.
    Regards,
    Modak

  • 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

Maybe you are looking for