Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member4529
Active Contributor

Control Recipe is generated from process orders in SAP ECC system based on the order data. The control recipe data is sent to the sub-systems or MES to execute the order. We'll look into a scenario here how to send the control recipe data to SAP xMII to be processed and sent to other shop-floor systems for execution. The control recipe data is sent from ERP from the Control Recipe Monitor(t-code CO53) by an asynchronous RFC called CONTROL_RECIPE_DOWNLOAD. We'll use the xMII IDOC Listener to receive control recipe data by the RFC.

First of all the RFC destination needs to be set up in ERP. Open the Configure RFC Destination (t-code sm59) in ERP system. Select TCP/IP connections and click on "New" icon.

In the next screen enter a name for the RFC destination. In the Technical Settings tab select Registered Server Program and enter a unique program ID as shown below. Also enter the gateway hostname and gateway service below. (The gateway host and the service values can be checked from Gateway Monitor(t-code smgw) menu path Goto->Parameters->Display)

In the MDMP&Unicode tab select Unicode option.

Save the RFC destination configuration. Next the control recipe destination needs to be setup in the SAP customization. Open the customization (t-code spro), menu path Production Planning for Process Industries->Process Management->Control Recipe/PI Sheets->Control Recipe Destination->Define and Set Up Control Recipe Destination

Select the standard control recipe destination 02 and click on Copy.

Click enter select Copy All when the pop-up comes.

Check if the Destination Type selected is 2 (this will enable to send the control recipe from ECC). Specify a name and description of the destination and in the Address field specify the RFC destination configured. The process instructions from the original destination gets copied to the new one. Each process instruction holds certain data for the process order for which it's created. The process instructions created for this control recipe destination can be checked by clicking left menu Process Instruction Generated. To know more about control recipe and process instructions please refer the following documents:

  1. PI-PCS - Linking Process Control System with SAP R/3
  2. SAP Help - PI-PCS

Now a iDOC Listener configuration needs to be created in xMII to receive the control recipe data from ECC by a RFC. Open the menu iDoc Listener Configuration in xMII from the menu path Data Services->iDoc Listener. Click on New. Specify a name for the RFC listener and in the Server Properties tab enter the same gateway, service and program id entered in RFC destination configuration in ECC as explained in the first step. Also enter 1 for Unicode setting.

In the second tab Client Properties enter ECC client, login username, password, language, system number and the application server host or the message server host name.

In the third tab Routing Rules a xMII BLS transaction can be specified which will be executed to process the data whenever it's received by xMII. Click on Message Type and add the RFC name CONTROL_RECIPE_DOWNLOAD. Uncheck the Legacy checkbox and select the transaction from the lookup. Specify the input parameter to which the RFC message will be passed. Save the settings by clicking on Save button below. After that click on the Start Server button to start the listener.

Now test the connection by opening the RFC Destination (t-code sm59) in ECC and clicking on Test Connection. If the connection test is successful then everything is fine. Otherwise check the settings again.

In the next step create a process order in ECC (t-code cor1). Click on the Operations button and the operations and phases for the process order will be displayed. Specify the control recipe destination created against each phase the data of which needs to be sent to xMII.

Release the order by clicking on the green flag icon and click on the Create Control Recipe (highlighted red icon) at the toolbar. This will generate the control recipe for each phase and operations based on the process instructions defined. Save the order.

Now open the transaction Control Recipe Monitor (t-code co53). Enter the plant and date range and click enter. All the process orders for which control recipes are generated will be displayed. Select the control recipe and click on Send.

This will send the control recipe data to the RFC destination by an asynchronous RFC call. Now check the location in xMII server specified in the Routing Rules (e.g. DLighthammerJCOOutput folder). The XML file containing the process order data will be present there. The xMII BLS transaction specified in the Routing Rules will also process the XML data(control rceipe) and send to other systems based on the transaction logic.

1 Comment
Labels in this area