Extending the Gateway Metamodel

Use

A gateway can be defined by a set of attributes such as gateway ID, back-end adapter ID, and so on. It is similar to the concept of the Receiver Metamodel, which represents a set of attributes for the receiver. SAP provides a standard set of attributes for a gateway, which you can extend.

Extending a gateway metamodel means that you can add your own set of attributes for a gateway. You can also use these attributes (in addition to the standard set of attributes) to define gateway rules. For example, in the energy-supplier scenario (more information: Back-End Gateways ) , let us assume that each energy-supplier is responsible for a certain area: Company A provides energy to the Coastal area, and company B provides energy to the Central area. In the gateway metamodel, you can define a custom attribute called Area . You can use this attribute to define gateway-rules that routes a data object instance to a particular back-end system. On the mobile client, if the user creates a new order in the Coastal area and synchronizes the client with the DOE, the DOE routes the order to the back-end of supplier A.

Procedure

  1. Log on the SAP NetWeaver Application Server, and start transaction SODE_WB .

  2. In the Object field, select Gateway Meta Model .

  3. Enter * in the Search field.

  4. Click the Gateway Object with the secondary mouse button, and choose Create Custom Group .

    Enter the details of the custom group and then save the group.

  5. On the Attributes tab, enter the attributes and their properties.