Different types of containers in SAP Workflow

2
5248

In SAP Workflow we have different types of components and each components will have their own containers to store the data at run time. The components of workflow are Workflow, Task, Event, Rule and Business Object method.

Each of these components have their own containers.So totally we have 5 types of containers in sap workflow. Inside the container we create variables to store the data of different type like SalesOrder#, NetAmount etc.

Containers consists of Elements and each element store the data that can be used to control the Workflow execution or can be forward to other steps in Workflow.

1. Workflow Container: It is like global container. You can create as many elements in the container.
To access the workflow container go to workflow builder SWDD and click on “Step Types That can be Inserted” under Navigation Area and choose Workflow Container.

Workflow Container
Workflow Container

Workflow Container

To create an element in the container double click “<Double Click to Create>“.You can also find some default elements available in workflow container like _WF_INITIATOR, _WF_PRIORITY etc..

Element in Workflow Container
Element in Workflow Container

2. Task Container : Task container can found at Task. These container elements are local  and only visible inside the task. you can display any task using tcode PFTC_DIS.

Task Container
Task Container

3. Rule Container: To create or access the elements in the rule container go to tcode PFAC_DIS.

Rule Container
Rule Container

4. Event Containers: The even container contains elements as event parameters. Event container has some default parameters like “”_EVT_Object””, “_EVT_Creator””.

5.Method Containers: Methods containers are nothing but method parameters in business object method which are created automatically when method is defined.

Before wrapping up this tutorial we go through the different options we have while creating the Elements in these containers.

We have 4 tabs when you are creating elements in the containers.They are
D.Type , Properties, Initial Valu and Change Data

D.Type – we define the data type of the element.We have a provision to choose an Business Object Type like BUS2035 etc. You can choose data dictionary structure fields and also direct data elements

Data Type of an Element
Data Type of a Container Element

Initial Value – here we can define the default value of the element

Initial Value of an Container Element
Initial Value of a Container Element

Properties – We can choose whether an element is Import, Export or Mandatory. you can see this feature like Function Modules Importing,Exporting parameters.

Properties of Container Element
Properties of Container Element

Change Data – It tells us about the who Lastly changed the element and when it was created.

Change Data of a Container Element
Change Data of a Container Element

  How data flows between these containers

Containers in SAP Workflow
Containers in SAP Workflow
  • Mark Rozengaus

    Great article, helped me a lot. Informative and short, thank you!

    Although I was surprised too see js code, that prevented right-click. I just wanted to copy tcodes from the text.
    And if I wanted to steal your content… Well, it took me whole 5 minute to install a Chrome extension to switch js off on this page. Pictures dissapeared, but I’m sure 5 minute work could fix that. I’m sorry, but this plag-in you installed can’t protect your content, just makes onest users’ life complicated.

    • TeamSAPLearners

      Hi Mark,

      Thanks for your feedback. I will check with our WordPress developer to resolve the right click issue.

      Thanks,
      Prakash