Show TOC

Code List UsageLocate this document in the navigation structure

The Code List GenIL model IWCLST can be used to create a GSDO type corresponding to the code for which code list needs to be fetched.

Example

In order to fetch code list for document types, a GSDO type (e.g. DOCTYPE) needs to be created. The corresponding GSI implementation must be maintained against the appropriate software versions. Additionally, the customizing entries should be maintained for the Code Type. Refer to the Creating a GSDO Type, Creating GSDO Groups, Assigning System Alias and Maintaining Code Type sections for more details.

Since the Code List model is generic model, a SAP GW Data Model and SAP GW Consumption Model should be created for each code list.

Example

The SAP GW Data Model DOCTYPE_0001_UC can be created for document types, referring to the GSDO type DOCTYPE. Once the SAP GW Data Model is generated, the corresponding SAP GW Consumption Model needs to be generated. An example of SAP GW Consumption Model for Document types would be DOCTYPE_0001.

Creating a SAP GW Data Model based on the GSDO type
  1. Logon to the SAP Gateway system.

  2. Open transaction se80 to view the Object Navigator.

  3. Choose SAP GW Data Model in the Data Object Hierarchy drop-down list.

  4. Enter a Name for the SAP GW Data Model.

    The SAP GW Data Model name should follow the "<name>_<version>_UC" convention. The version must be 4 characters long with leading zeros.

    Example

    <namespace>DOCTYPE_0001_UC

  5. Click Display and choose Yes in the Create Object window.

  6. Specify the GSDO Type in the Create Data Model window using the view cluster. This indicates the GSDO type on which the SAP GW Data Model is based.

  7. Click Continue.

  8. Enter the Name in the Create Model Entry window and Save.

  9. Expand the new SAP GW Data Model Start of the navigation path Object Structure End of the navigation path in the Object Name region.

  10. Set Labels and External Names for all the elements under the Object Structure.

Creating a SAP GW Consumption Model for the SAP GW Data Model
  1. Logon to the SAP Gateway system.

  2. Open transaction se80 to view the Object Navigator.

  3. Choose SAP GW Consumption Model in the Data Object Hierarchy drop-down list.

  4. In the Create Consumption Model enter a Service Technical Name for the SAP GW Consumption Model.

    The name should follow the "<name>_<version>" convention. The version must be 4 characters long with leading zeros.

    Example

    DOCTYPE_0001

  5. Specify the Service External name, Version and the Description for the SAP GW Consumption Model.

  6. Save the SAP GW Consumption Model.

  7. Right click the SAP GW Consumption Model and choose Add SAP GW Data Model.

  8. Specify the SAP GW Data Model created in the Creating a SAP GW Data Model based on the GSDO type section above.

    The SAP GW Consumption Model is created.

  9. Double click on the SAP GW Consumption Model in the left hand side pane. The properties of the SAP GW Consumption Model will be displayed on the right hand side pane.

    The property URL of the SAP GW Consumption Model displayed in the URL field can be used to invoke the service and fetch the code list.

    The above steps should be performed for each code.