Wait step until approved

Hi,
I have a requirement like this.
There are 3 positions to approve the material.
A and B position need to approve the material(A and B positions can open  workitem and again keep workitem back to inbox with out approval) and then only the workitem need to go to C position..
For this how can i use wait step(what event i need to keep).To create event do i need write any code.
Pls Advise.
Thanks
Ashok

Ashu,
You can use a Loop control with all the User Decision Workitems & Agent Reterival methods in the same loop and set a condition at final release for completing the workflow.
I will try to explain the Purchase Requisition Approval with 3 level and you can replicate.
We are maintaining a custom table to maintain the Approvers (User names) with Release codes & Plant as Key fields and if the PR is in blocked status, it has 'B' value & if it is released changes to 'S'. So, i am using to validate the release code equal to 'B' until loop true.In the loop by passing the release code at that stage retrieving the approvers and passing them the workitem.
Hope this helps.
Thanks,
Sudhir.

Similar Messages

  • How to use the Validate step for Approve step

    Hi Experts,
       I have modeled a workflow with the steps start,process, validate, approve, process and stop.
    Process is set to owner and approve is set to some other user user1.
       My requirement is as follows :
    1) Approve the records by approver and then it should send it to the next step for further processing
    1.1)  if the approver did not approve the record it should send a error message until the record is approved. So it should not send it to the next step when record is not approved
    I am using a field called item status for approving and disapproving the records. My validation is based on this field only... Validation working fine when i tested it manually.
    But my issue is when am using this validate step in workflow design validation is getting triggered for all the users.as per my requirement only approver should get the error message.But in my scenario owner is getting the error message and approver is not getting any message.
    How can i use the validate step only for particular step say approve in workflow.
    Can anyone please help me out how should use validate step only for approve step...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 17, 2008 2:48 PM

    Hi ,
      I have set the validation property to "None".
      My design is as follows :
    start->process->validate->approve->stop.
      Owner is assigned to process step and approver is assigned to approve step.
    Now my problem is owner is also getting this error message along with the approver. AS per the design both process, approve users are getting the error message.
    As per my requirement only approver should get this prompt but not the owner.
    How can i restrict only for specifc user to get this message.
    Can anybody please advice how can restrict the owner to not get this error message...
    Thanks & Regards
    Sireesha.
    Edited by: sireesha esukapalli on Jun 24, 2008 2:18 PM

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

  • 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

  • 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

  • Editing a Wait Step in Campaign Canvas

    I have a wait step in Campaign Canvas to wait until a specific date - 5/5/15 at 7am because the email is supposed to go out at that time. If I want to change the send date, can I deactivate the program and then change that wait step to wait until 5/7/15, will there be any issues with people that are currently held in that step? I know in Program Builder it can be tricky editing the Hold steps if there are people currently in that step, but if I'm not waiting a specified number of days, but rather a specific date, should I be OK to go ahead and do that? Or should I just add another wait step after the wait until 5/5/15 instead of editing it?
    Thanks!

    Yes, you should be fine to de-activate, change the date and re-activate. If you don't trust it, you could always keep the wait step like it is, then pass them into a second wait step with the new date. That way you can even visually see if they move.
    Another way to verify is you can click on the green bubble in the corner of the wait step - then scroll all the way to the right, and on the contacts it will tell you when they are waiting until(sometimes you have to adjust the column sizes to be able to see it depending on browser)

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

  • 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

  • WS12300111 - stuck at wait step

    Hi All,
    We have cloned WS12300111 and have configured our bespoke W/F against a specific absence type.
    This is triggering correctly, the approval task is working fine, but then the workflow seems to be stopping at the wait stage for the status change.
    We have ran RPTARQPOST which has created the infotype 2001 records as well as updating the status in the workflow container to POSTED (from APPROVED) .... but this hasn't triggered the restart of the workflow at the WAIT step (even though one of the conditions of this wait is REQ.STATUS = POSTED).
    Any ideas??
    Many Thanks

    .... Sorry everyone. All sorted. Should have checked that SWWCOND was actually running!!

  • Reading the value of the "WaitForTarget" attribute of the Wait step

    I am trying to access the  "Step.WaitForTarget" attribute for the Wait step but can't find the correct syntax to use in an expression or the correct API calls to use in an action step.  I intend to use this in an expression as I am looking for a specific value.
    I have a object reference to the step that I am testing  (Locals.StepRef) and from that I have no issues reading the standard attributes like name, step type, preconditions, etc...
    How do we access the special additional properties of the wait step ?
    Solved!
    Go to Solution.

    Hey 4watt,
    One easy way to do this is to access the step reference as a PropertyObject and use GetValNumber to obtain the value. For example:
    Locals.StepRef.AsPropertyObject.GetValNumber("WaitForTarget",0)
    I tested this out and it does correctly return the value of WaitForTarget. Let us know if you need any more assistance!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Using WAIT step in Sync/Async Bridge

    I am using a sync/async bridge and placed a 1 minute wait step in between my async send and async reply.  When I test my process, the async reply comes in but then my 1 minute wait eventually times out and gives me an error.  Can someone guide me in fixing this BPM design (which steps to add and how)?
    http://webpages.charter.net/kpwendel/bpm_with_wait.jpg
    I would like it to stop waiting once the async reply comes in and not timeout.  If the 1 minute mark comes and a reply never came in, it would also be nice to send back an error message.
    Thanks!

    I pulled my WAIT task and had this scenario working a week ago.  I have not made any changes, but now my inbound replies to close the BPM and link up to the request are not "linking".  The request is eventually timing out even though the reply with a good correlation id comes in successfully.  Any suggestions?
    UPDATE:  I went through my objects in the IB:Config and resaved/activated them and now it is working.  Don't know what messed them up in the first place.
    Message was edited by: Keith Wendel

  • BPM wait step : RWB"To Be Delivered status": SXMB_MONI"Message being sent"

    Hi All,
    I have a BPM interface running fine since 1 year.
    In this BPM I have wait step for 5 minutes.
    But yesterday message  is stopped on wait and not proceeding ahead.
    I checked XML is good as per mapping. and in runtime wirk bench message is still in "To Be Delivered status"
    and in SXMB_MONI message column Outbound Status still showing "Message being sent" even after 12 hours.(wait is only 5 minutes). And below is the trace of last message.
    Please guide how to handle or restart this message. in SMQ1 & SMQ2 there are no queues showing:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
      <Trace level="1" type="T">--start determination of sender interface action</Trace>
      <Trace level="1" type="T">select interface Request_SI</Trace>
      <Trace level="1" type="T">select interface namespace https://www.XXXXX.com/YYYY</Trace>
      <Trace level="1" type="T">--start determination of receiver interface action</Trace>
      <Trace level="1" type="T">Loop 0000000001</Trace>
      <Trace level="1" type="T">select interface Request_SI</Trace>
      <Trace level="1" type="T">select interface namespace https://www.XXXXX.com/YYYY</Trace>
      <Trace level="1" type="T">--start determination of sender interface action</Trace>
      <Trace level="1" type="T">Hence set action to DEL</Trace>
      </SAP:Trace>
    Regards

    Solved, few BASIS jobs were inactive in transaction code "SWF_XI_CUSTOMIZING".

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

  • BPM Wait step!

    Friends,
    I have BPM which has the FOR-EACH Block in it. After the first message processed I have to wait for atleast 5 seconds to process the next message in FOR-EACH Block. The default BPM wait step has minimum of 1 Minute. Is there any other way we can make to wait for x seconds?
    Please let me know!
    Thanks,
    raj.

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

Maybe you are looking for

  • How to Delete songs safely from folder and not lose on MediaSou

    I had a bunch of music on Limewire that was in Mediasource..... I had changed all the names and titles so it was accurate, and then so Mediasource wouldnt think there was new songs(due to the same songs having different or cleaned up titles)? I delet

  • Macbook Pro - How to keep a low cycle count

    hey everyone, Basically I purchased a new macbook pro 11 days ago, and My current cycle count is also 11. I am eager to keep my cycle count down this time round as my last macbook's battery died at around the 700 mark (the laptop was around 15 months

  • Want to change network name.... and other.

    Ok, Hi all.... so new to Apple and just a novice computer user... just purchased a macbook pro and a airport extreme wireless N router ( finally after 5 years of dial up)... so my questions is/are... first my network is named with my first and last n

  • Adding Audio Consolidated Sceneline

    Seems each step forward in PE4 involves a step or two backward. I imported audio (a WAV file) to a newly-created audio track (Audio 4), and presto-change-o! my Sceneline contracted to a single frame that contains the video for the whole movie (3 mins

  • Targeting a specific frame on a specific movieclip

    Hi, I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont. The way the timeline is built is as so: content_mc > cont > (more mcs) > smallbutton This seems to be an issue from every answer I've tried so far since t