Show TOC

Creating Context ObjectsLocate this document in the navigation structure

Prerequisites

Familiarize yourself with the concepts of context objects.

More information: Context Objects

Procedure

  1. Create a context object in the ES Builder.

    More information: Creating an Object

  2. Select a built-in XSD data type for your context object by using the Reference Type list box and save it.
  3. In the ES Repository, open the (service) interface to which you want to assign a context object. You can only assign context objects to the request message of interfaces in the same or in a superordinate software component version.
  4. To assign context objects, proceed as follows:
    • Imported RFCs or IDocs:

      To assign the context object to a request message field, enter it in the Context Object column by using the input help. To undo the assignment of a context object, call the function list box in the input help for the field and choose Reset .

    • Service Interfaces:

      Select the relevant operation for assigning. Before you can assign a context object, a message schema must be assigned to the request message. If this is the case, select the name of the message and choose Context Objects . The ES Builder then displays the structure of the request message to enable you to assign a context object to the individual fields. To undo the assignment of a context object, call the function list box in the input help for the field and choose Delete .

    Note

    By assigning an operation a new message you can render an existing context object assignment invalid (because the relevant XPath expression no longer exists). To delete invalid assignments in all operations of the service interface, choose Check and Correct Context Object Assignments . The check does not check whether the context objects you enter actually exist.

  5. Activate your changes.

    Once you have activated your changes, you can use the context object in an integration process or to configure the field that you have assigned the context object to.

    More information: Expression Editor

    You can also use a context object in multiple (service) interfaces or operations.

Results

Once you have created a context object in the ES Repository and assigned a request message to the field, you can use it in the following situations:

  • During receiver determination for a message, depending on its content.

  • During the processing of process steps in integration processes , depending on the content of a message.