Start of Content Area

Procedure documentation Creating a Subtype  Locate the document in its SAP Library structure

Prerequisites

There is an object type in the system, which you want to extend without modifying it directly.

Note

Creating a subtype and then editing it is the only way to extend an object type supplied by SAP.

Procedure

  1. Choose Tools ® Business Workflow ® Development ® Definition tools ® Business Object Builder.
  2. This displays the screen Business Object Builder: Initial Screen.

  3. Select This graphic is explained in the accompanying text Create.
  4. The Create Object Type dialog box appears.

  5. Maintain the fields Object type, Object name, Name and Description. When doing so, bear in mind the general naming conventions for object types. In the field Supertype, enter the ID of the object type for which you want to create a subtype.
  6. Specify a new program, which will include the implementation of the object type and assign the code letter of your application (usually Y or Z).
  7. Select This graphic is explained in the accompanying text.
  8. The takes you to the screen Change Object Type <object type>: The new object type automatically inherits all the key fields, methods, attributes and events defined for the supertype.

  9. Add your own events, methods or attributes. These extensions must always begin with Y or Z. Edit the existing object type components if applicable.

Note

The object type has to be generated after editing.