Ansicht
Dokumentation

SOA_MGR_ERP - Configuration in SOA Management

SOA_MGR_ERP - Configuration in SOA Management

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

In SOA Management, you need to perform the following activities:

  • Configuration to generate PDF files of sales orders or quotes in an opportunity.
  • Maintain end points for services.
  • Configuration to send attachments from SAP CRM to SAP Cloud for Customer.
  • Configuration to send attachments from SAP Cloud for Customer to SAP CRM.

The final quote or order confirmation that was sent out to the customer is of particular interest to a sales representative using SAP Cloud for Customer. These documents can be called up in PDF format directly in SAP Cloud for Customer, without leaving the context of an opportunity. This section describes how to enable the generation of PDF files of sales documents (orders/quotes) directly from an opportunity.

PRECONDITIONS

  • You have activated the LOG_SD_SIMP_02 switch in Customizing for SAP S/4 HANA under Activate Business Functions. For setting up the web service call, a technical user is required. The existing technical user (used for the IDoc communication) can also be used in this scenario. However, you have to make sure that the technical user has the following authorization objects assigned:
  • S_Service RC=0

  • S_RFC RC=0

  • S_SPO_DEV RC=0

  • An output device is required for formatting purposes. The output device can be assigned on transaction level (Sales Order/Quote) or to the communication user. You have implemented SAP Note 1919135 so that the web service SalesDocumentPrintPreviewQuery is available.

You need to create an endpoint for web service SalesDocumentPrintPreviewQuery.

  1. In SOAMANAGER, under Web Service Configuration, select the object type as Service Definition.
  2. Search for the service definition you created for the print preview.
  3. Click Apply Selection to open the service definition.
  4. On the Configuration tab, choose Create and fill in the required fields, and click Apply Settings.
  5. On the Provider Security tab, make the following settings:
    1. Under Communication Security, select SSL (HTTPS, Transport Channel Security).
    2. Under Transport Channel Authentication, select User ID/Password.
  6. Save your entries.

Note

When you have saved your settings, the system displays the calculated endpoint URL on the Transport Settings tab. This URL will be used for the creation of the communication arrangement in SAP Cloud for Customer.

Next Steps

Step 1: Maintain Output Type

The web service implementation in SAP S/4 HANA relies on the output determination. As a prerequisite, it is therefore necessary that at least one printable output type is configured for sales quotes/orders and inquiries in SAP S/4 HANA, and that these output types are also determined successfully in the documents.

If more than one printable output types are determined in the S/4 HANA sales document, you can do one of the following:

  • Map the code of the relevant output type to the field IV_KSCHL in PI
  • Implement BAdI COD_SLS_SE_GET_OUTPUT_TYPE and return the relevant output type in the method GET_OUTPUT_TYPE.

Step 2: Maintain this end point in SAP Cloud for Customer

Mention this end point in the communication arrangement Opportunity with Print Preview of Sales Documents in S/4 HANA in SAP Cloud for Customer, and perform service and connection checks.

2. Maintain Endpoints for Services

Purpose

The access URL of the endpoint is required during the configuration of the cloud solution to establish synchronous requests.

Note

Depending on your SAP S/4 HANA release, the texts on the user interface in the transaction SOAMANGER might differ from the texts in section Procedure below. See the table below for differences that might occur between different releases.

Description in Configuration Guide Possible Alternative
Service Administration Application and Scenario Communication
SSL (HTTPS, Transport Channel Security) SSL over HTTP (Transport Channel Security) or User ID password

Procedure

  1. In SOAMANAGER, on the Service Administration tab, choose Simplified Web Service Configuration.
  2. Enter SalesOrderPricingInformationQueryResponse_In into the Search Pattern field and choose Go.
  3. Mark the line containing this service and choose Apply Selection.
  4. On the Configurations tab page, choose Create Service.
  5. In the SOA Management dialog box, enter a service name, description and binding name.

Note

For example, copy the first part of the service name (here: SalesOrderPricing) into the service name field, enter a meaningful description, such as Sales Order Pricing into the description field and simply enter binding into the binding name field.

  1. Choose Apply Settings.
  2. To maintain the endpoint, make the following settings in the Provider Security tab page:
Screen Area User Action
Communication Security Select the checkbox SSL (HTTPS, Transport Channel Security)
Transport Channel Authentication Select the checkbox SSL Client Certificate

  1. Save your entries.
  2. Repeat these steps for the following services:
  • SalesOrderERPBasicDataByElementsQueryResponse_In
  • CustomerQuoteERPBasicDataByElementsQueryResponse_In
  • SalesDocumentPrintPreviewQuery

Note

For the SalesDocumentPrintPreviewQuery maintain the entries:

Screen Area User Action
Communication Security Select the checkbox SSL (HTTPS, Transport Channel Security)
Transport Channel Authentication Select the checkbox User ID/Password

Additionally, the following prerequisites exist for SalesDocumentPrintPreviewQuery:

  • Verify that LOG_SD_SIMP_02 switch in Customizing for SAP ERP under Activate Business Functions.
  • Navigate to the IMG or go directly to transaction code SFW5.

  • Search for LOG_SD_SIMP_02. Ensure it is active (the light is on).

  • For setting up the web service call, a technical user is required. The existing technical user (used for the IDoc communication) can also be used in this scenario. However, you have to make sure that the technical user has the following authorization objects assigned:
  • S_Service RC=0

  • S_RFC RC=0

  • S_SPO_DEV RC=0

  • In addition to this, an output device is required for formatting purposes. The output device can be assigned on transaction level (Sales Order/Quote) or it can be assigned to the communication user.
  • You have implemented SAP Note 1919135 so that the web service SalesDocumentPrintPreviewQuery is available.

3. Configuration to send Sales Order attachments from SAP ERP to SAP Cloud for Customer

  1. In SOA Management, under Service Administration, click Web Service Configuration.
  2. Specify the following criteria and click Search:
    1. Object Type and the value as Consumer Proxy
    2. Object Type and the value as object name CO_CODERINT_ATTACHMENT_FOLDER.
  3. Open the consumer proxy.
  4. To create a logical port:
    1. In the Configuration tab, choose Create ' Manual Configuration.
    2. In the guided activity that appears, enter the logical port name (the CRM Logical System name), description, and check Logical Port as Default. Click Next.
    3. Select the authentication method, and provide the authentication details, and click Next.
    4. Enter the URL Access Path obtained from the WSDL of the Sender Agreement, which is configured in PI and represents the endpoint on PI. Example: /XISOAPAdapter/MessageServlet?senderParty=&senderService=_400&receiverParty=& receiverService=& interface=AttachmentFolderReplicationRequest_Out&interfaceNamespace=http%3A%2F%2Fsap.com%2Fxi%2FCRMPCD01

Note:You can get the path, from the Integration Flows spreadsheet on SAP Service Marketplace.

  1. Choose HTTPS as the URL protocol Information and click Next.
  2. Select the RM Protocol as SAP RM, Message ID Protocol as SAP Message ID, and Data transfer scope as Basic Data Transfer.
  3. Click Next and then Finish.

The logical port is now displayed in the Configurations tab.

4. Configuration to send attachments from SAP Cloud for Customer to SAP ERP

  1. In SOA Management, under Service Administration, click Web Service Configuration.
  2. Specify the following criteria and click Search:
    1. Object Type and the value as Service Definition
    2. Object Type and the value as object name II_SLS_ATTACHMENT_FOLDER_REPLI.
  3. Open the service definition.
  4. To create a logical port:
    1. In the Configurations tab, choose Create ' Create Service.
    2. In the guided activity that appears, enter a service name, service description, binding name and click Next.
    3. Select the Transport Level Security and the Transport Channel Authentication, and click Next.
    4. Enter the Calculated Access URL, which is the Target URL in the PI Receiver Agreement.
    5. Choose HTTPS as the Calculated Protocol and click Finish.
    6. Select the RM Protocol as SAP RM, Message ID Protocol as SAP Message ID, and Data transfer scope as Basic Data Transfer.
    7. Click Next and then Finish.

The service definition and the binding are generated and displayed in the Configurations tab.

Transport Channel Authentication






rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 12132 Date: 20240523 Time: 181150     sap01-206 ( 135 ms )