SAP has provided a very good way of Configuring Integration scenario using Configurator (also known as Swim lanes) or Process integration Scenario in SAP PI.
An integration scenario completely models the exchange of messages for a collaborative process and provides an overview of the process flow. The integration scenario provides you with a central point of access for all objects that you require for semantic and technical integration (interfaces, mappings, and software components).
The advantages of defining integration scenarios in the Integration Builder (design tool) are as follows:
Below are step by step guide How to Use Configurator in SAP PI.
1) The integration scenario provides you with an overview of the process and the process flow
2) The integration scenario club together all objects like SWVC, Interface objects, mapping objects ,integration processes. You can access all of these objects from the integration scenario.
3) The integration scenario gives you the design time information which is required for its configuration.
The Integration Builder constitutes an integrated development environment for the design of integration scenarios.2) The integration scenario club together all objects like SWVC, Interface objects, mapping objects ,integration processes. You can access all of these objects from the integration scenario.
3) The integration scenario gives you the design time information which is required for its configuration.
You can do the following with the Integration Builder:
The development environment for integration scenarios comprises two editors:1) Integration Scenario Editor
2) Action editor
Further let’s see step by step modeling in the current Integration scenario where the Order Response is sent by the SAP R/3 system to the Partner system.
Firstly Create a NEW Integration scenario PH_TR_SAP_B2BEDI_SalesOrderResponse_OM_DD_LTR_L0XI) Integration Scenario Editor :
Logically speaking, an application component represents a participant of an integration scenario. This contains the business tasks and concerns that this participant represents within the integration scenario.
In this scenario, we need 2 Application components, Insert the Application Components using the editorLogically speaking, an application component represents a participant of an integration scenario. This contains the business tasks and concerns that this participant represents within the integration scenario.
Inserting 2 Application Components :
1) SAP R/3 component– Sender(PH_OX_SAPR3 4.6 C ).
1.1) Select the Product version for the given SAP system
2) B2B_Partner template
2.1 ) Since it’s a Partner system, it will not be defined in SLD.
2.2 ) Select the Check box for External Partner B2B Communication
II) Action Editor :
Insert the relevant actions according to the scenario:
2.1) sendOrderResponse
2.2) receiveOrderResponse
2.1) sendOrderResponse: this action is responsible to send the IDOC from the SAP R3 system to the customer (B2B Partner)
2.2) receiveOrderResponse: this action is responsible to receive the IDOC from the SAP R3 System.
Once the application components are created, the respective sender and the receiver actions must be added to it.
To establish a relationship between the sender and the receiver, select both the actions and right click on establish a relationship between two actions.
Fig 1.6
There are four steps to be kept in mind while maintaining a relationship between two Actions:
1) Message Interface : (First Tab)Check whether sender(ORDRSP.ORDERS05) and receiver interfaces(MI_E_TR_HEDEF_OrderResponse_ia) are assigned to the respective sender and the receiver system.
2) Mapping Program : Select an appropriate interface mapping (IM_I_ORDERS05_to_E_TR_HEDEF_OrderResponse) for the assigned interfaces.
The other two Tabs, ie the Communication Channel template and the Documentation both are optional.
Once the Objects in the Integration Repository are done . We finally move to the Integration Directory where the Objects are created automatically when you run the Integration Scenario Configurator.
Assign appropriate Receiver Partner to the scenario (PH_TR_B2BEDI_SalesOrderResponse_OM_DD_990_LTR_L0X) and Sender system to Service Without partner, as the system is already defined in SLD(System Landscape Directory )
Now click on the Integration Scenario and import the IS created in the Integration Directory Objects. Make sure that it has an appropriate namespace.
To run the Configuration click on the symbol , to start with the four steps :
1) Componenet View.
2) Assign Services
3) Establishing Connections
4) Generate Objects
1) Component View :
The Figure below shows the component view or the preview or the Business View , as to how the entire process flows ( High Level View).
2) Assign Services :
The services can only be assigned either from one Application to another Application (A2A) or from one Business to another Business (B2B).
Note: The services cannot be assigned from one Application to another Business (A2B) .
But in this Scenario the communication is from the Application(D70_011) to the Business (HEDEF) [A2B]
Solution : Create a Dummy partner (B2B_PH_TR) which acts like a sender and a receiver partner , hence the communication is now between the dummy partner(B2B_PH_TR)which takes the sender service (D70_011) and sends it to the receiver Partner(HEDEF).
1) The Sender Service is assigned to the Dummy Partner, and the Dummy partner’s Sender Service (B2B_SND) sends the message to the Receiver Party(B2B_HEDEF).
3) Establish Connections :
3.1) while establishing connections, one has to check the Sender Business Service and Receiver Business Service and also the communication channel (PH_TR_FTP_RCV_SalesOrderResponse)
3.2)the next is the Actions tab, where one can check for the sendOrderResponse and receiveOrderResponse.
3.3)The next is the Interfaces where one can check the sender(ORDRSP.ORDERS05) and the reciver(MI_E_TR_HEDEF_OrderResponse_ia) interfaces .
3.4)The mapping tab should include the Interface mapping (IM_I_ORDERS05_to_E_TR_HEDEF_OrderResponse).
3.5)The communication Template is the optional template .
4) Generate Objects :
Click on Generate objects for this scenario and add it in the scenario .
Once the Objects are created. They are added in the Integration scenario and can be seen in the scenario