Customer Relationship Management Blogs by SAP
Stay up-to-date on the latest developments and product news about intelligent customer experience and CRM technologies through blog posts from SAP experts.
cancel
Showing results for 
Search instead for 
Did you mean: 
saurabh_saxena
Explorer

This blog provides details on the required configuration, to be carried out in different systems in integration landscape, to make sales order simulate function working in C4C.

The scenario described here uses HCI as middleware, C4C acts as the source system and ECC is the target system. An assumption is made that connectivity between these different system is already up and working.

Cloud for Customer (C4C) configuration -

  1. Business Configuration
    1. Scoping
      1. Do you want to create follow-up documents for sales quotes
      2. Do you want to use an external application to determine prices
    2. Fine Tuning
      1. Sales Order -> Maintain Document Types
        1. In case you do not want to use the standard document type OR, you can create new document types here.
      2. External Pricing -> External Pricing Procedure
        1. This is the setting where the pricing procedure used in ECC will be configured. You can create an entry with same ID as in ECC.
        2. For each pricing procedure, pricing steps can also be maintained in this setting. These pricing steps hold the intermediate calculated figures.
        3. To check which pricing procedure is in use in ECC, go to IMG -> Sales & Distribution -> Basic Functions -> Pricing -> Pricing Control -> Define and Assign Pricing Procedure
      3. >  External Pricing -> External Condition Types
        1. This is the setting where you will configure pricing conditions of ECC which you expect to capture in C4C. You can use the same IDs as in ECC.
      4. Code List Mapping
        1. Pricing Procedure
          1. Local Data Type Name = ExternalSalesPricingProcedureCode
        2. Condition Types
          1. Local Data Type Name = ExternalSalesPriceSpecificationElementTypeCode
        3. Division
          1. Local Data Type Name = DivisionCode
        4. Distribution Channel
          1. Local Data Type Name = DistributionChannelCode
        5. Business Transaction Documents
          1. Local Data Type Name = BusinessTransactionDocumentProcessingTypeCode
          2. In case you are using a customized sales order document type, then map it with the ECC code.
  2. Communication Arrangement (CA)
    1. Sales order simulate uses the communication arrangement "Sales Quote with Pricing in an External System".
    2. Check that the service URL path of the service in above CA should be /cxf/COD/ERP/CUSTOMERQUOTEREQUESTEXTERNALSALESDOCUMENTDATAOUT. You can check the IntegrationFlows excel in Service Market Place to get the latest service url for this service.
  3. ID Mapping
    1. As sales order is dependent on sales area therefore ID mapping for sales area fields will be required.
    2. Usually the ECC consultants at customer's end should be aware which all sales areas are required for mapping, however you can check the sales area of the customer and product for which you are trying to simulate the sales order.
      1. Customer Sales Area - Go to transaction XD03 and follow Extras -> Sales Areas -> Sales Areas by Customer
      2. Product Sales Area - Go to transaction MM03 and select views Basic Data 1 + Basic Data 2 + Sales:Sales Org. Data 1 & Sales:Sales Org. Data 2. Provide Plant, Sales Org and Distribution Channel to view the details
    3. A Sales Area is a combination of Sales Org, Distribution Channel and Division. Out of these, only the Sales Org will be having ID mapping. Distribution Channel and Division will be mapped in code list mapping as explained above.

ECC Configuration

  1. Web Service Configuration
    1. Sales order simulate from C4C calls a web service on ECC in synchronous manner. To achieve this, C4C has provided a web service which needs to be configured.
    2. Go to SOAMANAGER in your ECC system, go for Service Administration -> Simplified Web Service Configuration.
    3. Search for COD_SALESORDER_SIMULATE & configure it providing the authentication details etc.
    4. Click on "Show Details" button to get the access url as this needs to be put into HCI iflow configuration. Sample access url looks like https://<ECC_URL>:<port>/sap/bc/srt/scs/sap/cod_sales_order_simulate?sap-client=>ECC_CLIENT>
    5. Note - the access url of this service points to /sap/bc/srt/scs..... however in SICF transaction this service will be found under /sap/bc/srt/pm.
  2. Web service user authorization
    1. Most probably you would be using the ECC integration user (i.e. CODINTEG) for this web service call from HCI. In this case, this user should have authorization to this web service in his roles.
    2. Go to the role assigned to your communication user. This role can be opened in transaction S000.
    3. Go to Authorizations tab and click on "Display Authorization Data".
    4. Search for S_SERVICE object and check if this role has the required web service added already. If not then please add it. Below screenshot highlights the line where this web service should be added.



HCI Configuration

  1. Sales order simulate uses "Request External Data from SAP Business Suite" which has the eclipse project name "com.sap.scenarios.cod2erp.querysalesquotepricing.request".
  2. Configure the iflow similar to others. Provide the access url of the ECC web service in the receiver configuration of the iflow.

With the above settings, you should be able to trigger sales order simulation and should also get the results back from ECC system. However, in case you get issues, you need to resolve those. Some resolution techniques in ECC are provided below.

SRTUTIL - To check if sales order simulate request is coming to ECC

As this is a synchronous call, therefore by default no trace is stored. You need to enable trace for the communication user in ECC system under transaction SRTUTIL. You can activate the payload trace in this transaction. This will provide you the payload getting received at ECC. If the web service sends any response, then that response should also be visible in the trace. Looking at the payload and response, you can try to resolve the issue.

SRTUTIL - virtual interface error

This is a temporary error and could be resolved following note 1847901 & 2094208.


SRTUTIL - ECC web service only shows request but no response

If in your above trace, you do not see any response back from web service, you may think to debug the service. The function module is COD_SALESORDER_SIMULATE. You can execute and debug it by providing the same data which you have received in the request payload of this web service from C4C.

7 Comments