On this weblog submit will attempt to introduce situation improve the outbound integration between SAP Digital Manufacturing Cloud and SAP S/4HANA.
In order for you see the inbound integration eventualities, please see Part I.
On this submit will improve an outbound interface scrap/yield affirmation, will present two extra fields personnel quantity and variance cause code. and this may require we do some extensions from DMC aspect for the combination.
- Register CPI interface as a service in DMC
- Create Manufacturing Course of to eat the service in step 1.
- Develop an PoD Plugin to eat the manufacturing course of in step 2.
- Create a POD to set off the PoD Plugin
- Integration configuration has been setup.
- You’ve got entry to the DMC sub-account.
- Enterprise Utility Studio has been enabled on your account.
Register CPI interface as a service in DMC
- open app Handle Internet Servers and create a brand new internet server.you’ll be able to reuse the the Vacation spot CPI_DESTINATION_IFLMAP created for the combination, or create a brand new one.
The online server ought to be eat by DMC_Cloud.
- open app Handle Service Registry and create a brand new service.Internet Server ought to be the one in step 1.
Url/Path: the trail 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 combine.
For the inbound request physique, may be outlined as under(not embody supported fields, see metadata of the cpi interface for particulars):
After save, we will eat this service by the Manufacturing Course of.
Create Manufacturing Course of to eat the SAP CI service
- open app Design Manufacturing Course of and select ‘Create’
- change to ‘Edit’ mode and select the service you created by click on ‘Choose Providers’
- browse the service and toggle it, then save
- You possibly can choose it from left record and drag it to the fitting designer
- outline your individual manufacturing course of, debug and repair points.
- Deploy the manufacturing course of and edit header to ensure its public to Service Registry
it is possible for you to confirm the brand new service generated from app Handle Service Registry with a prefix P_****
Develop an PoD Plugin to eat the manufacturing course of
- Create your individual PoD plugin from template or modify from pattern >> [git repo]
- Edit view/MainView.view.xml to make the ui fulfill your necessities
- Edit the controller/MainView.controller.js to satisfy your necessities
- Edit the builder/PropertyEditor.js to outline properties may be configured from POD Designer
- Edit the mta.yaml to permit DMC tenant in a position to entry the plugin, by edit CORS part
- Proper click on the mta.yaml and construct the applying, and there can be an *.mtar file generated beneath folder mta_archives
- choose the mtar file and deploy it from the fitting click on menu.
- Then it is possible for you to to confirm out of your sub account that the plugin utility deployed within the area.
Create a POD to set off the PoD Plugin
- open app POD Designer and create one POD or modify present one
- add the PoD Plugin we created right into a plugin container
- configure the Plugin parameters you uncovered to designer
- Save the POD and check it, order id right here was 1878936.
- Confirm the standing of order 1878936 from SAP S/4 HANA aspect.
As you’ll be able to see, the Personnel no. and Purpose code populated
With this submit you know the way to name the interface that normal SAP CI package deal supplied with values that normal DMC course of didn’t supplied.