Extending the Gateway Metamodel 
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.
Log on the SAP NetWeaver Application Server, and start transaction SODE_WB.
In the Object field, select Gateway Meta Model.
Note
The Object field has the default value of Software Component Version selected. You can additionally choose the Receiver Meta Model and the Gateway Meta Model objects.
Enter * in the Search field.
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.
On the Attributes tab, enter the attributes and their properties.
Note
To view the list of standard attributes, you must double-click the Gateway object and choose the Standard Attributes tab.