You can create a data model from an existing Generic Service Data Object (GSDO) type. You may wish to do this, for example, if you have a working GenIL model available, together with a working implementation for it. This option enables you to reuse the GenIL structure to create a new Public Solution (PS) data model. You then have to write your own code based on the existing GenIL implementation. When the new SAP Gateway PS data model is created, it reflects the structure of the original GenIL model (by referencing the corresponding GSDO type) and you can change it if required. After you have created the data model using this option, you must implement ABAP code in order to make it work. New customizing is also necessary to bind the implementation to the data model.
If you are using the OData Channel, you cannot create a data model from an existing GSDO type.
Start transaction SE80.
Select SAP GW Data Model from the dropdown list.
Enter a name for the data model you want to create, adhering to the naming convention <name><version><type>, and press Enter
A dialog box informs you that this object does not exist and asks if you wish to create it.
Select Yes and the Create Data Model dialog box displays.
Select the GSDO Type button and enter the Name of the GSDO type from which you want to create the data model. Input help is available to help you search.
Select the green checkmark to continue.
Add the name of the relevant package in the next dialog box and press Save, or press Local Object as appropriate.
The data model is created and displays in the tree view. You can now define the data model's elements; see Properties Editor for more information. If you want to add annotations, you must first create a User Centric (UC) data model (see Deriving a Data Model from an Existing Data Model), which you can then annotate (see Annotation Editor for details).