3. Register your Service in the Backend System Locate this document in the navigation structure

 

This activity consists of three steps which are carried out in the implementation guide (IMG).

In transaction SPRO open the SAP Reference IMG and navigate to   SAP NetWeaver   SAP NetWeaver Gateway Business Suite Enablement   OData Channel   Register Object Models and their Groups  .

3.1 Register your Model Definition in the Backend System

  1. Click on the Activity icon.

    The view Define Object Model: Overview displays.

  2. Choose New Entries.

  3. Enter a Technical Model Name. In this example we choose Z_OM_DOC_FLIGHT_MODEL.

  4. Specify a Model Version.

    Note Note

    At present only version 0001 is supported.

    End of the note.
  5. Enter the class name of the model definition class you have created in step 1.

  6. Enter an explanatory text as Description for your model definition model.

  7. Save your settings.

3.2 Define your Model Group in the Backend System

  1. In the dialog structure switch to Define Object Model Group and choose New Entries.

  2. Enter Z_SG_DOC_FLIGHT_MODEL as Internal Service Name

    , 0001 as Internal Service Version, ZDOC_FLIGHT as External Name, the class you created in step 2 as Metadata Class Name, and an explanatory text in Description.

  3. Save your settings.

3.3 Assign your Data Object to the Model Group in the Backend System

  1. Select your new Object Model group and in the dialog structure switch to Assign Object Models to Object Model Groups.

  2. Choose New Entries and enter Z_OM_DOC_FLIGHT_MODEL as Technical Model Name and 0001 as Model Version.

  3. Save your settings.

Result

You have now registered your service in the backend system.

Example (Example)

   

Continue with 4. Activate your Service in the SAP NetWeaver Gateway System.