Defining Object Types 

Before you can use your new basic type in 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.

Procedure

  1. Call the Workflow area menu from the initial R/3 screen by selecting Tools ® SAP Business Workflow ® Development Then select Business Object Builder.
  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 program will be generated): The program describes the object type (attributes and methods) in the ABAP language.
  4. Select and save the object.
  5. Choose .
  6. Before you can use the object type, the release status must at least be set to "implemented". You can assign this status from the initial screen of the Business Object Builder by selecting Object type ® Change release status to ® Implemented.

See also: BC ® Business Management ® SAP Business Workflow ® Maintaining Object Types.

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.

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

Object type

IDOCTEST

Object name

IDOCTEST

Name

Test IDoc

Short description

Test error handling TESTER01

Application

V (Sales and Distribution)