Skip to Content
Author's profile photo Saurabh Saxena

How to – Sales Order Simulation from C4C to ECC using HCI

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.

WS.jpg


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.jpg

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.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ginger Gatling
      Ginger Gatling

      Hi Saurabh

      Thanks for this!  What is the business case - why would I simulate a sales order in ERP? Or is this used for the external pricing?  I know we don't have 'simulate sales order' in our arrow slides.  Am I missing something?

      thanks

      Ginger

      Author's profile photo Former Member
      Former Member

      Hello,
      The ERP service simulate sales order is used for C4C external pricing for a sales quote or sales order.

      Author's profile photo Saurabh Saxena
      Saurabh Saxena
      Blog Post Author

      Hi Ginger,

      Simulate functionality in C4C sales order brings back the pricing and other information from ECC back to C4C after simulating the sales order in ECC. Pricing is one of the most important information in this process.

      With simulation, the user can see how the sales order would look in ECC and can decide of further modifications or transfer it from C4C to ECC.

      As it uses the same iflow as of sales quote pricing therefore we may not need to create a separate slide on this, however a mention of this functionality would be useful and required.

      Author's profile photo Former Member
      Former Member

      Hi Saurabh,

       

      We are trying to pass custom fields at Header and Item level to the Sales Order Simulate web service Sales Quote with Pricing in SAP Business which calls COD_SALESORDER_SIMULATE in ECC.
      Issue: we tried to manipulate the data in HCI while the request is passed but no affect takes place to it.
      can you please shed some light on simple extension scenarios at VBAK & VBAP level from C4C for pricing simulation.

       

      Thanks,

      Narottam

      Author's profile photo Piero Silvestrini
      Piero Silvestrini

      Hi Saurabh,

      we have a problem in sales order simulation for sales quote; we always have this error in C4C and SRT_UTIL:


      Is not possible to determine sales area (error ID VP, number 102)


      In the request content (SRT_UTIL) we can see that there is no SALES_ORG value:


      <SALES_ORG/>

       

       

      <DISTR_CHAN>Z1</DISTR_CHAN>

       

       

      <DIVISION>S1</DIVISION>

       

      In C4C sales quote we have all sales area info compiled.

       

      I tried to map a costant value to SALES_ORG field inside the mapping in HCI iflow, but in ERP request I always have no value for SALES_ORG.

       

      Maybe could be a problem at web service definition in ERP?

       

      Thanks and Regards

       

      Piero

      Author's profile photo Admin Administrator
      Admin Administrator

      Hello,

      we would like to do an integration between C4C and a "self made" WebShop. Are there any similar function, which can be used in web services for order simlation?

      We also would like to check the price lists etc. maintained in C4C.

      Basically speaking we just use the same scenario like described in this blog, but C4C has got all the information and the webshop will need the order simulation /price calculation in it's basket (B2B Scneario)

      Author's profile photo Paulo Roberto Sosa
      Paulo Roberto Sosa

      Hi @Saurabh Saxena !!!

      We have the scenario C4C => S4 for Sales Order, but we have an issue.

       

      a. First chooses the action ‘Simulate’ to open the next action ‘Tranfer'.

      In that point C4C execute hci scenario ‘Request Sales Document Data from SAP Business Suite’

      b. Second chooses the action ‘Transfer’.

      C4C should execute hci scenario ‘Create Sales Quote Follow Up Document in SAP Business Suite’, but it doesn’t execute anything.

       

      i checked the log trace in hci and dont write any access or error about the scenario.

      i checked web service monitor in C4C and any message or trace about the Communication Arrangements.

      it’s posible that Action ‘Transfer’ dont have the link with Communication Arrangements to send the scenario ‘Create Sales Quote Follow Up Document in SAP Business Suite’

      How to configurate the Action ‘Transfer’ to send to S/4HANA?