Show TOC

Creating a Service DefinitionLocate this document in the navigation structure

Use

The Service Wizard enables you to create a service definition in a few steps. You can create Web services for RFC-enabled function modules, function groups, BAPIs, and service interfaces. You assign features that pertain, for example, to security or transport guarantees using configuration profiles.

After you have created the service definition using the wizard, you can edit it subsequently in the ABAP Workbench in the subtree Start of the navigation path Enterprise Services Next navigation step Service Definitions End of the navigation path (refer to: Editing a Service Definition).

Prerequisites

The user has been assigned the appropriate Authorizations.

Procedure
  1. In the Object Navigator (SE80), choose the name of the package in which you want to create a Web service.

  2. In the context menu, choose Start of the navigation path Create Next navigation step Enterprise Service Next navigation step Service Provider Next navigation step Existing ABAP Objects (Inside Out). End of the navigation path

    For function groups and function modules, you can call the wizard from the Function Builder (SE37). Choose the required function module, display it, and then choose Start of the navigation path Utilities Next navigation step More Utilities Next navigation step Create Web Service Next navigation step From the Function Module End of the navigation path or From the Function Group.

Note that the function group must contain at least one RFC-enabled function module.

Action:

Meaning:

Create Service

Enter a name and short text for the service definition. Choose an end-point type.

Choose End Point

Choose the object that you want to offer as a Web service. For BAPIs, enter the application.

If the checkbox Name Mapping is marked, the wizard accepts the existing names for the end point. Initial letters are in uppercase and underscores are removed If this is not required, create the service definition using the names in the end point.

Choose Operations

For BAPIs and function groups, choose the operations for which the Web service is to be created.

With Delete Line you can exclude operations of a BAPI or a function group that should not be provided in the service definition. At least one operation must be retained.

Configure Services

The features that can be assigned here to the Web service relate to questions of security of data transfer and the type of communication. The selected security level is to be understood as the minimum requirement for all runtime configurations of the service definition.

Choose a predefined feature set from the profiles available.

  • PRF_DT_IF_SEC_HIGH

    Authentication using certificates and transport guarantees

  • PRF_DT_IF_SEC_LOW

    Authentication using user ID and password, no transport guarantee

  • PRF_DT_IF_SEC_LOW

    Authentication using user ID and password and transport guarantee

  • PRF_DT_IF_SEC_NO

    No authentication and no transport guarantee

For more information on the features in the profiles, refer to the section Editing a Service Definition.

Choose Deploy Service to release the service for runtime.

Enter Package/Transport Request

Enter the name of the package and the transport request number. You do not need a transport request for local objects.

Finish

The service definition is created.

Result

You have created a Web service.

You can display and edit the service definition in the Object Navigator in the package you selected under Start of the navigation path Enterprise Services Next navigation step Service Definitions End of the navigation path. For more information, refer to the section Editing a Service Definition.

Configure the Web service (refer also to Configuring the Service Provider).

Each service that you create in inside-out mode can be called synchronously and asynchronously.

For more information, refer to the sections Consuming a Web Service and Types of Message Transmission.