转 Trigger a workflow to send an email whenever a material is created

Triggering workflow to send an email whenever a material is created

By Chandrasekhar V, EDS, from link.

This example focuses on triggering a workflow whenever a material is created using MM01. 
TCode SWDD(Workflow builder) -> Click on “Create” button

转 Trigger a workflow to send an email whenever a material is created 

Drag and drop the “User decision” step. Enter the following details

转 Trigger a workflow to send an email whenever a material is created

Select the agents “Workflow initiator (expression)” and click on “Transfer and to graphic” (tick mark button).

Following screen appears.

转 Trigger a workflow to send an email whenever a material is created

Drag and drop “Activity” step into branch YES,

Create new task click on the “Display task” -> Create task

转 Trigger a workflow to send an email whenever a material is created

转 Trigger a workflow to send an email whenever a material is created

Enter the “work item text” in the same screen as follows: 

转 Trigger a workflow to send an email whenever a material is created

To get “&_WI_OBJECT_ID.MATERIAL&” in above screen, click “insert variable” icon (above that yellow icon).

Save in local package.

Go to “Additional data” menu “Agent assignments” -> “Maintain”. 

 

Select it and click on “Attributes” from application toolbar and select “General task” radio button, click “Transfer”

Click on back 2 times.
转 Trigger a workflow to send an email whenever a material is created

Click on “continue”.
转 Trigger a workflow to send an email whenever a material is created

Select “Workflow initiator” as Agents and click on “Transfer and to graphic” button

转 Trigger a workflow to send an email whenever a material is created

To create the workflow container

转 Trigger a workflow to send an email whenever a material is created

Select “workflow container” and double click on “BUS1001006” in the list displayed.

转 Trigger a workflow to send an email whenever a material is created

Click on properties tab and select the import check box and click on ok

转 Trigger a workflow to send an email whenever a material is created

Again open user decision, which was already created, and make changes as bellow

In Parameter1 click F4 and select Material number as bellow

转 Trigger a workflow to send an email whenever a material is created

Click on “transfer and to graphic”

Right click on branch “No” to send a mail

转 Trigger a workflow to send an email whenever a material is created

转 Trigger a workflow to send an email whenever a material is created

Double click on “send mail”.

Enter the following details as in the below screen

转 Trigger a workflow to send an email whenever a material is created

Click on “Transfer and to graphic”

转 Trigger a workflow to send an email whenever a material is created

Save in a local package

Click on the “Basic data(ctrl+F8)” from application toolbar and select “Start events” tab

转 Trigger a workflow to send an email whenever a material is created

Enter the details as in bellow screen

转 Trigger a workflow to send an email whenever a material is created

Click on “Binding” 

转 Trigger a workflow to send an email whenever a material is created

Click on ok

Save and come back to graphic, the following screen will appear

转 Trigger a workflow to send an email whenever a material is created 

Save, activate and execute.

转 Trigger a workflow to send an email whenever a material is created

Go to TCode “MM01” to create the material 

Enter the details in MM01 and click on “Select view” -> “Basic data1”

Enter the details in Second screen as below: 

转 Trigger a workflow to send an email whenever a material is created

Save and come back.

Check your inbox by using TCode SBWP.  
转 Trigger a workflow to send an email whenever a material is created

Double click on “Work item executable”

转 Trigger a workflow to send an email whenever a material is created

Click yes or no and check your inbox again

 

你可能感兴趣的:(workflow)