Show TOC Start of Content Area

Procedure documentation Editing a Service Definition  Locate the document in its SAP Library structure

Use

You create a service using the default values of the assigned profile (refer also to: Creating a Service Definition). You can change these values for function modules, function groups, and BAPIs.

Prerequisites

You have created a service definition using the service wizard.

Procedure

...

       1.      Select the service definition in the subtree Service Definition in the Object Navigator of the ABAP Workbench under Enterprise Services.

       2.      In the application toolbar, choose Display/Change.

On the right-hand side, you will see different tab pages displayed.

Tab:

Name:

Properties

In this tab page you find general information on the service provider.

External View / Internal View

In the External View tab page, you can make changes if you wish to have the service definition displayed to the outside in a different form.

Change Names of Operations

Select the operations whose name you want to change. Enter a new name for the operation in the Name field:

Adapt Parameters

Choose the required parameter: You can then make any of the following changes to it:

      Change Parameter Name

In the Parameter field, enter the required name.

      Change Parameter Type

You can change the type of a parameter if it is based on a structured type or table type.

To change the type of parameter, proceed as follows:

       Choose the Types tab.

       Select the type you want to copy. Choose Copy from the context menu or application toolbar.

       In the dialog box that appears, enter a name for the copied type. It then appears in the Copied Types category.

Fields belonging to the type can be deleted by selecting the appropriate function in the context menu. If the copied type includes other fields that are based on a structured or table type, the context menu also contains the Change Type option. If you want to change a type, choose a suitable type in the dialog box that appears. You will have copied this beforehand, where appropriate (see above).

Choose the tab page External View to assign the new type using input help.

Define Default Value

Parameters that are optional in the original interface can also be optional in the service definition. In this case, the default value of the original interface is used. Alternatively, you can enter a default value yourself.

Hide Parameters   

Uncheck the Exposed checkbox.

If a parameter is hidden, it does not appear in the WSDL document at all. In such cases, the fixed value or parameter initial value is used.

Objects Used

In this tab, all the objects belonging to the service provider are listed. The ABAP names can be changed.

Configuration

You can change the features that have been assigned using the profiles of the service wizard. Make the required changes. Specify whether the operations of the service definitions are to be processed synchronously or asynchronously.

WSDL

In the case of a WSDL document that is the basis for the service definition, you can choose either the RPC or Document style. SOAP messages for WSDLs in RPC style contain remote procedure calls. XML documents are exchanged in the Document style. The data types are defined with the help of the XML schema.

You can save the WSDL to a file using the corresponding pushbutton or you can copy the URL to be able to use it during proxy generation.

Classification

You can publish the tModel of a service (this is the technical specification of a service) in a Services Registry.

tModels of services (based on a function module, a function group, a BAPI, or a message interface) are published from the ABAP backend.

tModels of services that were modeled in the Enterprise Services Repository are published directly from the Enterprise Services Repository.

(For more information, refer to the section Publishing a Service.)

Prerequisite for the classification and publication is that a connection is set up to the required registry (refer to Setting Up a Connection to the Services Registry).

 

More information:

You will find information on changing a message interface in the section Message Interface.

 

 

End of Content Area