Table of Contents Page 1 of 154A Step by Step guide: Creating a BPM Scenarioin SAP Exchange Infrastructure 3.0Kevin Wilson...
Table of Contents Page 2 of 154Table of ContentsINTRODUCTION 6Background ....................................................
Table of Contents Page 3 of 1542.6.3. MM_ORDERS05_to_OrderResponse ..........................................................
Table of Contents Page 4 of 1543.5.5. Email interface between BPE and Email Service..........................................
Table of Contents Page 5 of 154GLOSSARY 127APPENDIX A. ABBREVIATIONS USED 132APPENDIX B. DATA TYPES 133XSD – DT_ORDERS.......
Creating a BPM Scenario in XIIntroduction Page 6 of 154IntroductionBackgroundExchange Infrastructure has grown out of the ...
Creating a BPM Scenario in XIAuthor: Kevin Wilson Page 7 of 154How to use this bookThe book is written in such a way as to...
Creating a BPM Scenario in XIAuthor: Kevin Wilson Page 8 of 154XI ISCRMECCXI BPMIntegration ProcessDEMOOrderXI IS1) MT_ORD...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 9 of 154PHASE 1 : SYSTEM CONFIGURATIONWe have 4 “sy...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 10 of 1545. Click on New Product6. Enter a vendor, ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 11 of 154Figure 5: Import Software Component Versio...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 12 of 154PHASE 2 : INTEGRATION BUILDER DESIGNIn ord...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 13 of 1542.1.1. XI_MAIL1. Open up your applicable n...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 14 of 154Figure 10: External Definition - Mail Mess...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 15 of 1542.2.1. DT_ORDERS1. Right click data types ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 16 of 1544. Save2.2.3. DT_BPM_TRIGGER1. Right click...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 17 of 1542.3.1. MT_ORDER1. Right mouse click Messag...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 18 of 154Figure 15: Message Type - MT_ORDERRESPONSE...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 19 of 1542.4. Message InterfacesRight! Take a coffe...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 20 of 154Figure 17: Message Interface - MI_ORDER6. ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 21 of 1543. Select Abstract and Asynchronous4. Sele...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 22 of 1542.4.5. MI_EMAIL1. Right mouse click Messag...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 23 of 1542.5.1. ORDERS.ORDERS05 and ORDRSP.ORDERS05...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 24 of 1542.6.1. MM_Order_to_ORDERS051. Open Mapping...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 25 of 1547. Your mapping should look as follows:Fig...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 26 of 154Figure 26: Message Mapping - MM_ORDERS05_t...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 27 of 154Figure 27: Message Mapping - MM_ORDRSP_to_...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 28 of 154Figure 28: Message Mapping - MM_BPM_to_EMA...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 29 of 154o Message mapping: MM_BPM_to_EMAIL2.7.1. I...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 30 of 1543. Enter Name and Description -> Create4. ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 31 of 1548. Click the button in the mapping program...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 32 of 154Figure 32: Interface Mapping - IM_ORDRSP_t...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 33 of 154Figure 33: Interface Mapping - IM_BPM_to_E...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 34 of 154 Receive_BPM_TRIGGER_MATCH: Receive the M...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 35 of 1542.8.1.2. Receive_Order1. Open Integration ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 36 of 1546. Drag and Drop your Message Interface MI...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 37 of 154Figure 37: Action - Send_OrderResponse8. S...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 38 of 154Figure 38: Action - Receive_OrderResponse8...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 39 of 154Figure 39: Action - Receive_BPM_TRIGGER_MA...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 40 of 154Figure 40: Integration Scenario - Insert S...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 41 of 154Figure 42: Integration Scenario - Applicat...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 42 of 15418. Select your business System for CRM en...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 43 of 154Figure 46: Integration Scenario - Insert S...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 44 of 154Figure 48: Integration Scenario - Added Re...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 45 of 154Figure 50: Integration Scenario - Create c...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 46 of 154Figure 52: Integration Scenario - Complete...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 47 of 154Figure 54: Integration Scenario - Link Int...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 48 of 154 If the order response message does not c...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 49 of 154STEP 1 - Create Container Elements1. In th...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 50 of 1544. Change the step name from Receive1 to R...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 51 of 154Figure 63: Integration Process - Adding in...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 52 of 154Figure 66: Integration Process - Graphical...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 53 of 1546. Choose Assign as the operation7. Click ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 54 of 1544. Give the block a descriptive name “Bloc...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 55 of 154Figure 76: Integration Process - Deadline ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 56 of 154Figure 79: Integration Process - Add Trans...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 57 of 154Figure 82: Integration Process - Add Send ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 58 of 1544. Change the step name to something meani...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 59 of 154STEP 6a – Create System Error alert in exc...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 60 of 154STEP 7 – Create exception branch for timeo...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 61 of 154Figure 93: Integration Process - Add Cance...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 62 of 154Figure 95: Integration Process - Interface...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 63 of 1543. Click the Create Alert Category button ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 64 of 1544. Click the Dynamic Text checkbox on. The...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 65 of 154variables to the alert in the BPM process ...
Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 66 of 1542. Click the button Update Table3. Your ne...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 67 of 154PHASE 3 : INTEGRATION BUILDER CONFI...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 68 of 1543.2. Create Integration Process Ser...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 69 of 154Figure 109: Give Integration Proces...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 70 of 15410. Click Apply3.3. Create Services...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 71 of 1547. Click to choose Message Interfac...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 72 of 1543.3.3. Business System: SAPCRM1. Im...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 73 of 154Figure 111: SOAP Adapter Settings7....
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 74 of 154f. File Name Scheme: xi_kevin.datg....
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 75 of 154b. Transport Protocol: SMTPc. Messa...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 76 of 1547. Save3.4.4. GeneratedReceiverChan...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 77 of 1543. Click Configuration Wizard on th...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 78 of 1546. Click continueSTEP 2 – Outgoing ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 79 of 154Figure 117: Sender Agreement - DEMO...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 80 of 154STEP 5 – Interface Determination1. ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 81 of 1542. Click ContinueSTEP 7 – Assign ob...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 82 of 154Figure 122: Configuration Wizard Lo...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 83 of 1544. Click Internal Communication rad...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 84 of 154Figure 125: Outbound Message - Spec...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 85 of 154STEP 4 – Receiver Determination1. T...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 86 of 1542. Click ContinueSTEP 6 – Receiver ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 87 of 154Figure 130: Assign generated object...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 88 of 1543.5.3. Order Response interface bet...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 89 of 154Figure 133: Inbound Message - Speci...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 90 of 154Figure 134: Outbound Message - Spec...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 91 of 154STEP 4 – Receiver Determination3. T...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 92 of 1542. Click ContinueSTEP 6 – Receiver ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 93 of 154Figure 139: Assign generated object...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 94 of 1543.5.4. Order Response interface bet...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 95 of 154Figure 142: Inbound Message - Speci...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 96 of 154Figure 143: Outbound Message - Spec...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 97 of 154STEP 4 – Receiver Determination1. T...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 98 of 154Figure 146: Interface Determination...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 99 of 154STEP 7 – Assign object to a Configu...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 100 of 1543.5.5. Email interface between BPE...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 101 of 154Figure 151: Inbound Message - Spec...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 102 of 154Figure 152: Outbound Message - Spe...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 103 of 154STEP 4 – Receiver Determination1. ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 104 of 154Figure 155: Interface Determinatio...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 105 of 154STEP 7 – Assign object to a Config...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 106 of 154Figure 158: Configuration Wizard Log
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 107 of 1543.6. Receiver Determination3.6.1. ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 108 of 1543.6.3. SAPECC : ORDRSP.ORDERS05Fig...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 109 of 1543.7.2. DEMO : MI_ORDER : IP_ORDERS...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 110 of 1543.7.4. SAPECC : ORDRSP.ORDERS05 : ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 111 of 1543.8. Sender Agreements3.8.1. DEMO:...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 112 of 1543.9.2. SAPECC : DEMO : ORDERRESPON...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 113 of 1542. The wizard pops up as shown in ...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 114 of 1546. Click Continue7. Click on the n...
Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 115 of 154Figure 176: Web service summary13....
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0
Upcoming SlideShare
Loading in...5
×

A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0

3,091

Published on

An oldie but a goodie... A complete step by step guide on how to create an end-to-end BPM process in XI

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,091
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
147
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A Step by Step Guide Creating a BPM Scenario in SAP Exchange Infrastructure 3.0

  1. 1. Table of Contents Page 1 of 154A Step by Step guide: Creating a BPM Scenarioin SAP Exchange Infrastructure 3.0Kevin WilsonAlistair RooneyXI ISCRMECCXI BPMIntegration ProcessDEMOOrderXI IS1) MT_ORDER(DT_ORDER)Receiver Determination2a) ORDERS(ORDERS05)Sales Order2b) MI_BPM_TRIGGERMI_BPM_TRIGGERMT_BPM_TRIGGER(DT_BPM_TRIGGER)Sales OrderResponseMiddlewareReceiver Determination3) ORDRSP(ORDERS05)Order Response4a) MT_ORDERRESPONSE(DT_ORDERRESPONSE)4b) MI_BPM_TRIGGER_MATCHMI_BPM_TRIGGER_MATCHMT_BPM_TRIGGER(DT_BPM_TRIGGER)DocNumSOAPFTPIDOCIDOCEmail ClientOrder ResponseFailureMAIL4c) XI_MAIL
  2. 2. Table of Contents Page 2 of 154Table of ContentsINTRODUCTION 6Background ............................................................................................................................... 6How to use this book ................................................................................................................ 7The Scenario.............................................................................................................................. 7PHASE 1 : SYSTEM CONFIGURATION 91.1. Software Component ................................................................................................... 91.2. Clear SLD Cache .............................................................................................................. 101.3. Import Software Component........................................................................................... 10PHASE 2 : INTEGRATION BUILDER DESIGN 122.1. External Definitions ......................................................................................................... 122.1.1. XI_MAIL ..............................................................................................................................132.2. Data Types ........................................................................................................................ 142.2.1. DT_ORDERS........................................................................................................................152.2.2. DT_ORDERRESPONSE ......................................................................................................152.2.3. DT_BPM_TRIGGER............................................................................................................162.3. Message Types................................................................................................................. 162.3.1. MT_ORDER .........................................................................................................................172.3.2. MT_ORDERRESPONSE .....................................................................................................172.3.3. MT_BPM_TRIGGER ...........................................................................................................182.4. Message Interfaces .......................................................................................................... 192.4.1. MI_ORDER ..........................................................................................................................192.4.2. MI_ORDERRESPONSE ......................................................................................................202.4.3. MI_BPM_TRIGGER ............................................................................................................202.4.4. MI_BPM_TRIGGER_MATCH............................................................................................212.4.5. MI_EMAIL ...........................................................................................................................222.5. Import IDoc Type.............................................................................................................. 222.5.1. ORDERS.ORDERS05 and ORDRSP.ORDERS05...............................................................232.6. Message Mapping ............................................................................................................ 232.6.1. MM_Order_to_ORDERS05..................................................................................................242.6.2. MM_Order_to_BPM_TRIGGER..........................................................................................24
  3. 3. Table of Contents Page 3 of 1542.6.3. MM_ORDERS05_to_OrderResponse ..................................................................................252.6.4. MM_ORDRSP_to_BPM_TRIGGER ...................................................................................262.6.5. MM_BPM_to_EMAIL..........................................................................................................272.7. Interface Mapping ............................................................................................................ 282.7.1. IM_Order_to_ORDERS05....................................................................................................292.7.2. IM_Order_to_BPM_TRIGGER............................................................................................292.7.3. IM_ORDRSP_to_OrderResponse.........................................................................................302.7.4. IM_ORDRSP_to_BPM_TRIGGER_CATCH ......................................................................312.7.5. IM_BPM_to_EMAIL............................................................................................................322.8. Integration Scenario ........................................................................................................ 332.8.1. Actions ..................................................................................................................................332.8.2. Integration Scenario ..............................................................................................................392.9. Integration Process.......................................................................................................... 472.9.1. IP_Orders ..............................................................................................................................482.10. Create Alert Category .................................................................................................... 622.10.1. TESTALERT ......................................................................................................................632.10.2. TESTALERT1 ....................................................................................................................642.10.3. Assign Users / Roles to Alert Categories ............................................................................652.10.4. Update Alert Categories......................................................................................................65PHASE 3 : INTEGRATION BUILDER CONFIGURATION 673.1. Create Configuration Scenario ....................................................................................... 673.1.1. Order_OrderResponse_Demo ...............................................................................................673.2. Create Integration Process Service ............................................................................... 683.2.1. IP_ORDERS .........................................................................................................................683.3. Create Services without Party ........................................................................................ 703.3.1. Business Service: DEMO......................................................................................................703.3.2. Business Service: MAIL_SERVICE.....................................................................................713.3.3. Business System: SAPCRM..................................................................................................723.3.4. Business System: SAPECC...................................................................................................723.4. Create Communication Channels .................................................................................. 723.4.1. CC_DEMO_SOAP_SENDER ..............................................................................................723.4.2. CC_DEMO_FILE_RECEIVER............................................................................................733.4.3. CC_EMAIL...........................................................................................................................743.4.4. GeneratedReceiverChannel_IDoc .........................................................................................763.5. Use Wizard to set up Determination and Agreements ................................................. 763.5.1. Orders interface between DEMO and CRM..........................................................................763.5.2. Orders interface between DEMO and BPE ...........................................................................823.5.3. Order Response interface between ECC and DEMO ............................................................883.5.4. Order Response interface between ECC and BPE ................................................................94
  4. 4. Table of Contents Page 4 of 1543.5.5. Email interface between BPE and Email Service................................................................1003.6. Receiver Determination................................................................................................. 1073.6.1. DEMO : MI_ORDER..........................................................................................................1073.6.2. IP_ORDERS : MI_EMAIL.................................................................................................1073.6.3. SAPECC : ORDRSP.ORDERS05 ......................................................................................1083.7. Interface Determination................................................................................................. 1083.7.1. DEMO : MI_ORDER : SAPCRM ......................................................................................1083.7.2. DEMO : MI_ORDER : IP_ORDERS .................................................................................1093.7.3. SAPECC : ORDRSP.ORDERS05 : DEMO........................................................................1093.7.4. SAPECC : ORDRSP.ORDERS05 : IP_ORDERS ..............................................................1103.7.5. IP_ORDERS : MI_EMAIL : MAIL_SERVICE .................................................................1103.8. Sender Agreements ....................................................................................................... 1113.8.1. DEMO:MI_ORDER............................................................................................................1113.9. Receiver Agreements .................................................................................................... 1113.9.1. DEMO : SAPCRM : ORDERS.ORDERS05 ......................................................................1113.9.2. SAPECC : DEMO : ORDERRESPONSE ..........................................................................1123.9.3. IP_ORDERS : MAIL_SERVICE : MI_EMAIL .................................................................1123.10. Create and Publish Web Service ................................................................................ 112PHASE 4 : SAP CONFIGURATION 1164.1. Maintain Port in IDoc adapter ....................................................................................... 1164.1.1. SAPCRM ............................................................................................................................1164.2. Maintain Metadata Overview for IDoc adapter ............................................................ 1174.2.1. ORDERS05.........................................................................................................................117PHASE 5 : TESTING 1185.1. Testing the interface in XI ............................................................................................. 1185.1.1. Create a sample XML payload............................................................................................1185.1.2. Launch the test tool .............................................................................................................1195.2 Testing the web service using XML SPY...................................................................... 1205.3. Runtime workbench....................................................................................................... 1225.3.1. View Integration Server ......................................................................................................1225.3.2. View Integration Engine .....................................................................................................1235.3.3. View Adapter Engine ..........................................................................................................1245.3.4. View alert inbox..................................................................................................................1255.3.5. Workflow Log.....................................................................................................................1255.3.6. Verify email ........................................................................................................................126
  5. 5. Table of Contents Page 5 of 154GLOSSARY 127APPENDIX A. ABBREVIATIONS USED 132APPENDIX B. DATA TYPES 133XSD – DT_ORDERS............................................................................................................... 133XSD – DT_ORDERRESPONSE............................................................................................. 134XSD – DT_BPM_TRIGGER.................................................................................................... 136APPENDIX C. WSDL FILES 139MI_ORDER.WSDL.................................................................................................................. 139APPENDIX D. EXTERNAL FILES 142XIMAIL30.XSD File for Mail adapter .................................................................................... 142APPENDIX E. MESSAGE MAPPINGS 146MM_Order_to_ORDERS05.................................................................................................... 146MM_Order_to_BPM_TRIGGER............................................................................................. 147MM_ORDERS05_to_OrderResponse .................................................................................. 148MM_ORDRSP_to_BPM_TRIGGER....................................................................................... 149MM_ BPM_to_EMAIL............................................................................................................. 150INDEX 151
  6. 6. Creating a BPM Scenario in XIIntroduction Page 6 of 154IntroductionBackgroundExchange Infrastructure has grown out of the enormously disparate world of – and I usethis in its most general sense – Electronic Data Interchange. Exchange Infrastructure 3.0brings together a lot of technologies. Some of these technologies are open standards thathave been embraced over the years and have become the de facto standard. These areXML and its cousins SOAP, WSDL, XPATH, XSLT and so on. Other technologies areproprietary to SAP AG, like IDOCS, ALE, ABAP Objects and even certain class librariesused by Java.One of the most interesting developments in recent years has been the emergence ofgraphical mapping to chart out an organization’s business processes. One of the leaders inthis has been the ARIS product. SAP and IDS Scheer1have teamed up to bring usBusiness Process Management or BPM. XI plays an important role in this by “linking”the business processes together.This book describes the process to map a BPM scenario in XI. It covers the 5 phasesrequired: System configuration Integration Builder Design Integration Builder Configuration SAP Configuration TestingIt does not try to describe all the functionality that you will encounter in XI and the BPMmodule. After all BPM is larger than just XI and conversely XI is more than just BPM! Itdoes not attempt to provide you with a production solution for the scenario provided. Thescenario is made up to incorporate as many aspects of XI messaging and BPM as isfeasible.A note abote authorization: The tasks in the system configuration phase will take a higerlevel of authorization then the remaining 4 phases. The tasks in the first phase willrequire the role of SAP_XI_ADMINISTRATOR. The remaining for phases can beperformed by a user with the role of SAP_XI_DEVELOPER.1IDS Scheer are the developers of the ARIS product
  7. 7. Creating a BPM Scenario in XIAuthor: Kevin Wilson Page 7 of 154How to use this bookThe book is written in such a way as to be a step by step quick guide to implementing thegiven scenario. It details, as far as possible, every step that is required in order to deliverthe documented scenario. It also assumes, although you may be able to muddle through,that you have a basic knowledge of XI 3.0 and some XML fundamentals.KeyItalic words TransactionsItalic words -> Italic words Menu path to followUnderlined Indicates a Tab on a screenAll figures are labeled with a number. If that figure is referenced in the text then it isreference with this number. For your convenience a table of figures is listed after thetable of contents.The ScenarioAn external system (DEMO) sends an XML representation of an order through to XI. Wewant to transform this order in to a small BPM message destined for the BPM engine andalso transform it in to an ORDERS05 IDoc destined for the CRM system.This ORDERS05 IDoc creates a sales order in CRM which is then replicated to the ECCsystem, via middleware. The sales order in ECC then generates an ORDRSP IDoc whichis then sent to XI. This ORDRSP IDoc is then transformed in to a small BPM messagethat is correlated with the ORDERS BPM message sent earlier. It is also transformed into an order response XML message which is sent through the FTP Adapter to a specificfile on the Integration server. The BPM also has timeout and exception handlingcapabilities using the alert framework as well as the email adapter.Don’t Panic – this all seems rather daunting at this point but the diagram in Figure 1 willsimplify our task considerably!
  8. 8. Creating a BPM Scenario in XIAuthor: Kevin Wilson Page 8 of 154XI ISCRMECCXI BPMIntegration ProcessDEMOOrderXI IS1) MT_ORDER(DT_ORDER)Receiver Determination2a) ORDERS(ORDERS05)Sales Order2b) MI_BPM_TRIGGERMI_BPM_TRIGGERMT_BPM_TRIGGER(DT_BPM_TRIGGER)Sales OrderResponseMiddlewareReceiver Determination3) ORDRSP(ORDERS05)Order Response4a) MT_ORDERRESPONSE(DT_ORDERRESPONSE)4b) MI_BPM_TRIGGER_MATCHMI_BPM_TRIGGER_MATCHMT_BPM_TRIGGER(DT_BPM_TRIGGER)DocNumSOAPFTPIDOCIDOCEmail ClientOrder ResponseFaliureMAIL4c) XI_MAILFigure 1: BPM Scenario
  9. 9. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 9 of 154PHASE 1 : SYSTEM CONFIGURATIONWe have 4 “systems” in our scenario: The Demo system sending the order in XML format The CRM system that receives the ORDERS IDoc in order to create a sales order The ECC system that sends the ORDRSP IDoc to XI and ultimately to an emailaddress The XI system housing the interfaces, the BPM scenario and the adapterframeworkWe’ll go through configuring the Demo system as a Software Component. Furthermorewe will assume that the CRM and ECC business systems have been set up and importedin to the Integration Directory. We’ll be covering the adding of the communicationchannels (We will use the IDoc adapter) to these business services.All our design work will be done under the DEMOCOMPONENT Software Component.1.1. Software ComponentSo, let’s get going with our first task. We need to configure the DEMO system if it’s not apart of the business landscape. In our case we need to create DEMOCOMPONENT as aSoftware Component in the SLD. Most SAP shops do not allow just anyone into theSLD. This task is usually performed by a development lead or basis. You will need theSAP_XI_ADMINISTRATOR or SAP_XI_CONTENT ORGANIZER role to perform theSLD tasks. You may need to have basis set this up for you.1. Log in to the XI server2. Run transaction SXMB_IFR to start the Integration BuilderFigure 2: Integration Builder3. Start System Landscape Directory4. Click on Software Catalog
  10. 10. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 10 of 1545. Click on New Product6. Enter a vendor, name and version and Create7. Now you need to add a Software Component. Enter Vendor, name (SoftwareComponent name), version and Create8. Your Software Component should look like that shown in Figure 3Figure 3: Software Component Version1.2. Clear SLD Cache1. Fire up the Integration Directory (CONFIGURATION)2. Clear the cache using the menu option as shown in Figure 4: Environment ->Clear SLD Data Cache2.Figure 4: Clear SLD Cache Data1.3. Import Software Component1. Start the Integration Repository2. Import your Software Component. From the menu choose Tools -> Transfer fromSystem Landscape Directory -> Import Software Component Versions2The Systems Landscape Directory can be viewed as a separate entity to the Integration Builder.So, if we had to access the SLD from the Integration Builder every time we made a change, itwould slow the whole process down considerably. The obvious solution was to provide a cachethat holds the SLD information within the Integration Builder. Unfortunately this means that whenwe make a change to the SLD – our changes will not be picked up by the Integration Builder. Forthis reason we always clear the SLD cache and reload the SLD Software Components.
  11. 11. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 11 of 154Figure 5: Import Software Component Version3. Select Demo component and click Import4. Once it’s been successfully imported click exit5. Double click your Software Component version DEMOCOMPONENT6. Create a namespace (http://www.demo.com/xi) and SaveFigure 6: Create Namespace
  12. 12. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 12 of 154PHASE 2 : INTEGRATION BUILDER DESIGNIn order to map an interface we need certain elements to be defined. We define theseelements in the integration repository. These elements include: Data Type Message Type Message interface Message Mapping Mapping InterfaceInterfaceMessage Interface(WSDL)Message Type(XSD)Data Type(XSD)MappingInterface Mapping(Receiver Determination,Interface Determination,Sender agreement,Receiver agreement)Message MappingFigure 7: XI Interface ProcessThese elements will then be used in the XI configuration phase to assemble the requiredinterface.2.1. External DefinitionsThe email XSD provided by SAP needs to be uploaded as an external definition. Thiswill save us a huge amount of work since we now have a preformatted structure to use inour interface. This is just one of the cool new features with XI 3.0!
  13. 13. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 13 of 1542.1.1. XI_MAIL1. Open up your applicable namespace under the DEMCOMPONENT softwarecomponent2. Open Interface Objects3. Right click External Definitions -> New4. Enter Name (XI_MAIL) and Description -> Create5. Change category to XSDFigure 8: External Definition Category6. Click to “Import External Definitions”7. Browse to the XIMAIL30.XSD file -> Open (See definition at APPENDIX C)8. Your External definition should look like that shown in Figure 9Figure 9: External Definition - Mail Message Definition9. Check that your External Definition has 3 messages associated with it as shown inFigure 10. We do this by clicking on the Messages tab. This is an important step,if you do not see the messages defined here; there was a problem with the import.
  14. 14. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 14 of 154Figure 10: External Definition - Mail MessagesNaming ConventionsAt this point I’d like a quick word, if you don’t mind. It’s important that we emphasize theimportance of Naming Conventions here. As you have probably noticed, Data Types have aprefix of DT, Message Types have a prefix of MT, Message Interfaces have MI and so on. This isnot the whole picture, however. You may want to qualify the interfaces further by using a suffix ofOUT for outbound (Remember this is outbound from the server – never from XI) and IN forinbound. Trust us, (We’re professionals), defining your standards up front will take away hours offrustration later.2.2. Data TypesNow that we have our mail structure, we need to create 3 new data types (It may be agood idea to read the sidebar on “Naming Conventions” first): DT_ORDER: The XML definition of the order message being sent in from thedemo vendor using the SOAP protocol DT_ORDERRESPONSE: The XML definition of the order response messagebeing save to an FTP drive DT_BPM_TRIGGER: A small XML message that we will use to send throughthe BPM process. Whenever possible, it’s best not to send large files through theBPM process. Both the ORDERS and ORDERRESPONSE messages will create amessage of this type which will be correlated with each otherLet’s have a look at each of these Data Types in more detail:
  15. 15. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 15 of 1542.2.1. DT_ORDERS1. Right click data types -> New2. Enter Name and Description -> Create3. Complete the definition as shown in Figure 11 (See the XSD definition inAPPENDIX A on page 132) and yes, if you’re feeling lazy, you could just importthis – but keying it in will give you a better understanding of the whole process!Figure 11: Data Type - DT_ORDERS4. Save2.2.2. DT_ORDERRESPONSE1. Right click data types -> New2. Enter Name and Description -> Create3. Complete the definition as shown in Figure 12 (See the XSD definition inAPPENDIX A on page 134)Figure 12: Data Type - DT_ORDERRESPONSE
  16. 16. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 16 of 1544. Save2.2.3. DT_BPM_TRIGGER1. Right click data types -> New2. Enter Name and Description -> Create3. Complete the definition as shown in Figure 13 (See the XSD definition inAPPENDIX A on page 136)Figure 13: Data Type - DT_BPM_TRIGGER4. Save2.3. Message TypesNow that we have the data types we need to build the next “layer” up by creating 3message types: MT_ORDER: Linked to Data type DT_ORDER and used in Message InterfaceMI_ORDER MT_ORDERRESPONSE: Linked to Data type DT_ORDERRESPONSE andused in Message Interface MI_ORDERRESPONSE MT_BPM_TRIGGER: Linked to Data type DT_BPM_TRIGGER and used inMessage Interfaces MI_BPM_TRIGGER (Orders) andMI_BPM_TRIGGER_MATCH (Order Response)Let’s have a look at each of these in more detail:
  17. 17. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 17 of 1542.3.1. MT_ORDER1. Right mouse click Message Types -> New2. Enter Name and Description -> Create3. Select the data type DT_ORDER by clickingFigure 14: Message Type - MT_ORDER4. Save2.3.2. MT_ORDERRESPONSE1. Right mouse click Message Types -> New2. Enter Name and Description -> Create3. Select the data type DT_ORDERRESPONSE by clicking
  18. 18. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 18 of 154Figure 15: Message Type - MT_ORDERRESPONSE4. Save2.3.3. MT_BPM_TRIGGER1. Right mouse click Message Types -> New2. Enter Name and Description -> Create3. Select the data type DT_BPM_TRIGGER by clickingFigure 16: Message Type - MT_BPM_TRIGGER4. Save
  19. 19. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 19 of 1542.4. Message InterfacesRight! Take a coffee break here if you need one. The next “layer” is the MessageInterface layer. We need to create 5 Message Interfaces. Go back to the diagram inFigure 1 on page 8 to refresh your memory: MI_ORDER: Outbound asynchronous interface of type MT_ORDER. Thisinterface will be configured with 2 receivers. 1 being the CRM system receivingthe ORDERS IDoc using the IDoc adapter and the second being the Integrationprocess for the message interface MI_BPM_TRIGGER. We’ll also configure aSender Agreement for this message interface for the SOAP call using the SOAPadapter MI_ORDERRESPONSE: Inbound asynchronous interface of typeMT_ORDERRESPONSE. This will be configured between the ECC and DEMOsystem. The DEMO system will receive the Order Response via the FILE adapter MI_EMAIL: Abstract asynchronous interface of External Definition typeXI_MAIL (Configured in 2.1.1. XI_MAIL) MI_BPM_TRIGGER: Abstract asynchronous interface of typeMT_BPM_TRIGGER. This will serve as the interface for the ORDER messagegetting to the BPM engine. It will be correlated with theMI_BPM_TRIGGER_MATCH using the DocNum field MI_BPM_TRIGGER_MATCH: Abstract asynchronous interface of typeMT_BPM_TRIGGER. This will serve as the interface for theORDERRESPONSE message getting to the BPM engine. It will be correlatedwith the MI_BPM_TRIGGER using the DocNum field. This is the terminatingportion of the BPM process2.4.1. MI_ORDER1. Right mouse click Message Interfaces -> New2. Enter Name and Description -> Create3. Select Outbound and Asynchronous4. Select the Message type MT_ORDER by clicking5. Your Message Interface should look like that shown in Figure 17
  20. 20. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 20 of 154Figure 17: Message Interface - MI_ORDER6. Save2.4.2. MI_ORDERRESPONSE1. Right mouse click Message Interfaces -> New2. Enter Name and Description -> Create3. Select Inbound and Asynchronous4. Select the Message type MT_ORDERRESPONSE by clicking5. Your Message Interface should look like that shown in Figure 18Figure 18: Message Interface - MI_ORDERRESPONSE6. Save2.4.3. MI_BPM_TRIGGER1. Right mouse click Message Interfaces -> New2. Enter Name and Description -> Create
  21. 21. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 21 of 1543. Select Abstract and Asynchronous4. Select the Message type MT_BPM_TRIGGER by clicking5. Your Message Interface should look like that shown in Figure 19Figure 19: Message Interface - MI_BPM_TRIGGER6. Save2.4.4. MI_BPM_TRIGGER_MATCH1. Right mouse click Message Interfaces -> New2. Enter Name and Description -> Create3. Select Abstract and Asynchronous4. Select the Message type MT_BPM_TRIGGER by clicking5. Your Message Interface should look like that shown in Figure 20Figure 20: Message Interface - MI_BPM_TRIGGER_MATCH6. Save
  22. 22. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 22 of 1542.4.5. MI_EMAIL1. Right mouse click Message Interfaces -> New2. Enter Name and Description -> Create3. Select Abstract and Asynchronous4. Select the External Definition XI_MAIL - Mail by clicking5. Expand External Definitions -> XI_MAIL6. Select Mail as shown in Figure 21Figure 21: Message Interface - Select Mail Message7. Your Message Interface should look like that shown in Figure 22Figure 22: Message Interface - MI_EMAIL8. Save2.5. Import IDoc TypeOnly perform this step if you do not already have access to the applicable IDoc messagetype in one of the Software Components. You should see it there if you do! We willimport the IDoc types to the DEMO component. (Have a look at Figure 23).
  23. 23. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 23 of 1542.5.1. ORDERS.ORDERS05 and ORDRSP.ORDERS051. Under the DEMO component - right mouse click on imported objects -> New2. Enter system and login details -> Continue3. When the results come back expand the IDoc tree4. Select the applicable IDocs (ORDERS.ORDERS05 and ORDRSP.ORDERS05) ->FinishFigure 23: Importing IDoc Types2.6. Message MappingOK now we need to bring these all together with Message Mappings! We will need tocreate the 5 Message Mappings that we need as follows: MM_Order_to_ORDERS05: The MT_ORDER Message TypeError!Bookmark not defined. will be mapped to the ORDERS (ORDERS05) IDoc MM_Order_to_BPM_TRIGGER: The MT_ORDER Message Type will also bemapped to the small MT_BPM_TRIGGER message type which will be used tokick off the BPM scenario MM_ORDERS05_to_OrderResponse: The ORDRSP (ORDERS05) IDoc willbe sent from the ECC system and mapped to the MT_ORDERRESPONSE XMLMessage Type MM_ORDRSP_to_BPM_TRIGGER: The ORDRSP (ORDERS05) IDoc willalso be mapped to our MT_BPM_TRIGGER message type which will correlate tothe ORDERS BPM message and effectively end the BPM process MM_BPM_to_EMAIL: This is a mapping between the message typeMT_BPM_TRIGGER and the XI_MAIL -> Mail External Definition Type whichwill form an email message. This will be used in the BPM process to send out anemail message when the Order Response message is not received in a specifiedperiod of time
  24. 24. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 24 of 1542.6.1. MM_Order_to_ORDERS051. Open Mapping Objects2. Right mouse click Message Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source message and enter MT_ORDER messagetype5. Click the button to choose a target message and enter ORDERS.ORDERS05message type6. Perform the mappings. See APPENDIX E on page 146 for the detailed mapping7. Your mapping should look as follows:Figure 24: Message Mapping - MM_Order_to_ORDERS058. Save2.6.2. MM_Order_to_BPM_TRIGGER1. Open Mapping Objects2. Right mouse click Message Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source message and enter MT_ORDER messagetype5. Click the button to choose a target message and enter MT_BPM_TRIGGERmessage type6. Perform the mappings. See APPENDIX E on page 147 for the detailed mapping
  25. 25. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 25 of 1547. Your mapping should look as follows:Figure 25: Message Mapping - MM_Order_to_BPM_TRIGGER8. Save2.6.3. MM_ORDERS05_to_OrderResponse1. Open Mapping Objects2. Right mouse click Message Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source message and enter ORDRSP.ORDERS05message type5. Click the button to choose a target message and enter MT_ORDERRESPONSEmessage type6. Perform the mappings. See APPENDIX E on page 148 for the detailed mapping7. Your mapping should look as follows:
  26. 26. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 26 of 154Figure 26: Message Mapping - MM_ORDERS05_to_OrderResponse8. Save2.6.4. MM_ORDRSP_to_BPM_TRIGGER1. Open Mapping Objects2. Right mouse click Message Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source message and enter ORDRSP.ORDERS05message type5. Click the button to choose a target message and enter MT_BPM_TRIGGERmessage type6. Perform the mappings. See APPENDIX E on page 149 for the detailed mapping7. Your mapping should look as follows:
  27. 27. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 27 of 154Figure 27: Message Mapping - MM_ORDRSP_to_BPM_TRIGGER8. Save2.6.5. MM_BPM_to_EMAIL1. Open Mapping Objects2. Right mouse click Message Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source message and enter MT_BPM_TRIGGERmessage type5. Click the button to choose a target message and enter XI_MAIL->Mailmessage type6. Perform the mappings. See APPENDIX E on page 150 for the detailed mapping7. Your mapping should look as follows:
  28. 28. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 28 of 154Figure 28: Message Mapping - MM_BPM_to_EMAIL8. Save2.7. Interface MappingThis is a good point to review what we’ve done so far. We’ve created the necessarydata types, XSD imports, message types, Message Interfaces, imported IDocs and createdMessage Mappings. Whew! A lot of work I know, but we’re nearly there! We now needto bring this all together by creating 5 interface mappings as follows: IM_Order_to_ORDERS05:o Source interface: MI_ORDERo Target interface: ORDERS.ORDERS05o Message mapping: MM_Order_to_ORDERS05Error! Bookmark not defined. IM_Order_to_BPM_TRIGGER:o Source interface: MI_ORDERo Target interface: MI_BPM_TRIGGERo Message mapping: MM_Order_to_BPM_TRIGGER IM_ORDRSP_to_OrderResponse:o Source interface: ORDRSP.ORDERS05o Target interface: MI_ORDERRESPONSEo Message mapping MM_ORDERS05_to_OrderResponse IM_ORDRSP_to_BPM_TRIGGER_CATCH:o Source interface: ORDRSP.ORDERS05o Target interface: MI_BPM_TRIGGER_MATCHo Message mapping MM_ORDRSP_to_BPM_TRIGGER IM_BPM_to_EMAIL:o Source interface: MI_BPM_TRIGGERo Target interface: MI_EMAIL
  29. 29. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 29 of 154o Message mapping: MM_BPM_to_EMAIL2.7.1. IM_Order_to_ORDERS051. Open Mapping Objects2. Right mouse click Interface Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source interface and enter Message InterfaceMI_ORDER -> Apply5. Click the button to choose a target interface and enter ORDERS.ORDERS05(Imported Objects -> IDocs) -> Apply6. Save7. The Message Type MT_ORDER and ORDERS.ORDERS05 are displayed as thesource and target message types respectively.8. Click the button in the mapping program name to choose Message MapMM_Order_to_ORDERS059. Your Interface Mapping should look as shown in Figure 29Figure 29: Interface Mapping - IM_Order_to_ORDERS0510. Save2.7.2. IM_Order_to_BPM_TRIGGER1. Open Mapping Objects2. Right mouse click Interface Mappings -> New
  30. 30. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 30 of 1543. Enter Name and Description -> Create4. Click the button to choose a source interface and enter Message InterfaceMI_ORDER -> Apply5. Click the button to choose a target interface and enter Message InterfaceMI_BPM_TRIGGER -> Apply6. Save7. The Message Type MT_ORDER and MT_BPM_TRIGGER are displayed as thesource and target message types respectively.8. Click the button in the mapping program name to choose Message MapMM_Order_to_BPM_TRIGGER9. Your Interface Mapping should look as shown in Figure 30Figure 30: Interface Mapping - IM_Order_to_BPM_TRIGGER10. Save2.7.3. IM_ORDRSP_to_OrderResponse1. Open Mapping Objects2. Right mouse click Interface Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source interface and enter ORDRSP.ORDERS05(Imported Objects -> IDocs) -> Apply5. Click the button to choose a target interface and enter Message InterfaceMI_ORDERRESPONSE -> Apply6. Save7. The Message Type ORDRSP.ORDERS05 and MT_ORDERRESPONSE aredisplayed as the source and target message types respectively.
  31. 31. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 31 of 1548. Click the button in the mapping program name to choose Message MapMM_ORDERS05_to_OrderResponse9. Your Interface Mapping should look as shown in Figure 31Figure 31: Interface Mapping - IM_ORDRSP_to_OrderResponse10. Save2.7.4. IM_ORDRSP_to_BPM_TRIGGER_CATCH1. Open Mapping Objects2. Right mouse click Interface Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source interface and enter ORDRSP.ORDERS05(Imported Objects -> IDocs) -> Apply5. Click the button to choose a target interface and enter Message InterfaceMI_BPM_TRIGGER_MATCH -> Apply6. Save7. The Message Type ORDRSP.ORDERS05 and MT_BPM_TRIGGER aredisplayed as the source and target message types respectively.8. Click the button in the mapping program name to choose Message MapMM_ORDRSP_to_BPM_TRIGGER9. Your Interface Mapping should look as shown in Figure 32
  32. 32. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 32 of 154Figure 32: Interface Mapping - IM_ORDRSP_to_BPM_TRIGGER_CATCH10. Don’t forget to Save!2.7.5. IM_BPM_to_EMAIL1. Open Mapping Objects2. Right mouse click Interface Mappings -> New3. Enter Name and Description -> Create4. Click the button to choose a source interface and enter Message InterfaceMI_BPM_TRIGGER -> Apply5. Click the button to choose a target interface and enter Message InterfaceMI_EMAIL -> Apply6. Save7. The Message Type MT_BPM_TRIGGER and Mail (From External DefinitionXI_MAIL) are displayed as the source and target message types respectively.8. Click the button in the mapping program name to choose Message MapMM_BPM_to_EMAIL9. Your Interface Mapping should look as shown in Figure 33
  33. 33. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 33 of 154Figure 33: Interface Mapping - IM_BPM_to_EMAIL10. Save2.8. Integration ScenarioThe Integration Scenario is a great way to document (Yes we know, it’s sometimes seenas a bad word) your BPM process. This is the fun part as a reward for all your hard workso far. We need to first create our actions before we can put together our integrationscenario. Again, notice the descriptive names we use for these actions.2.8.1. Actions6 Actions need to be created as follows: Send_Order: Demo system sends order using Message InterfaceMI_ORDER. It has 2 receivers, being the Integration Process(IP_ORDER) and the CRM system Receive_Order: Receive the ORDERS IDoc in to the CRM system Receive_BPM_TRIGGER: Receive the Message TypeMT_BPM_TRIGGER via the Message Interface MI_BPM_TRIGGER.This will be correlated (through field DocNum) to theMI_BPM_TRIGGER_MATCH Message Interface Send_OrderResponse: Send the ORDRSP IDoc from the ECC system.This IDoc will then have 2 receivers, being the Integration Process(IP_ORDER) and the DEMO system Receive_OrderResponse: Receive the Message TypeMT_OrderResponse via Message Interface MI_ORDERRESPONSE
  34. 34. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 34 of 154 Receive_BPM_TRIGGER_MATCH: Receive the Message TypeMT_BPM_TRIGGER via the Message InterfaceMI_BPM_TRIGGER_MATCH. This then correlates (through fieldDocNum) to the MI_BPM_TRIGGER Message Interface of theSend_Order action2.8.1.1. Send_Order1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Send_Order and Description -> Create4. Enter type of Usage: External5. Since this action represents an outbound interface, click the icon under theOutbound Interfaces tab6. Drag and Drop your Message Interface MI_ORDER in to the new line ofOutbound Interfaces. Ensure the full Object Type (Message Interface), Name(MI_ORDER) and Namespace (http://www.demo.com/XI) are entered7. Your action will look as shown in Figure 34Figure 34: Action - Send_Order8. Save
  35. 35. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 35 of 1542.8.1.2. Receive_Order1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Receive_Order and Description -> Create4. Enter type of Usage: External5. Since this action represents an inbound interface, click the icon under theInbound Interfaces tab6. Drag and Drop your Imported Object IDoc ORDERS.ORDERS05 in to the newline of Inbound Interfaces. Ensure the full Object Type (IDoc), Name(ORDERS.ORDERS05) and Namespace (urn:sap-com:document:sap:idoc:messages) are entered7. Your action will look as shown in Figure 35Figure 35: Action - Receive_Order8. Save2.8.1.3. Receive_BPM_TRIGGER1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Receive_BPM_TRIGGER and Description -> Create4. Enter type of Usage: External5. Since this action represents an inbound interface, click the icon under theInbound Interfaces tab
  36. 36. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 36 of 1546. Drag and Drop your Message Interface MI_BPM_TRIGGER in to the new line ofInbound Interfaces. Ensure the full Object Type (Message Interface), Name(MI_BPM_TRIGGER) and Namespace (http://www.demo.com/XI) are entered7. Your action will look as shown in Figure 36Figure 36: Action - Receive_BPM_TRIGGER8. Save2.8.1.4. Send_OrderResponse1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Send_OrderResponse and Description -> Create4. Enter type of Usage: External5. Since this action represents an outbound interface, click the icon under theOutbound Interfaces tab6. Drag and Drop your Imported Object IDoc ORDRSP.ORDERS05 in to the newline of Outbound Interfaces. Ensure the full Object Type (IDoc), Name(ORDRSP.ORDERS05) and Namespace (urn:sap-com:document:sap:idoc:messages) are entered7. Your action will look as shown in Figure 37
  37. 37. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 37 of 154Figure 37: Action - Send_OrderResponse8. Save2.8.1.5. Receive_OrderResponse1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Receive_OrderResponse and Description -> Create4. Enter type of Usage: External5. Since this action represents an inbound interface, click the icon under theInbound Interfaces tab6. Drag and Drop your Message Interface MI_ORDERRESPONSE in to the newline of Inbound Interfaces. Ensure the full Object Type (Message Interface),Name (MI_ORDERRESPONSE) and Namespace (http://www.demo.com/XI) areentered7. Your action will look as shown in Figure 38
  38. 38. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 38 of 154Figure 38: Action - Receive_OrderResponse8. Save2.8.1.6. Receive_BPM_TRIGGER_MATCH1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name Receive_BPM_TRIGGER_MATCH and Description -> Create4. Enter type of Usage: External5. Since this action represents an inbound interface, click the icon under theInbound Interfaces tab6. Drag and Drop your Message Interface MI_BPM_TRIGGER_MATCH in to thenew line of Inbound Interfaces. Ensure the full Object Type (Message Interface),Name (MI_BPM_TRIGGER_MATCH) and Namespace(http://www.demo.com/XI) are entered7. Your action will look as shown in Figure 39
  39. 39. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 39 of 154Figure 39: Action - Receive_BPM_TRIGGER_MATCH8. Save2.8.2. Integration ScenarioThe integration scenario is where things start to get exciting! It brings your actionstogether with the system components, showing the interfacing between the systems.2.8.2.1. IS_Orders1. Open Integration Scenarios & Integration Processes2. Right mouse click Actions -> New3. Enter Name IS_Orders and Description -> Create4. Right mouse click the first swim lane on the left and Insert ApplicationComponent
  40. 40. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 40 of 154Figure 40: Integration Scenario - Insert Software Component5. Choose the DEMO system -> OKFigure 41: Integration Scenario - Choose Product Version6. Enter Name PurchaseOrderCreation under the Role tab7. Click the Further Attributes tab and enter extended name Order8. Your application component should look as described in Figure 42
  41. 41. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 41 of 154Figure 42: Integration Scenario - Application Component9. Click Apply10. Your Integration Scenario should now look as described in Figure 43. Note thatthese vertical columns that we are building up are termed “Swim Lanes”. Ifyou’ve done any swimming you’ll know why, if not don’t worry about it.Figure 43: Integration Scenario - Component Added11. Similarly - now we need to add 3 more systems:a. Integration Process (Template Type)b. CRM (Business System)c. ECC (Business System)12. Right mouse click the second swim lane and Insert Application Component13. Select Template -> Enter role name IntegrationProcess14. Select Further Attributes tab15. Enter XI BPM in the Extended Name field16. Click Apply17. Right mouse click the third swim lane and Insert Application Component
  42. 42. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 42 of 15418. Select your business System for CRM entering the Role name and Extended nameattributes -> Apply19. Right mouse click the forth swim lane and Insert Application Component20. Select your business System for ECC entering the Role name and Extended nameattributes -> Apply21. Your Integration Scenario should now have 4 swim lanes and look as shown inFigure 44Figure 44: Integration Scenario - Swim lanes22. Now we need to add our actions that we created earlier to the IntegrationScenario – are you getting excited yet?23. Right mouse click the Order swim lane at the top -> Insert ActionFigure 45: Integration Scenario - Insert Action24. Expand your Software Component for the Demo system and select the ActionSend_Order -> Apply as shown in Figure 46
  43. 43. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 43 of 154Figure 46: Integration Scenario - Insert Send_Order25. Your Integration Scenario now looks as described in Figure 47Figure 47: Integration Scenario - Send_Order added26. We now will add the 2 receive actions. One in the integration process and 1 in theCRM system27. Another way of adding actions is to drag and drop them on to the right swimlane at the right position. This is pretty cool so we’ll use this technique to add allthe actions!28. Drag the Receive_BPM_TRIGGER to the 2ndswim lane below the level of thesend order action (this ensures that it’s not treated as a parallel action to the sendorder. We need this in order to link them together).29. Similarly Drag the Receive_Order to the 3rdswim lane (CRM) below the level ofthe send order action and adjacent to the Receive_BPM_TRIGGER action (againthis tells XI not to treat these as parallel or synchronous actions).
  44. 44. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 44 of 154Figure 48: Integration Scenario - Added Receive Order30. Now add the last 3 actions (to end up with a view as shown in Figure 49) asfollows:a. Send_OrderResponse in ECC system down and to the right of Receive_Orderb. Receive_OrderResponse in Demo system down and to the left of Send_OrderResponsec. Receive_BPM_TRIGGER_MATCH in Integration Process template down and to the leftof Send_OrderResponse and adjacent to Receive_OrderResponseFigure 49: Integration Scenario - All actions added31. This is great! We have all the actions, but now we need to focus on linking theactions together32. Single click the Send_Order action -> Hold down the Shift Key and single clickthe Receive_BPM_TRIGGER action to select both33. Right mouse click one of the selected actions -> Create Connection BetweenSelected Actions as shown in Figure 50
  45. 45. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 45 of 154Figure 50: Integration Scenario - Create connection between actions34. The screen displaying the connection between outbound interface MI_ORDERand inbound interface MI_BPM_TRIGGER should be displayed35. Click the Assign Mapping tab36. Click the button in the Assign Interface Mapping Name field to chooseInterface Map IM_Order_to_BPM_TRIGGER37. Click Apply38. An arrow is now drawn from Send_Order to Receive_BPM_TRIGGER as shownin Figure 51Figure 51: Integration Scenario - Connection added39. Similarly connect the following actions together and add the respective interfacemappings shown in parentheses:a. Send_Order -> Receiver_Order (IM_Order_to_ORDERS05)b. Send_OrderResponse -> Receive_OrderResponse (IM_ORDRSP_to_OrderResponse)c. Send_OrderResponse -> Receive_BPM_TRIGGER_MATCH(IM_ORDRSP_to_BPM_TRIGGER_CATCH)40. Your integration scenario should now look as shown in Figure 52
  46. 46. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 46 of 154Figure 52: Integration Scenario - Completed Connections41. We can now define our action start and end points42. The Send_Order is our start action so Right mouse click Send_Order43. Click Define Action as Start Action as shown in Figure 53Figure 53: Integration Scenario - Define start action44. Similarly we will define the Receive_OrderResponse andReceive_BPM_TRIGGER_MATCH actions as end actions45. Right mouse click Receive_OrderResponse and select Define Action as EndAction46. Right mouse click Receive_BPM_TRIGGER_MATCH and select Define Action asEnd Action47. After completion of the definition of the Integration Process described in 2.9.Integration Process starting on page 47, you need to add the Integration Process tothe Integration Process Componenta. Double click the Integration Process component and select the IntegrationProcess tabb. Select IP_ORDERS as the name from the dropdown listc. Your definition should now look as shown in Figure 54
  47. 47. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 47 of 154Figure 54: Integration Scenario - Link Integration Process48. Your overall Integration Scenario IS_Orders should look as shown in Figure 55Figure 55: Integration scenario – IS_Orders2.9. Integration ProcessThe integration process handles the workflow within the BPM engine. It is based onSAP’s webflow (workflow) engine.The integration process that we need will contain the following functionality: Receive the order message (Abstract interface MI_BPM_TRIGGER). Activatecorrelation on field DocNum Assign DocNum to a container element called DocNum Wait for the receipt of the order response message (Abstract interfaceMI_BPM_TRIGGER_MATCH). Use correlation on DocNum
  48. 48. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 48 of 154 If the order response message does not come in 5 minutes, then fire off an alertand send an email If the order response message is received in time then end the process gracefully If the entire integration process does not end in 30 minutes then fire off an alertand cancel the process. This prevents an orphan process from hanging around inthe BPM engine forever, which will use unnecessary resources.For the completed view of what we will develop see Figure 56. We will be working in theContainer, Properties and Graphical Definition windows. We will also switch to theCorrelation Editor to perform the correlation mapping there.Figure 56: Integration Process - Completed2.9.1. IP_Orders1. Open Integration Scenarios & Integration Processes2. Right mouse click Integration Processes -> New3. Enter Name IP_Orders and Description -> Create4. First thing to do is to add our required container elements
  49. 49. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 49 of 154STEP 1 - Create Container Elements1. In the container window, type DocNum in the name field and enter. The defaultsare good for this variable – so we’ll use them2. To add the Orders message, type Orders in the name field and choose Abstractinterface in the Category field – see figure 57 belowFigure 57: Integration Process - Add message to container3. Click the button in the Type field to choose Message InterfaceMI_BPM_TRIGGER4. To add the Order Response message, type OrderResponse in the name field andchoose Abstract interface in the Category field5. Click the button in the Type field to choose Message InterfaceMI_BPM_TRIGGER_MATCH6. The container should look as shown in Figure 58Figure 58: Integration Process – ContainerSTEP 2 – Add Receiver Orders Step and set up correlation1. We now need to add the first step in the process, the receive orders step2. Click, drag and drop the receiver step from the side bar on the GraphicalDefinition window to between the start and stop circles as shown in Figure 59(Orange lines will denote where the step will be inserted if you were to let themouse button go at that point)Figure 59: Integration Process - Add receiver step3. In the Properties window you will notice that the Receive step is displayed there.
  50. 50. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 50 of 1544. Change the step name from Receive1 to ReceiveOrders5. Click the button in the Message field to choose the Interface Variable ->Orders (as shown in Figure 60) -> OKFigure 60: Integration Process - Interface Variable6. We now need to create a correlation field called DocNum7. In the Container window click and select Correlation List as shown in Figure61Figure 61: Integration Process - Correlation List8. Enter DocNum in the Correlation Name field and Enter9. In the Graphical Definition window click to fire up the Correlation Editor asshown in Figure 62Figure 62: Integration Process - Fire up Correlation Editor10. Ensure that your Correlation Name is DocNum as shown in Figure 6311. Enter DocNum in the Correlation Container -> Name with type xsd:string12. We now need to add our 2 Message Interfaces involved in the correlation, namelyMI_BPM_TRIGGER and MI_BPM_TRIGGER_MATCH (Remember them?)13. Drag the Message Interface MI_BPM_TRIGGER to the Involved Messageswindow (to the blank line). Your screen should look as shown in Figure 63
  51. 51. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 51 of 154Figure 63: Integration Process - Adding involved messages14. Click the button in the Value field15. Select radio button Interface Variable -> XPath16. Choose the DocNum field from the MT_BPM_TRIGGER message -> OK asshown in Figure 64Figure 64: Integration Process - Expression Editor17. Drag the Message Interface MI_BPM_TRIGGER_MATCH to the InvolvedMessages window (to the blank line).18. Click the button in the Value field to choose the DocNum field from theMT_BPM_TRIGGER_MATCH message (similarly as done for theMT_BPM_TRIGGER message interface above) -> OK19. Your correlation should now look as shown in Figure 65Figure 65: Integration Process - Correlation20. Go back to the Properties window by selecting and Graphical Definition asshown in Figure 66
  52. 52. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 52 of 154Figure 66: Integration Process - Graphical Definition21. With the receive orders step highlighted, click the Value field next to the ActivateCorrelation name and choose DocNum as shown in Figure 67Figure 67: Integration Process - Activate Correlation22. The ReceiverOrders step properties should look as shown in Figure 68Figure 68: Integration Process - Activate CorrelationSTEP 3 – Create Container Operation step to assign DocNum1. Drag the container operation step icon to between the Receive Orders step andthe Stop marker as shown in Figure 69Figure 69: Integration Process - Add Container operation2. In the Properties window3. Change the step name to Assign DocNum4. Click on the Target field and select Radio Button Simple Variable5. Choose variable DocNum as shown in Figure 70Figure 70: Integration Process - Select variable from container
  53. 53. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 53 of 1546. Choose Assign as the operation7. Click on the Expression field and select Radio Button Interface Variable8. Select XPath radio button9. Select the DocNum field from the MT_BPM_TRIGGER message as shown inFigure 71Figure 71: Integration Process - Select DocNum from Message10. Your scenario and Container Operation step should look as shown in Figure 72Figure 72: Integration Process - Container Operation step addedSTEP 4 – Create Block1. Drag the block step icon to between the Container Operation Step and the Stopmarker as shown in Figure 73Figure 73: Integration Process - Add Block2. Select the block3. In the Properties window
  54. 54. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 54 of 1544. Give the block a descriptive name “Block Receive with Deadline”5. Leave mode as default6. Enter 2 exceptions:a. TimeOutb. SystemError7. Your block definition should now look as shown inFigure 74: Integration Process - Block definitionSTEP 5 – Create deadline branch for the block1. Right mouse click on the block -> Insert -> Deadline Branch as shown in Figure75Figure 75: Integration Process - Insert Deadline Branch2. A new branch is created inside the block for the deadline3. Select the deadline branch to complete the properties4. We are going to set the deadline to 24 hours from the time the step was created5. In the Properties window6. Choose Creating the Step for Reference Date / Time7. Enter 24 for Duration8. Select Hours as the Unit
  55. 55. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 55 of 154Figure 76: Integration Process - Deadline branchSTEP 5a – Create process control step to throw alert in deadline branch1. Drag the control step icon to the centre of the block created in the step beforeas shown in Figure 77Figure 77: Integration Process - Add Control step2. Select the control step3. In the Properties window4. Change the step name to something meaningful like Deadline Reached5. Select Throw Alert from the dropdown for the Action6. Type in TESTALERT, as configured in 2.10.1. TESTALERT on page 637. Type in an informative alert message such as Order Response has yet to bereceived for &DocNum&. &DocNum& refers to the variable in the BPM container calledDocNum that was populated by the Container Operation step defined in STEP 3 – CreateContainer Operation step to assign DocNum on page 52STEP 5b – Create transformation step to generate email message in deadlinebranch1. In the Container Window create a variable as follows:a. Name: BPM_EMAILb. Category: Abstract Interfacec. Type: From the dropdown select message interface MI_EMAILd. Container: Block Receive with DeadlineThe container element should now look as shown in Figure 78Figure 78: Integration Process - Add container element2. Drag the transformation step icon to between the control step created in thestep before and the end of the block as shown in Figure 79
  56. 56. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 56 of 154Figure 79: Integration Process - Add Transformation step3. Select the transformation step4. In the Properties window5. Change the step name to something meaningful like TransformationAlertEmail6. Click the icon next to the Interface Mapping to select your interface mapIM_BPM_to_EMAIL that you defined in 2.7.5. IM_BPM_to_EMAIL on page 327. Select SystemError from the dropdown for field Exception. This system errorexception was defined against the block defined in STEP 4 – Create Block on page 538. For the source message, from the dropdown ( ), select the Orders InterfaceVariable as shown in Figure 80Figure 80: Integration Process - Enter Orders Variable9. For the target message, from the dropdown ( ), select the BPM_EMAILInterface Variable created in item 1 of this step.10. Your transformation step should now look as shown in Figure 81Figure 81: Integration Process - Transformation step propertiesSTEP 5c – Create send step to send email in deadline branch1. In the Graphical Definition window drag the send step icon to between thetransformation step created in the step before and the end of the block as shown inFigure 82
  57. 57. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 57 of 154Figure 82: Integration Process - Add Send step2. Select the send step3. In the Properties window4. Change the step name to something meaningful like SendAlertEMail5. Leave Mode as Asynchronous6. For the message, from the dropdown ( ), select the BPM_EMAIL InterfaceVariable as shown in Figure 83Figure 83: Integration Process - Enter BPM_EMAIL Variable7. Select SystemError from the dropdown for field Exception. This system errorexception was defined against the block defined in STEP 4 – Create Block on page 538. Leave the other fields as defaulted. Your completed send step properties shouldlook as shown in Figure 84Figure 84: Integration Process - Send step propertiesSTEP 5d – Create control step to throw timeout exception in deadline branch1. In the Graphical Definition window drag the control step icon to between thesend step created in the step before and the end of the block as shown in Figure 85Figure 85: Integration Process - Add control step to throw exception2. Select the control step3. In the Properties window
  58. 58. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 58 of 1544. Change the step name to something meaningful like TimeOut5. Select Throw Exception from the dropdown box on field Action6. Select TimeOut from the dropdown box on field Exception. This exception wasdefined against the block defined in STEP 4 – Create Block on page 537. Your completed send step properties should look as shown in Figure 86Figure 86: Integration Process - Exception control step propertiesSTEP 6 – Create exception branch for system errors1. Right mouse click on the block -> Insert -> Exception Branch as shown in Figure87Figure 87: Integration Process - Insert Exception Branch2. Select the Exception block that was created3. In the Properties window4. Select SystemError from the dropdown for field Exception Handler5. Your exception block and properties should look like Figure 88Figure 88: Integration Process - System error exception
  59. 59. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 59 of 154STEP 6a – Create System Error alert in exception branch1. Drag the control step icon to the centre of the SystemError exception blockcreated in the step before as shown in Figure 89Figure 89: Integration Process - Add Alert Control step to Exception SystemError2. Select the control step3. In the Properties window4. Change the step name to something meaningful like Alert System Error5. Select Throw Alert from the dropdown for the Action6. Type in TESTALERT1, as configured in 2.10.2. TESTALERT1 on page 647. Type in an informative alert message such as System Error Encountered for&DocNum&. &DocNum& refers to the variable in the BPM container called DocNum thatwas populated by the Container Operation step defined in STEP 3 – Create ContainerOperation step to assign DocNum on page 52STEP 6b – Create cancel process step in exception branch1. Drag the control step icon to after the control step, created in the step before,and the end of the exception block as shown in Figure 90Figure 90: Integration Process - Add Cancel Process Control step to Exception SystemError2. Select the control step3. In the Properties window4. Change the step name to something meaningful like CancelProcess5. Select CancelProcess from the dropdown for the Action
  60. 60. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 60 of 154STEP 7 – Create exception branch for timeout processingSimilarly to the previous step we need to create a timeout exception branch1. Right mouse click on the block -> Insert -> Exception Branch as shown in Figure91Figure 91: Integration Process - Insert Exception Branch for TimeOut2. Select the Exception block that was created3. In the Properties window4. Select TimeOut from the dropdown for field Exception Handler5. Your exception block and properties should look as shown in Figure 92Figure 92: Integration Process – Time out exceptionSTEP 7a – Create cancel process step in the TimeOut exception branch1. Drag the control step icon to after the TimeOut control step, created in the stepbefore, and the end of the exception block as shown in Figure 93
  61. 61. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 61 of 154Figure 93: Integration Process - Add Cancel Process Control step to Exception TimeOut2. Select the control step3. In the Properties window4. Change the step name to something meaningful like Cancel Process due to TimeOut5. Select CancelProcess from the dropdown for the ActionSTEP 8 – Create Receive Order Response Step with correlationWe now need to add the receive order response step1. Click, drag and drop the receiver step from the side bar on the GraphicalDefinition window to bottom line under the deadline branch as shown in Figure94Figure 94: Integration Process - Add receiver step for order response2. In the Properties window change the step name from Receive1 to Receive OrderResponse3. Click the button in the Message field to choose the Interface Variable ->OrderResponse as shown in Figure 95
  62. 62. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 62 of 154Figure 95: Integration Process - Interface Variable OrderResponse4. Select DocNum from the dropdown menu for variable Use Correlations5. Save6. Select DocNum from the dropdown menu for variable Activate Correlations7. Save8. Your Send Order Response step properties should now look as shown in Figure96Figure 96: Integration Process - Receiver order response step properties2.10. Create Alert CategoryWe need to configure an alert category for the alerts we are going to issue in the BPMIntegration Process. Here’s how we go about doing that.1. Fire up the Runtime Workbench from the Integration Builder by clicking RuntimeWorkbenchFigure 97: Launch Runtime Workbench2. Click Alert Configuration as shown in Figure 98Figure 98: Runtime Workbench
  63. 63. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 63 of 1543. Click the Create Alert Category button . Click OK on thewarning message shown in Figure 99 (Also Transaction ALRTCATDEF)Figure 99: Creating an Alert Category warning message4. On the screen showing the Alert Categories Display, click the Display/Changebutton5. Click the Webflow Alerts in the Classification window. This will display therelated Webflow alerts in the ALV grid on the right of the classification as shownin Figure 100Figure 100: Select Webflow Alert Classification2.10.1. TESTALERT1. Click the create alert category icon2. This adds a line to the ALV grid. Fill in the Alert Category name TESTALERTand a description BPM Alert3. Hit Enter to see the alert as shown in Figure 101Figure 101: TESTALERT added
  64. 64. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 64 of 1544. Click the Dynamic Text checkbox on. The 2 tabs “Long and Short Text” and“Optional Subseq. Activities” disappear. Clicking this checkbox allows you to passvariables to the alert in the BPM process as shown in STEP 5a – Create process control stepto throw alert in deadline branch on page 555. Leave the other fields with their defaults6. Save. Your alert now looks as shown in Figure 102Figure 102: TESTALERT set to dynamic text2.10.2. TESTALERT1Adding the 2ndAlert Category called TESTALERT1.1. Click the create alert category icon2. This adds a line to the ALV grid. Fill in the Alert Category name TESTALERT1and a description BPM Exception Alert3. Hit Enter to see the alert as shown in Figure 103Figure 103: TESTALERT1 added4. Click the Dynamic Text checkbox on. The 2 tabs “Long and Short Text” and“Optional Subseq. Activities” disappear. Clicking this checkbox allows you to pass
  65. 65. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 65 of 154variables to the alert in the BPM process as shown in STEP 6a – Create System Error alertin exception branch on page 59. This is very useful to us!5. Leave the other fields with their defaults6. Save. Your alert now looks as shown in Figure 104Figure 104: TESTALERT1 set to dynamic text2.10.3. Assign Users / Roles to Alert Categories1. Double click TESTALERT2. Click the Fixed Recipients Button3. If you are not in change mode then click the Display / Change button4. Click the New Entries button5. Type in your user id and save6. Click Back -> Back7. Repeat the above process (Steps 1-6) for TESTALERT1☼ Note that you should probably use the Role functionality to be able to send alertsbased on roles in a users profile. For simplicity sake we have hard coded the userreceiving this alert using the Fixed Recipients functionality.2.10.4. Update Alert Categories1. Close the webgui session and go back to your browser showing the RuntimeWorkbench
  66. 66. Creating a BPM Scenario in XIPhase 2 – Integration Builder Design Page 66 of 1542. Click the button Update Table3. Your newly created Alert categories are now viewable as shown in Figure 105Figure 105: Display of Alert Categories
  67. 67. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 67 of 154PHASE 3 : INTEGRATION BUILDER CONFIGURATIONThe system landscape and interface repository steps need to have been completed prior tostarting this phase.1. Start the Integration Directory of the Integration Builder3.1. Create Configuration Scenario3.1.1. Order_OrderResponse_Demo1. Select the Scenarios tab2. Right mouse click in the window and choose New3. Enter Description as Order and Order Response Scenario4. Click to select the Integration scenario IS_Orders we configured in 2.8.Integration Scenario on page 335. You’ll notice that the configuration scenario is changed to IS_Orders which is ourIntegration Scenario name. If you want to change it change it before creating theconfiguration scenario. Once you’ve changed the name(Order_OrderResponse_Demo) is should now look as shown in Figure 106Figure 106: Create Integration Scenario6. Click create7. Save
  68. 68. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 68 of 1543.2. Create Integration Process Service3.2.1. IP_ORDERS1. Right mouse click on Integration Party (Under Service without a party in yournewly created scenario)2. Click New3. Click continue on the screen shown in Figure 107Figure 107: Install Integration Process4. Select the IP_Orders Repository Process and click continue as shown in Figure108Figure 108: Select Repository Integration Process5. Enter Name IP_Orders and click Finish as shown in Figure 109
  69. 69. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 69 of 154Figure 109: Give Integration Process a name6. You then see the screen as shown in Figure 110Figure 110: Integration Process installed7. Edit the Integration Process8. Click the menu option Service -> Adapter Specific Identifiers9. Enter IP_ORDERS as the Logical System. (If you don’t do this step then you willget an error that the Logical System could not be determined for IP_ORDERS
  70. 70. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 70 of 15410. Click Apply3.3. Create Services without Party3.3.1. Business Service: DEMO1. Right click Business Service2. Click Create3. On the Receiver tab click to add a line to the Inbound Interfaces4. Click to choose Message Interface MI_ORDERRESPONSE -> OK5. Click the Sender tab6. On the Sender tab click to add a line to the Outbound Interfaces
  71. 71. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 71 of 1547. Click to choose Message Interface MI_ORDERS -> OK8. Save3.3.2. Business Service: MAIL_SERVICE1. Right click Business Service2. Click Create3. On the Receiver tab click to add a line to the Inbound Interfaces4. Click to choose Message Interface MI_EMAIL-> OK5. Save
  72. 72. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 72 of 1543.3.3. Business System: SAPCRM1. Import your CRM system and link an IDoc communication channel to it as shownin 3.4.4. GeneratedReceiverChannel_IDoc on page 76.3.3.4. Business System: SAPECC1. Import your ECC system. No communication channels are required as it willreceive no message from XI. It will receive the order from the CRM system viamiddleware.3.4. Create Communication Channels3.4.1. CC_DEMO_SOAP_SENDER1. Expand the Business Service DEMO2. Right mouse click on Communication Channel -> New3. Enter Communication Channel name CC_DEMO_SOAP_SENDER4. Click Create5. Click for the Adapter Type field to choose the SOAP adapter6. Enter the following entries:a. Select the Sender radio buttonb. Transport Protocol: HTTPc. Message Protocol: SOAP 1.1.d. Adapter Engine: Integration Servere. Default Interface Namespace: http://www.demo.com/XIf. Default Interface Name: MI_ORDER (NB: This is required for the webservice to work properly)g. Quality of Service: Exactly Once = Asynchronous call
  73. 73. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 73 of 154Figure 111: SOAP Adapter Settings7. Save3.4.2. CC_DEMO_FILE_RECEIVER1. Expand the Business Service DEMO2. Right mouse click on Communication Channel -> New3. Enter Communication Channel name CC_DEMO_FILE_RECEIVER4. Click Create5. Click for the Adapter Type field to choose the File adapter6. Enter the following entries:a. Select the Receiver radio buttonb. Transport Protocol: File System (NFS)c. Message Protocol: Filed. Adapter Engine: Integration Servere. Target Directory: /var/xiftp
  74. 74. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 74 of 154f. File Name Scheme: xi_kevin.datg. File Construction Mode: Add Message IDh. Write Mode: Directlyi. File Type: Binaryj. Default the restFigure 112: File Adapter Settings7. Save3.4.3. CC_EMAIL1. Expand the Business Service MAIL_SERVICE2. Right mouse click on Communication Channel -> New3. Enter Communication Channel name CC_EMAL4. Click Create5. Click for the Adapter Type field to choose the Mail adapter6. Enter the following entries:a. Select the Receiver radio button
  75. 75. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 75 of 154b. Transport Protocol: SMTPc. Message Protocol: XIPAYLOADd. Adapter Engine: Integration Servere. URL: smtp://smtp.<server>.comf. Use Mail Package: Check checkboxg. Content Encoding: base64Figure 113: Mail Adapter Settings
  76. 76. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 76 of 1547. Save3.4.4. GeneratedReceiverChannel_IDoc3.5. Use Wizard to set up Determination and AgreementsWe have performed the previous steps to set up your communication channels, businesssystem and services so that we can use the wizard to easily create our message interfacecomponents comprising the receiver and Interface Determination together with the senderand receiver agreements.Using the wizardYou do not have to use the wizard and could choose to create these manually. Using the wizard,however, is not only an efficient way to define your interfaces, but it is more intuitive to work withwhen you have several interfaces to define in a short period of time. For example, our scenariocomprises of 5 interfaces and it’s really handy to be able to define each in its entirety (through thewizard) before continuing with the next one.3.5.1. Orders interface between DEMO and CRM1. Select the Scenarios tab2. Right mouse click in the window and choose New
  77. 77. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 77 of 1543. Click Configuration Wizard on the left as shown in Figure 114Figure 114: Start Configuration Wizard4. Click Internal Communication radio button and CreateSTEP 1 – Incoming Message1. Enter Service Type: Business Service2. Service: DEMO3. Interface: MI_ORDER4. Namespace: http://www.demo.com/XI5. Adapter Type: Select SOAPFigure 115: Inbound Message - Specify Sender
  78. 78. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 78 of 1546. Click continueSTEP 2 – Outgoing Message1. Enter Service Type: Business System2. Service: SAPCRM3. Interface: ORDERS.ORDERS054. Namespace: urn:sap-com:document:sap:idoc:messages5. Adapter Type: Select IDocFigure 116: Outbound Message - Specify Receiver6. ContinueSTEP 3 – Sender Agreement1. The system should default in the SOAP Communication Channel you created in3.4.1. CC_DEMO_SOAP_SENDER on page 72
  79. 79. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 79 of 154Figure 117: Sender Agreement - DEMO : MI_ORDER2. ContinueSTEP 4 – Receiver Determination1. The system should display the screen as shown in Figure 118Figure 118: Receiver Determination – DEMO : MI_ORDER2. Click Continue
  80. 80. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 80 of 154STEP 5 – Interface Determination1. The system should display the screen as shown in Figure 119Figure 119: Interface Determination – DEMO : MI_ORDER : SAPCRM2. Click ContinueSTEP 6 – Receiver Agreement1. The system should display the screen as shown in Figure 120Figure 120: Receiver Agreement – DEMO : SAPCRM : ORDERS.ORDERS05
  81. 81. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 81 of 1542. Click ContinueSTEP 7 – Assign object to a Configuration Scenario1. The system should display the screen as shown in Figure 1212. From the dropdown list select your scenario Order_OrderResponse_DemoFigure 121: Assign generated object to a Scenario3. Click Finish4. You should get the Configuration Wizard log that shows you all the objects thatwere generated as shown in Figure 122
  82. 82. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 82 of 154Figure 122: Configuration Wizard Log3.5.2. Orders interface between DEMO and BPE1. Select the Scenarios tab2. Right mouse click in the window and choose New3. Click Configuration Wizard on the left as shown in Figure 123Figure 123: Start Configuration Wizard
  83. 83. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 83 of 1544. Click Internal Communication radio button and CreateSTEP 1 – Incoming Message1. Enter Service Type: Business Service2. Service: DEMO3. Interface: MI_ORDER4. Namespace: http://www.demo.com/XI5. Adapter Type: Select SOAPFigure 124: Inbound Message - Specify Sender6. Click continueSTEP 2 – Outgoing Message1. Enter Service Type: Integration Process2. Service: IP_ORDERS3. Integration Process: IP_Orders4. Interface: MI_BPM_TRIGGER5. Namespace: http://www.demo.com/XI6. Adapter Type: Select XI
  84. 84. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 84 of 154Figure 125: Outbound Message - Specify Receiver7. ContinueSTEP 3 – Sender Agreement1. The system should default in the Sender agreement that you created in STEP 3 –Sender Agreement on page 78Figure 126: Sender Agreement - DEMO : MI_ORDER2. Continue
  85. 85. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 85 of 154STEP 4 – Receiver Determination1. The system should display the screen as shown in Figure 127Figure 127: Receiver Determination – DEMO : MI_ORDER2. Click ContinueSTEP 5 – Interface Determination1. The system should display the screen as shown in Figure 128Figure 128: Interface Determination – DEMO : MI_ORDER :IP_ORDERS
  86. 86. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 86 of 1542. Click ContinueSTEP 6 – Receiver Agreement1. The system should display the screen as shown in Figure 129Figure 129: Receiver Agreement2. Click ContinueSTEP 7 – Assign object to a Configuration Scenario1. The system should display the screen as shown in Figure 1302. From the dropdown list select your scenario Order_OrderResponse_Demo
  87. 87. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 87 of 154Figure 130: Assign generated object to a Scenario3. Click Finish4. You should get the Configuration Wizard log that shows you all the objects thatwere generated as shown in Figure 131Figure 131: Configuration Wizard Log
  88. 88. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 88 of 1543.5.3. Order Response interface between ECC and DEMO1. Select the Scenarios tab2. Right mouse click in the window and choose New3. Click Configuration Wizard on the left as shown in Figure 132Figure 132: Start Configuration Wizard4. Click Internal Communication radio button and CreateSTEP 1 – Incoming Message1. Enter Service Type: Business System2. Service: SAPECC3. Interface: ORDRSP.ORDERS054. Namespace: urn:sap-com:document:sap:idoc:messages5. Adapter Type: Select IDoc
  89. 89. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 89 of 154Figure 133: Inbound Message - Specify Sender6. Click continueSTEP 2 – Outgoing Message1. Enter Service Type: Business Service2. Service: DEMO3. Interface: MI_ORDERRESPONSE4. Namespace: http://www.demo.com/XI5. Adapter Type: Select File
  90. 90. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 90 of 154Figure 134: Outbound Message - Specify Receiver6. ContinueSTEP 3 – Sender Agreement1. The system should default in the Sender agreement that you created in STEP 3 –Sender Agreement on page 78Figure 135: Sender Agreement2. Continue
  91. 91. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 91 of 154STEP 4 – Receiver Determination3. The system should display the screen as shown in Figure 136Figure 136: Receiver Determination – SAPECC : ORDRSP.ORDERS054. Click ContinueSTEP 5 – Interface Determination1. The system should display the screen as shown in Figure 137Figure 137: Interface Determination – SAPECC : ORDRSP.ORDERS05 : DEMO
  92. 92. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 92 of 1542. Click ContinueSTEP 6 – Receiver Agreement1. The system should display the screen as shown in Figure 138Figure 138: Receiver Agreement – SAPECC : DEMO : MI_ORDERRESPONSE3. Click ContinueSTEP 7 – Assign object to a Configuration Scenario1. The system should display the screen as shown in Figure 1392. From the dropdown list select your scenario Order_OrderResponse_Demo
  93. 93. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 93 of 154Figure 139: Assign generated object to a Scenario3. Click Finish4. You should get the Configuration Wizard log that shows you all the objects thatwere generated as shown in Figure 140Figure 140: Configuration Wizard Log
  94. 94. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 94 of 1543.5.4. Order Response interface between ECC and BPE1. Select the Scenarios tab2. Right mouse click in the window and choose New3. Click Configuration Wizard on the left as shown in Figure 141Figure 141: Start Configuration Wizard4. Click Internal Communication radio button and CreateSTEP 1 – Incoming Message1. Enter Service Type: Business System2. Service: SAPECC3. Interface: ORDRSP.ORDERS054. Namespace: urn:sap-com:document:sap:idoc:messages5. Adapter Type: Select IDoc
  95. 95. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 95 of 154Figure 142: Inbound Message - Specify Sender6. Click continueSTEP 2 – Outgoing Message1. Enter Service Type: Integration Process2. Service: IP_ORDERS3. Integration Process: IP_Orders4. Interface: MI_BPM_TRIGGER_MATCH5. Namespace: http://www.demo.com/XI6. Adapter Type: Select XI
  96. 96. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 96 of 154Figure 143: Outbound Message - Specify Receiver7. ContinueSTEP 3 – Sender Agreement1. The system should default in the Sender agreement that you created in STEP 3 –Sender Agreement on page 78Figure 144: Sender Agreement3. Continue
  97. 97. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 97 of 154STEP 4 – Receiver Determination1. The system should display the screen as shown in Figure 145Figure 145: Receiver Determination – SAPECC : ORDRSP.ORDERS055. Click Add Receiver radio button6. Click ContinueSTEP 5 – Interface Determination1. The system should display the screen as shown in Figure 146
  98. 98. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 98 of 154Figure 146: Interface Determination – DEMO : MI_ORDER :IP_ORDERS3. Click ContinueSTEP 6 – Receiver Agreement1. The system should display the screen as shown in Figure 147Figure 147: Receiver Agreement4. Click Continue
  99. 99. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 99 of 154STEP 7 – Assign object to a Configuration Scenario1. The system should display the screen as shown in Figure 1482. From the dropdown list select your scenario Order_OrderResponse_DemoFigure 148: Assign generated object to a Scenario3. Click Finish4. You should get the Configuration Wizard log that shows you all the objects thatwere generated as shown in Figure 149Figure 149: Configuration Wizard Log
  100. 100. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 100 of 1543.5.5. Email interface between BPE and Email Service1. Select the Scenarios tab2. Right mouse click in the window and choose New3. Click Configuration Wizard on the left as shown in Figure 150Figure 150: Start Configuration Wizard4. Click Internal Communication radio button and CreateSTEP 1 – Incoming Message1. Enter Service Type: Integration Process2. Service: IP_ORDERS3. Integration Process: IP_Orders4. Interface: MI_EMAIL5. Namespace: http://www.demo.com/XI6. Adapter Type: Select XI
  101. 101. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 101 of 154Figure 151: Inbound Message - Specify Sender7. Click continueSTEP 2 – Outgoing Message1. Enter Service Type: Business Service2. Service: MAIL_SERVICE3. Interface: MI_EMAIL4. Namespace: http://www.demo.com/XI5. Adapter Type: Select Mail
  102. 102. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 102 of 154Figure 152: Outbound Message - Specify Receiver6. ContinueSTEP 3 – Sender Agreement1. The system should default in the Sender agreement that you created in STEP 3 –Sender Agreement on page 78Figure 153: Sender Agreement2. Continue
  103. 103. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 103 of 154STEP 4 – Receiver Determination1. The system should display the screen as shown in Figure 154Figure 154: Receiver Determination – IP_ORDERS : MI_EMAIL2. Click Add Receiver radio button3. Click ContinueSTEP 5 – Interface Determination1. The system should display the screen as shown in Figure 155
  104. 104. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 104 of 154Figure 155: Interface Determination –IP_ORDERS : MI_EMAIL2. Click ContinueSTEP 6 – Receiver Agreement1. The system should display the screen as shown in Figure 156Figure 156: Receiver Agreement – CC_EMAIL2. Click Continue
  105. 105. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 105 of 154STEP 7 – Assign object to a Configuration Scenario1. The system should display the screen as shown in Figure 1572. From the dropdown list select your scenario Order_OrderResponse_DemoFigure 157: Assign generated object to a Scenario3. Click Finish4. You should get the Configuration Wizard log that shows you all the objects thatwere generated as shown in Figure 158
  106. 106. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 106 of 154Figure 158: Configuration Wizard Log
  107. 107. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 107 of 1543.6. Receiver Determination3.6.1. DEMO : MI_ORDERFigure 159: Receiver Determination - DEMO : MI_ORDER3.6.2. IP_ORDERS : MI_EMAILFigure 160: Receiver Determination - IP_ORDERS : MI_EMAIL
  108. 108. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 108 of 1543.6.3. SAPECC : ORDRSP.ORDERS05Figure 161: Receiver Determination - SAPECC : ORDRSP.ORDERS053.7. Interface Determination3.7.1. DEMO : MI_ORDER : SAPCRMFigure 162: Interface Determination - DEMO : MI_ORDER : SAPCRM
  109. 109. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 109 of 1543.7.2. DEMO : MI_ORDER : IP_ORDERSFigure 163: Interface Determination - DEMO : MI_ORDER : IP_ORDERS3.7.3. SAPECC : ORDRSP.ORDERS05 : DEMOFigure 164: Interface Determination - SAPECC : ORDRSP.ORDERS05 : DEMO
  110. 110. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 110 of 1543.7.4. SAPECC : ORDRSP.ORDERS05 : IP_ORDERSFigure 165: Interface Determination -SAPECC : ORDRSP.ORDERS05 : IP_ORDERS3.7.5. IP_ORDERS : MI_EMAIL : MAIL_SERVICEFigure 166: Interface Determination - MI_EMAIL : MAIL_SERVICE
  111. 111. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 111 of 1543.8. Sender Agreements3.8.1. DEMO:MI_ORDERFigure 167: Sender Agreement - DEMO : MI_ORDER3.9. Receiver Agreements3.9.1. DEMO : SAPCRM : ORDERS.ORDERS05Figure 168: Receiver Agreement - DEMO : SAPCRM : ORDERS.ORDERS05
  112. 112. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 112 of 1543.9.2. SAPECC : DEMO : ORDERRESPONSEFigure 169 : Receiver Agreement – SAPECC : DEMO : ORDERRESPONSE3.9.3. IP_ORDERS : MAIL_SERVICE : MI_EMAILFigure 170: Receiver Agreement - IP_ORDERS : MAIL_SERVICE : MI_EMAIL3.10. Create and Publish Web Service1. From the main menu of the Integration Builder choose Tools -> Define WebService
  113. 113. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 113 of 1542. The wizard pops up as shown in Figure 171Figure 171: Define web service wizard3. Click Continue4. Click propose URL -> Change as follows:a. http://<srv>:<adapter_port>/XISOAPAdapter/MessageServlet?channel=<party>:<service/system>:<cchannel>) -> Continuei. <srv> = Server running XIii. <adapter_port> = Adapter engine port = 8000iii. <party> = If communicating outside of your landscape this is theparty you have identifiediv. <service/system> = Sending system or servicev. <cchannel> = Communication channelb. Our value is:http://mysapapps02.sapgenie.com:8000/XISOAPAdapter/MessageServlet?channel=:DEMO:CC_DEMO_SOAP_SENDER5. On entering the required URL the screen look as shown in Figure 172Figure 172: Enter URL for web service
  114. 114. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 114 of 1546. Click Continue7. Click on the name field to select the message interface MI_ORDER as shownin Figure 173Figure 173: Select message interface8. The screen should now look as shown in Figure 174Figure 174: Message Interface MI_ORDERS9. Click Continue10. Specify sender as shown in Figure 175:- Service: DEMO- Interface Name: MI_ORDER- Interface Namespace: http://www.demo.com/XIFigure 175: Specify the sender11. Click Continue12. The summary of the web service definition is displayed as shown in Figure 176
  115. 115. Creating a BPM Scenario in XIPhase 3 – Integration Builder Configuration Page 115 of 154Figure 176: Web service summary13. Click Finish14. The web service file is displayed as shown in Figure 177Figure 177: Web service file WSDL15. Click Save and choose file name MI_ORDER.wsdl16. Your WSDL is now complete!!!

×