cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - Condition

Former Member
0 Kudos

I have created a Workflow for the BO - BUS1001006 (Material master-MM01).

Now This workflow is getting triggered whenever a new material is created. But I have to trigger this workflow only when a new material is created from a particular login.

Pls help...

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos
But I have to trigger this workflow only when a
 new material is created from a particular login.

Instead of trying to define in the basic datd of the workflow , I think its better you raise the Material created event only when SY_UNAME is equal to that login, for which you want to start the workflow.

I hop ein order to start a wrofklow when ever a material is created, you might be using a BADI or user exit where you maight have raise the event CReated by using any of the fm SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW, so here before calling the above fm try to validate the user and if it is true then only you execute the FM module other wise skip...

Answers (2)

Answers (2)

Former Member
0 Kudos

In SWU3, check workflow entry against Material BO.

In the details, You can add 'Check Function Module' where you can check the Username.

former_member554978
Active Contributor
0 Kudos

you can specify start conditions in SWDD->Basic data-> start events....after binding icon you have option for start conditions....

clcik that and specify EVT_CREATOR = 'XXXXXX'(login id)

save and activate the workflow...and check...

Former Member
0 Kudos

I have given start condition and activated the workflow. but still it's not working.

I have an doubt that after defining condition, is there any symbol will come..?

bcos after defining condition,if i place cursor in that place next to binding icon, it's showing that 'no start condition'.

but if i click on that, it's listing the condition which i have defined.

former_member554978
Active Contributor
0 Kudos

It should display Condition icon in the start events tab...

Activate it properly and check....

former_member193382
Active Contributor
0 Kudos

Hi,

Adding to Pavan's point, you need to delete the entry in SWEC for BUS1001006 --> Created.

This should make the job look easier.

Regards,

Raj