---
title: "转 Creating a container element and using it in the step \"Mail\"."
author: "evangxli"
date: "2013-05-02T13:52:48Z"
tags: ["container", "容器", "工作流"]
categories: ["行业应用"]
slug: "creating-a-container-element-and-using-it-in-the-step-mail"
draft: false
lastmod: "2013-05-02T14:08:33Z"
id: 1858506
url: "https://sapabap.iteye.com/blog/1858506"
---

From [link](http://www.saptechnical.com).

By Suresh Kumar Parvathaneni

This document details about creation of a container element in workflow and using it in the step "Mail".

**Pre-requisites**:

It is assumed that the reader of this Tutorial is aware of creating a workflow definition with the step “Mail”. If not, please go through the document on creating the same available, by [clicking here](/admin/blogs/1858498). 

**Steps**:   
1.      Create a workflow definition using the transaction SWDD.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl1.jpg)

2.      Let’s create a container element for Carrier id. Click on the “Workflow Container” on the left side of the screen (as shown in the screenshot below):

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl2.jpg)

 

3.      Now double-click on “Double-Click to Create”

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl3.jpg)

 

4.      Enter the details pertaining to CARRID here.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl4.jpg)

 

5.      Click on tab “Properties” and select “Import”.

![](http://dl.iteye.com/upload/attachment/0083/9332/fbaf4d31-4430-3d70-9f30-a686e5a0e105.png)  
  

6.      Click on “Confirm (Enter)”.

 

7.      Now the element created could be seen on the left side, below the “Workflow Container”.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl6.jpg)

 

1.      Create a “Mail” step by double-clicking on “Undefined” step in the workflow.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl7.jpg)

 

2.      Enter the recipient details in the “Recipients” box.

 

3.      In the subject line, enter “Carrid value entered is:” and click on “Insert Expression”.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl8.jpg)

 

4.       Select the element “Carrid” from the list.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl9.jpg)

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl10.jpg)

 

5.      Similarly enter the content in the “Body” area.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl11.jpg)

 

6.      Save and activate the application. 

 

**Testing the Workflow application**:

7.      Test the workflow by clicking F8.

![](http://www.saptechnical.com/Tutorials/Workflow/WorkflowTutorial2/Workfl12.jpg)

 

8.      Enter the value of the Carrid as shown above and press execute.

 

9.      A mail would be sent to the recipient mentioned earlier with the carrid value entered.