2006 Jul 28 12:05 PM
Hi,
I have a workflow with many sub workflows. In this workflow, one particular sub workflow should be triggered repeatedly say every week until some validity date.
For ex: If a sales order triggers the main workflow and the sales order has a BEGDA and ENDDA, then one particular subworkflow should be triggered repeatedly every week(This duration can change and should be picked up from a customizing table) until the system date becomes ENDDA.
Any ideas appreciated.
Regards,
Srini.
2006 Jul 28 12:24 PM
Hi Srinivasa,
U can use a LOOP step to carry out this functionality.
1. Add a initial step to Triiger the subworkflow.
2. Then, create a LOOP(Until) step.
Condition for that can be the (sy-datum EQ ENDDA).
Inside the loop u have to add a step which will add 7 to the sy-datum(Current date) and store the result date in a container.
OR else u can omit this step and directly mention the waiting time in next step like this.
Refer date/time : Work Item creation
Date : <Current date>.
Time : ---
+ 7 Days
3. Next to this step u will have ACTIVITY step which wiil just wait till the resultant date
In this activity step, add this date in the REQUESTED START tab.
Refer date/time : Work Item creation
Date : <Result date>.
4. After this add an ACTIVITY which will trigger the same subworkflow.
5. After this the loop will check the condition and repeat the process.
Rgds,
Prakash
Message was edited by: Prakashsingh Mehra
Message was edited by: Prakashsingh Mehra
Hi Srinivasa,
U can use a LOOP step to carry out this functionality.
1. Add a initial step to Triiger the subworkflow.
2. Then, create a LOOP(Until) step.
Condition for that can be the (sy-datum EQ ENDDA).
Inside the loop u have to add a step which will add 7 to the sy-datum(Current date) and store the result date in a container.
OR else u can omit this step and directly mention the waiting time in next step like this.
Refer date/time : Work Item creation
Date : <Current date>.
Time : ---
+ 7 Days
3. Next to this step u will have ACTIVITY step which wiil just wait till the resultant date
In this activity step, add this date in the REQUESTED START tab.
Refer date/time : Work Item creation
Date : <Result date>.
4. After this add an ACTIVITY which will trigger the same subworkflow.
5. After this the loop will check the condition and repeat the process.
Rgds,
Prakash
Message was edited by: Prakashsingh Mehra
Message was edited by: Prakashsingh Mehra
2006 Jul 28 12:15 PM
2006 Jul 28 12:24 PM
Hi Srinivasa,
U can use a LOOP step to carry out this functionality.
1. Add a initial step to Triiger the subworkflow.
2. Then, create a LOOP(Until) step.
Condition for that can be the (sy-datum EQ ENDDA).
Inside the loop u have to add a step which will add 7 to the sy-datum(Current date) and store the result date in a container.
OR else u can omit this step and directly mention the waiting time in next step like this.
Refer date/time : Work Item creation
Date : <Current date>.
Time : ---
+ 7 Days
3. Next to this step u will have ACTIVITY step which wiil just wait till the resultant date
In this activity step, add this date in the REQUESTED START tab.
Refer date/time : Work Item creation
Date : <Result date>.
4. After this add an ACTIVITY which will trigger the same subworkflow.
5. After this the loop will check the condition and repeat the process.
Rgds,
Prakash
Message was edited by: Prakashsingh Mehra
Message was edited by: Prakashsingh Mehra
2009 Mar 25 10:54 AM
Could you tell me what version of SAP you are on to do this as we are unable to do this in version 4.7?
Regards
Larissa
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |