Select language:

Process documentation Tutorial: Workflow Programming 


This tutorial provides a step-by-step introduction to defining and implementing object types in the Business Object Repository (BOR). You should carry out these steps in the system yourself.

The tutorial is intended for both customers and consultants who want to modify the scenarios provided by SAP. It is also designed for developers within SAP who want to connect their application component to the workflow functionality.

This tutorial is not designed to replace the documentation on the Business Object Repository, which you can consult for further details. For further information, refer to

Business Object Repository in the SAP Business Workflow documentation.


To be able to work through this tutorial, you must be familiar with the basic ABAP programming principles.

You should have initial practical experience using SAP Business Workflow and have worked through the

Tutorial: Workflow Modeling.

Process Flow

The individual sections of this tutorial provide a step-by-step introduction to working with the Business Object Builder, creating, maintaining and implementing object types, and also point out the aspects that require consideration.

These steps are explained using the example of the object type definition sales order. If you do not yet have any experience of object types, carry out these examples directly in the system. In particular, use the options given to test "your" object type to see whether your work has been successful.

If you want to maintain your own object types in the Business Object Repository, go through this tutorial using the individual sections as a type of "check list". If you use this tutorial to create your own object types, knowledge of the application environment of the object type to be maintained is absolutely essential. In particular, you should know in which tables the data (attributes) of the object type is stored and which transactions or function modules are used to call the main operations (methods) for objects of this type.

Tutorial Structure

The tutorial assumes that no object type sales order exists in the system or is to be maintained in the Business Object Repository. (However, this object type does already exist. Do not let this irritate you.) Read

Unit 1: Creating Object Types in the Business Object Repository for information on how to create object types.

In the following units of this tutorial, you extend this object type by adding selected attributes, methods and events:




Unit 2: Creating Database Field Attributes


Unit 3: Creating Object Database Field Attributes


Unit 4: Creating Virtual Attributes


Unit 5: Creating Object Virtual Attributes


Unit 6: Creating Multiline Virtual Attributes




Unit 7: Creating the Method Edit Without Parameters


Unit 8: Creating the ExistenceCheck Without Parameters


Unit 9: Creating the Display Method Without Parameters


Unit 10: Creating a Method with Parameters




Unit 11: Events and Their Creation


In production operation, you will often encounter situations in which the object type to be maintained already exists in the Business Object Repository and is (only) to be extended, because you think customer-specific extensions or adaptations are required in particular areas.

For situations of this kind, refer to

Extending Object Types: Inheritance and Delegation to discover how to derive a "new" object type from an existing object type as a subtype, which can then be extended. Creating an object type as a sub-type "saves" you maintaining the basic data and creating key fields. The further maintenance of this object type (creating methods, attributes, and events) is exactly the same as for maintaining a completely new object type.

Implementation program for example

Every object type defined in the Business Object Repository has one

implementation program containing the implementation of the key fields, methods and attributes of this object type.

The implementation program of the object type created in this example is listed in the

Appendix: Implementation Program for Object Type Z_BUS2032 of this tutorial. Reference is made in the individual units of this tutorial to the appropriate lines of this program.

Was this page helpful to you?

Related Content

The following content is not part of SAP product documentation. For more information, see the following disclaimer Information published on SAP site .

Experts can share their tips in the "Discuss this page" section below.