Show TOC

Redefining Services from External Framework (SPI, BW Query, GenIL)Locate this document in the navigation structure

Use

The Service Builder allows you to create a service and model from different external frameworks (integration topics) and redefine the service and model without having to navigate to a different transaction. This function comprises three steps:

  • Specify the parameters for the selected external framework

  • Generate the service

  • Redefine the service

Redefining Services

The Service Builder allows you to redefine services from the following external frameworks:

  • Service Provider Interface (SPI)

  • SAP Business Information Warehouse (BW)

  • Generic Interaction Layer (GenIL)

A separate plug-in for each framework provides a wizard to create services starting from framework-specific data. Since these plug-ins belong to different software components they might not be available in every system.

Note

Based on the component installed in your system, the relevant context menu is displayed.

  • If software component IW_SPI is installed in your system, Create from SPI is displayed in the context menu.

  • If software component IW_GIL is installed in your system, Create from GenIL is displayed in the context menu.

  • If software component IW_BEP is installed in your system, BW Query Service is displayed in the context menu.

To redefine services from an external framework, proceed as follows:

  1. Logon to the SAP Business Suite backend system.

  2. Open transaction SEGW.

    The SAP Gateway Service Builder opens.

  3. Create an empty project. For more information, see Creating a Service Builder Project.

  4. Right-click the Data Model folder and select Start of the navigation path Redefine Next navigation step SPI Service, BW Query Service or GenIL Service End of the navigation path

    Depending on the external framework you select, the appropriate framework-specific screen is displayed.

    • Service Generator for SPI Service

      1. Wizard Step 1 of 3: Redefine Service screen opens for the Start of the navigation path Redefine  Next navigation step SPI Service End of the navigation path

      2. Enter the RFC Destination of the SPI system.

        Alternatively, you can use the input help available for this field.

      3. Enter the Application Building Block ID for which you want to generate the SAP Gateway service. For example, EAMS_OBJK. Alternatively, you can use the input help available for this field.

      4. Select the Generate Metadata Specific to Application to generate metadata specifically for this application. If this indicator is set, DEFINE Method of Generated Model Provider Class is redefined and the model is defined in this generated method. Otherwise, the generic metadata provisioning options are used to obtain the metadata.

      5. Click Next.

    • Service Generator for BW Query Service

      1. Wizard Step 1 of 3: Redefine Service—> Service Generator for BW Query Service screen opens for Redefine Start of the navigation path BW Query Service End of the navigation path.

      2. Enter the Access Type, RFC Destination, Catalog Name, and Query Name.

        Alternatively, use the input help available for these fields.

      3. Click Next.

    • Service Generator for GenIL Service

      1. Wizard Step 1 of 3: Redefine Service—> Service Generator for GenIL Service screen opens.

      2. Enter the GenIL Component for the service you wish to create. Alternatively, use the input help available for this field.

      3. Click Next.

  5. On clicking Next in all the above scenarios, the Wizard Step 2 of 3: Redefine Service opens.

    The screen displays the following fields. You must make an entry in each of the fields to proceed to the next step of the wizard:

    Fields

    Description

    Package

    Enter the target package name. This is the package in which the generated model provider class and data provider class will be stored.

    Transport Request

    Enter a valid transport request number.

    Model Provider Class

    Enter a name for the model provider class to be created. For example, ZCL_MPC_SPI_SAMPLE.

    Data Provider Class

    Enter a name for the data provider class to be created. For example, ZCL_DPC_SPI_SAMPLE.

    Model Name, Version and Description

    • Enter a unique model name. For example, ZMO_SPI_SAMPLE.

    • Enter ‘1’ for version in the corresponding text box.

    • Enter a description. This is a mandatory field and you will not be able to proceed without entering a description.

    Service Name, Version and Description

    • Enter a unique service name. For example, ZSV_SPI_SAMPLE.

    • Enter ‘1’ for version in the corresponding text box.

    • Enter a description. This is a mandatory field and you will not be able to proceed without entering a description.

  6. Click Next.

    The Wizard Step 3 of 3: Redefine Service opens. This screen shows all the artifacts generated in a selectable tree.

  7. Select the required artifacts.

    Note

    SelectDisplay messages button to view any existing messages for the service.

  8. Click Finish.

    The Service Builder runs the consistency check for the imported model and a message is displayed. The selected artifacts are transferred to the respective folders in the tree view of the Service Builder. Also, the name and the version of the service selected for redefinition are displayed in the Model References folder.