Show TOC

Procedure documentationWorking with ServiceGroups Locate this document in the navigation structure

 

ServiceGroups are used to define which services a consumer application needs to run. This is important to ensure that all the services in a ServiceGroup are available on the same provider system.

ServiceGroups allow you to configure multiple consumer proxies at the same time. Multiple consumer proxies can be used, for example, if different services offered by the same provider system are accessed.

A consumer application can have one or more ServiceGroups, depending on how many logical service providers it accesses. ServiceGroups can in this way eliminate the possibility of configuring a consumer incorrectly.

To allow scenarios such as these to be configured correctly, the services should be grouped together at design time. If this is not done at design time, and if any part of the configuration is not correct, this may only become apparent at runtime.

ServiceGroups allow you to group together:

  • Consumer proxies

  • A target (consisting of a name and a namespace)

Note Note

ServiceGroups are transported by the standard ABAP transport system.

End of the note.

Prerequisites

To set up a ServiceGroup:

  • At least one generated consumer proxy must be available in your ABAP system.

  • A working registry must be connected to your ABAP system to be able to assign a target and its namespace and to classify the ServiceGroup.

Procedure

Creating a ServiceGroup

You create ServiceGroups in an ABAP back-end system.

  1. Start the Object Navigator (transaction code SE80).

  2. Locate the package in which you want to create the ServiceGroup.

  3. Right-click on the package to open the context menu.

  4. From the context menu, choose Create.

    A wizard is started.

  5. Select ServiceGroup.

  6. Continue.

  7. Specify a name, a Display Name and a Description, and specify the following options:

    • Package

      Either choose a transportable package or select Local Object to assign this object to your $TMP package.

    • Transport

      Select a request from your transport system. If you selected Local Object, no Transport Request is needed.

  8. Choose Continue then Finish.

    The new ServiceGroup is displayed in the Service Consumer Groups folder. The information that you specified is displayed in the Properties tab.

  9. Save.

    The new ServiceGroup is saved and is inactive. Next, you need to edit the new ServiceGroup.

Editing and Activating a ServiceGroup
  1. In the Object Navigator (transaction code SE80), locate the ServiceGroup that you want to edit.

  2. Double-click the ServiceGroup to display its properties.

  3. Go to the Properties tab.

  4. In the Target Destination box, specify a target destination to be associated with the ServiceGroup.

    Use the input help to select a target namespace and name.

  5. From the ServiceGroup display, go to the Classifications tab.

    When a new ServiceGroup is created, initially no classifications are assigned. You can classify the ServiceGroup object using classifications that are available in the registry.

  6. Select a classification and specify a value.

    Use the input help to display the available classification systems and their values. The Process Component classification is needed to be able to activate the ServiceGroup.

  7. Go to the Consumer tab.

  8. Assign consumer proxies to the ServiceGroup.

    You can select consumer proxies from the current ABAP back-end system.

    You can use the input help to select a Consumer ABAP Name, Consumer Port type Name and Provider Name.

  9. Save.

    Before you can work with a ServiceGroup, you need to activate it.

    Recommendation Recommendation

    Before you activate a ServiceGroup, you should check the following:

    • The target destination

      To check that the target destination has been configured, go to the Properties tab.

      At least one target destination must be available for use in the ServiceGroup. If there is no target destination, it will not be possible to activate the ServiceGroup.

    • The process component classification

      To check that the process component classification has been configured, go to the Classifications tab.

    End of the recommendation.
  10. Activate the ServiceGroup.

    From the menu, choose   ServiceGroup   Activate  .

    Before the ServiceGroup is activated, its consistency is checked. If errors occur, you need to resolve them before you can activate the ServiceGroup.

Testing a ServiceGroup

You can check the expected behavior of a ServiceGroup.

  1. In the Object Navigator (transaction code SE80), locate the ServiceGroup that you want to edit.

  2. Delete the target destination and the process component classification.

  3. Save and activate.

    Two error messages should be displayed:

    • Target Destination not maintained

    • Classification "uddi:uddi.sap.com:categorization:process-component" not maintained.

    This is the expected behavior, as a ServiceGroup without a target destination and a process component is not consistent.

  4. Reassign the target destination and the process component classification.

  5. Save and activate the ServiceGroup.

    No error messages should be displayed now.