Skip to Content
Product Information
Author's profile photo Wei Zhou

SAP Digital Manufacturing Cloud Integration Extension Part II

Dear Colleagues,

In this blog post will try to introduce scenario enhance the outbound integration between SAP Digital Manufacturing Cloud and SAP S/4HANA.

If you want see the inbound integration scenarios, please see Part I.

In this post will enhance an outbound interface scrap/yield confirmation, will provide two more fields personnel number and variance reason code. and this will require we do some extensions from DMC side for the integration.

  1. Register CPI interface as a service in DMC
  2. Create Production Process to consume the service in step 1.
  3. Develop an PoD Plugin to consume the production process in step 2.
  4. Create a POD to trigger the PoD Plugin

 

Prerequistories

  1. Integration configuration has been setup.
  2. You have access to the DMC sub-account.
  3. Business Application Studio has been enabled for your account.

 

## Details:

Register CPI interface as a service in DMC

  1. open app Manage Web Servers and create a new web server.you can reuse the the Destination CPI_DESTINATION_IFLMAP created for the integration, or create a new one.
    The web server should be consume by DMC_Cloud.
  2. open app Manage Service Registry and create a new service.Web Server should be the one in step 1.
    Url/Path: the path to the SAP CI yield/scrap interface: /gw/odata/SAP/API_PROD_ORDER_CONFIRMATION_2_SRV;v=1/ProdnOrdConf2
    Parameters create one erpDestination to specify the erp system to integrate.
    For the inbound request body, can be defined as below(not include supported fields, see metadata of the cpi interface for details):
    After save, we can consume this service by the Production Process.

Create Production Process to consume the SAP CI service

  1. open app Design Production Process and choose ‘Create’
  2. switch to ‘Edit’ mode and choose the service you created by click ‘Select Services’
  3. browse the service and toggle it, then save
  4. You can select it from left list and drag it to the right designer
  5. define your own production process, debug and fix issues.
  6. Deploy the production process and edit header to make sure its public to Service Registry
    you will be able verify the new service generated from app Manage Service Registry with a prefix P_****

Develop an PoD Plugin to consume the production process

  1. Create your own PoD plugin from template or modify from samples
  2. Edit view/MainView.view.xml to make the ui satisfy your requirements
  3. Edit the controller/MainView.controller.js to meet your requirements
  4. Edit the builder/PropertyEditor.js to define properties can be configured from POD Designer
  5. Edit the mta.yaml to allow DMC tenant able to access the plugin, by edit CORS section
  6. Right click the mta.yaml and build the application, and there will be an *.mtar file generated under folder mta_archives
  7. select the mtar file and deploy it from the right click menu.
  8. Then you will be able to verify from your sub account that the plugin application deployed in the space.

Create a POD to trigger the PoD Plugin

  1. open app POD Designer and create one POD or modify existing one
  2. add the PoD Plugin we created into a plugin container
  3. configure the Plugin parameters you exposed to designer
  4. Save the POD and test it, order id here was 1878936.
  5. Verify the status of order 1878936 from SAP S/4 HANA side.

    As you can see, the Personnel no. and Reason code populated

 

Summarize

With this post you know how to call the interface that standard SAP CI package provided with values that standard DMC process didn’t provided.

As this approach need bypass the standard integration scenario, you need turn the collaboration link off and handle the parameters yourself from DMC and work with an S/4 HANA consultant together.

 

Regards,

Wei

 

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Kevin Hunter
      Kevin Hunter

      Nice work Wei