Developing a Simple Application Using SAP Business Workflow

Developing a Simple Application Using SAP Business Workflow

By

©Copyright 2000 SAPTechnical.COM. All rights reserved.

from the initial request to the creation of the purchase order A Workflow Instance. For example. using the testing tools. Let us create a simple workflow and start the workflow directly. including all the containers you need for getting the data from one step to another. You define which data from this event needs to be passed to the workflow via binding. a newly created initial workflow definition appears or else last created workflow appears. requisitioner and a member of the purchasing department. Agents are the people who process the tasks (via the work items). which have to be performed either by people or automatically by the software. In such ©Copyright 2000 SAPTechnical.Developing a Simple Application Using SAP Business Workflow Developing a simple application using steps "User Decision" and "Mail" Prepared by Suresh Kumar Parvathaneni Basic terminology used in the workflow: The workflow definition is the set of rules that determine the path that the process takes. . is a single workflow run. which is often simply referred to as the workflow. When the workflow builder is called for the first time. when a material is created or when a new purchase requisition arrives). the processing of a single purchase requisition for computers.COM. All rights reserved. displaying and processing a workflow is the workflow builder (Transaction SWDD). check that there are no spare computers available in the company. Call transaction SWDD. Generally. For example. However you can also start any workflow directly. For example. Binding is the set of rules that define which data is passed to which part of the process. Building a simple workflow application The central tool for creating. Container is the place where all the data used in the workflow is collected. how a purchase requisition is processed. to check for the availability of the spare computers in the company. For example. For example. most of the workflows are started by an event (for example. The Tasks are the steps in the process. A Work item is the task instance that is performed as a single workflow step. Within the workflow builder you can create all components of a workflow.

Now select the undefined step and select Create step or double click the undefined step. The initial workflow screen has the following parts: a. indicated by . The area in which you insert the new workflow definition is indicated by . The end of the workflow definition. b. indicated by . . All rights reserved. ©Copyright 2000 SAPTechnical. c. The start of the workflow definition. Now among the different steps chose the User Decision by double clicking on it.COM. The following screen appears.Developing a Simple Application Using SAP Business Workflow cases you can opt to create a new workflow by pressing “Create New Workflow”(ctrl + shft + F5).

the outcome values default to the Decision texts but you can specify your own names. if desired..COM. Since this is just a beginning. agent assignment rule or organization object (job.). we would hardcode the user name. Select the User from the drop down list and enter the user name to whom the work item needs to be sent. Now we need to select the agent. In general. this type of agent assignment is not done. Agent is the person to whom the work item needs to be sent. . All rights reserved.Developing a Simple Application Using SAP Business Workflow Now enter the title for the user decision “ Please make a decision”. Also enter the decision texts as Approve and Reject. position etc. On pressing enter. ©Copyright 2000 SAPTechnical. Agents are generally assigned using the expression.

All rights reserved.Developing a Simple Application Using SAP Business Workflow Now select Transfer and to graphic button. .COM. Following screen appears: ©Copyright 2000 SAPTechnical.

All rights reserved. Select Create. Different options on shown on the context menu. Now select the line “Approve” and do a right click.COM. ©Copyright 2000 SAPTechnical.Developing a Simple Application Using SAP Business Workflow Now we need to include a mail step to be sent to the requestor. Now enter the subject and the body of the message for the mail to be sent. .

COM. Our mail is intended for the persons who triggered this workflow. . Now select the step “Send Mail” from the list. Since this is a test object. But we wouldn’t be using this variable in real time scenarios. ©Copyright 2000 SAPTechnical. &_WF_INITIATOR& contains the value who executed the workflow.Developing a Simple Application Using SAP Business Workflow Do not change the recipients. we are using &_WF_INITIATOR&. We would discuss about this in the coming documents. All rights reserved.

Follow the steps 5 through 9 for the step “Reject”.Developing a Simple Application Using SAP Business Workflow Now select Transfer and to graphic button.COM. Now enter the package as local object and press enter. The following screen appears: ©Copyright 2000 SAPTechnical. All rights reserved. . Enter the same and press enter. A popup appears requesting for the abbreviation and the name for this task.

Developing a Simple Application Using SAP Business Workflow Press SAVE to save the workflow application. a number is assigned to your workflow starting with WS. To execute the workflow. The following screen appears. All rights reserved. ©Copyright 2000 SAPTechnical. You need to enter an abbreviation and name for your workflow as shown below. Test the workflow by choosing Test.COM. After saving. . You can change any of these at any later point. as shown below. activate it by choosing the activate button.

Now the recipient would receive a work item in his SAP® inbox (Transaction SBWP). All rights reserved.COM.Developing a Simple Application Using SAP Business Workflow Now choose Execute to start the workflow. . ©Copyright 2000 SAPTechnical.

.COM. All rights reserved. The following screen appears: ©Copyright 2000 SAPTechnical.Developing a Simple Application Using SAP Business Workflow Now execute the work item by pressing “Execute”.

Now suppose that the recipient has chosen one of the first options. All rights reserved.Developing a Simple Application Using SAP Business Workflow Choose one among Approve or Reject as part of the user decision. ©Copyright 2000 SAPTechnical.COM. He can select the third option to retain the work item in his inbox and make the decision later. . Now a mail would be sent to the requestor with the status of his request.

Sign up to vote on this title
UsefulNot useful