During the product replication setup, a logical port for the web service’s consumer proxy was manually configured using transaction SOAMANAGER, where the relevant transport details, such as the target endpoint and credentials, were maintained. With the business partners setup, we use a different approach to demonstrate the setup with Service Groups.
Service Groups are needed when you have to send messages for a specific object to multiple recipients. This is useful when you have multiple target systems in your environment that require updates on business partners, products, or other data. We’ll use business partners as an example.
The following screenshot shows that the consumer proxy for business partners, which is CO_MDG_BP_RPLCTRQ, is already in use in our demo environment. Therefore, we need to set up a service group.
You can verify this as follows:
- Open transaction SOAMANAGER
- Navigate to Web Service Configuration
- Search for Object Name CO_MDG_BP_RPLCTRQ
If an active logical port already exists that does not point to your desired target system, you need to use service groups. The entry in the previous screenshot was also created based on a service group. This is indicated in the column Creation Type, which shows Created based on profile...
Unlike the manual configuration of a logical port for the consumer proxy, the configuration via service groups is more complex. It consists of the following steps, all carried out in the SOA Manager.
Steps to set up a Service Group:
- Create a Profile
- Create Logon Data
- Prepare and Upload WSDLs
- Publish WSDLs to the Service Registry
- Create a Provider System
- Configure a Local Integration Scenario
The steps are shown in a video later in this lesson. The extra preparation tasks for the third step are explained in the next section.
Note
Configuring the web service based on service groups is a complex task that is actually beyond the scope of this beginner training. However, it’s often required in projects because of existing replication scenarios. Therefore, it's mentioned here.
Prepare WSDL Files
Service groups require uploading WSDL files for the services you want to use. Each WSDL file must be prepared with the endpoint URL of the deployed integration flow where messages are sent.
Since the replication of business partners and relationships uses separate services, you must prepare two WSDL files, one file per service.
- Business Partner
- Consumer Proxy: CO_MDG_BP_RPLCTRQ
- Message: BusinessPartnerSUITEBulkReplicateRequest
- Business Partner Relationships
- Consumer Proxy: CO_MDG_BP_RELATIONSHIP_OUT
- Message: BusinessPartnerRelationshipSUITEBulkReplicateRequest
For the business partner scenario, you can download the WSDL files from the SAP Knowledge Base Article 2987243. You can also obtain WSDL files directly from the system, which is not discussed further here. The WSDL files must contain the service section with the address location, as shown in the following screenshot.
Once you have the WSDL files, update the URL in the address location field to the correct target endpoint, which is the deployed integration flow for business partners in the example. Then, you can begin configuring the service group, as described in the following section.
Video: Setting up Service Groups for Business Partner Replication in SAP S/4HANA
The following video shows how to set up business partner replication using service groups with the WSDL files prepared earlier.
Depending on the system environment and other requirements, not all service group-related tasks need to be performed on each target system. Some of the configured elements can likely be shared, for example, when all connections pass through the same middleware.
Steps that might be shared for multiple target systems:
- Profile:
Contains transport-relevant details, such as protocol and proxy.
- Logon Data:
Contains credentials for the middleware or the respective direct communication partner.
- Local Integration Scenario:
Joins the settings for several systems and services.
Steps that must be carried out per system:
- Prepare and Upload WSDLs:
Each WSDL needs the corresponding endpoint
- Publish WSDLs to the Service Registry:
Each WSDL must be published.
- Create a Provider System:
Must correspond to the business system as defined in DRFIMG
The following screenshot displays the list of logical ports for the two consumer proxies for business partners (1) and relationships (2) after the service groups. You can see the new entries, which are set up based on service groups.
You can find further information about service groups in the following SAP Community blog post: Configuring Service Group in SOAMANAGER using Integration Scenarios
Enable DRFOUT for using Service Groups
Finally, to send data to other systems with the transaction DRFOUT, using service groups, you must activate the Support for Point2Point Communication:
- Call transaction SPRO
- Go to SAP Reference IMG→Cross-Application Components→Processes and Tools for Enterprise Applications→Enterprise Services→Point-to-point Enablement for Asynchronous Enterprise Services→Activate Support for Point2Point Communication.
- Make sure that the activate checkbox is selected.