Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow design: Repeatedly triggering subworkflow at some interval

srinivasa_raghavachar
Product and Topic Expert
Product and Topic Expert
0 Likes
732

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
664

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,

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.

3 REPLIES 3
Read only

Former Member
0 Likes
664

Hi Srinivasa

Refer to the following link

Regards

Inder

Read only

Former Member
0 Likes
665

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

Read only

0 Likes
664

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