SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Consume a SAP Sales and Service Core API to create Sales Orders using SAP Cloud Integration

Learn how to create a Message Mapping artifact to correctly pass the needed payload to SAP Sales and Service Core (formerly SAP C4C) to create the saler order. Plus you'll see how to configure and test your XSD schemas for the source and target messages.

Overview

🎓 advanced 30 min. SAP Integration SuiteAdvancedCloud IntegrationSAP Business Technology PlatformFree Tier

You will learn

  • How to create a Message Mapping artifact to correctly pass the needed payload to SAP Sales and Service Core to create the sales order. Plus you’ll see how to configure and test your XSD schemas for the source and target messages.
Mariajose Martinez M Mariajose Martinez November 21, 2022
Created by November 2, 2022
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Add the SAP Sales and Service Core service to the Integration Flow

Once you have your SAP Sales and Service Core tenant (formerly SAP Cloud for Customer or SAP C4C):

  1. Click on SAP API Business Hub, to start testing your C4C API.

  2. Click on “Try Out” and enter your tenant domain.

  3. Add /CustomerOrderCollection as the Resource Path to POST new Sales Orders in C4C. Your API endpoint is https://<your C4C* domain>/sap/c4c/odata/v1/c4codataapi.

    API Business Hub
    API Business Hub

    In order to call the SAP Sales and Service Core API to create a Sales Order in your Integration Flow, a Message Mapping will be needed to map the XML of the incoming payload to the needed structure in SAP Sales and Service Core. This will be cover in a later step.

  4. Go back to your Integration Flow and add a Request Reply task.

  5. Add a new Receiver and link it with the Request Reply task using an OData Adapter (select the OData V2). For more information, check the documentation here.

  6. Add your SAP Sales and Service Core API endpoint and credentials.

    API Business Hub
    API Business Hub

Step 2 Create the SAP Sales and Service Core credentials in SAP Cloud Integration
+
Step 3 Configure the SAP Sales and Service Core target fields for the request call
+
Step 4 Create a Message Mapping Artifact
+
Step 5 Test your XML structure with the needed XSD source schema.
+
Step 6 Upload your source XSD schema into the Message Mapping Artifact and map it to the target XSD schema
+
Step 7 Add the Message Mapping Artifact to the Integration Flow
+
Step 8 Deploy and test your Integration Flow
+
Step 9 Check your knowledge
+
Step 10 One more time, check your knowledge
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Add the SAP Sales and Service Core service to the Integration Flow 2. Create the SAP Sales and Service Core credentials in SAP Cloud Integration 3. Configure the SAP Sales and Service Core target fields for the request call 4. Create a Message Mapping Artifact 5. Test your XML structure with the needed XSD source schema. 6. Upload your source XSD schema into the Message Mapping Artifact and map it to the target XSD schema 7. Add the Message Mapping Artifact to the Integration Flow 8. Deploy and test your Integration Flow 9. Check your knowledge 10. One more time, check your knowledge

Learn more →