Show TOC

Defining Object TypesLocate this document in the navigation structure

Use

Before you can use your new basic type in the workflow (optional in inbound processing but required in error handling), you should create a corresponding object type in the Business Object Repository (BOR). The object type inherits all of the attributes, methods and events of the super type IDOCAPPL. You could also take this object type and only define different methods for exception handling, for example. According to the SAP conventions, however, each message type also corresponds to a BOR object type.

Process
  1. Choose Start of the navigation path Tools Next navigation step Business Workflow Next navigation step Development Next navigation step Definition Tools Next navigation step Business Object Builder End of the navigation path.

  2. Create the new object type as a subtype of IDOCAPPL. You should therefore enter IDOCAPPL in the field and choose Subtype.

  3. Enter the attributes for the new object type (name, short description and so on) and a new program name the implementation program. The implementation program is partly generated and describes the attributes and methods of the object type.

  4. Choose and save the object.

  5. Choose .

  6. Before you can use the object type, the release status must at least be set to implemented. On the initial screen of the Business Object Builder, choose Start of the navigation path Object type Next navigation step Change release status to Next navigation step Implemented End of the navigation path.

Result

You have defined an object type for your new IDoc.

The two events inputErrorOccurred and inputFinished, which you have assigned to this object type, are important for exception handling.

Example

In the example, your object type has the following attributes:

Object type

IDOCTEST

Object name

IDOCTEST

Name

Test IDoc

Description

Test error handling TESTER01

Application

V (Sales and Distribution)

More Information

For more information, see Maintenance of Object Types (BOR).