cancel
Showing results for 
Search instead for 
Did you mean: 

Same standard BO and event for different workflows

Former Member
0 Kudos

Hi All,

I am working on Profit center master MDM workflow and Cost center master MDM workflow.

SAP has provided solution for both these workflow with same templete WS75700040 and BO used is BUS2250 event CREATE.

Now am supposed to create different templete for Profit center and Cost center master workflow.

I have created distinct templete for both of these WF and used same bo BUS2250 event CREATE for triggering both workflow from standard transaction.

My query is how can I ensure only Profit center workflow is triggered when profit center request is created and Cost center workflow not triggered.

Ie bothworkflows not triggered simultaneously.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please view the below link for Check Function Module.

http://www.genipole.com/tutorials/2-using-check-function-module-in-workflow/

To ensure only Profit center workflow is triggered when profit center request is created and Cost center workflow not triggered.

you need to use Check Fucntion Module and in that FM you have to pass the event container where all the with that object will be there to identify seperately.

Thanks and regards,

SNJY

Answers (1)

Answers (1)

bpawanchand
Active Contributor
0 Kudos

Hi,

You have two options

1. Make use of start conditions in the basic data of the workflow template. You can define this start condition where you mention the Start events of the workflow. Or make use of transaction SWD_COND transaction to define a start condition for a workflow

2. Make use of the Check function module the primary use of this function module is to check the event and raise the exception so that you stop the workflow before gogin into the start events of the workflow.

Search in the function group SWE_TEMPALTE you can find the sample check function module this check function module needs to be included in the SWE2 event linkage transaction.

Regards

Pavan

Edited by: Pavan Bhamidipati on Nov 21, 2011 5:57 PM