Consider a scenario where Legacy system wants to communicate with a BAPI using XI. In this scenario, we retrieve the details of a company from the RFC based on the company id in one Sender File and receive the details in another File (FILE-RFC-FILE).
We can achieve this by using Business Process Management (BPM) .For this we need to create one Integration Process object in Integration Repository. Where we can define the processes. Also we need to create one Integration Process in Integration Directory. It will works as business service, takes the data from source system, and retrieves data from the BAPI based on the source file. Then it will send data to the appropriate system. For this we need to configure three Receiver Determinations, three Interface Determinations, one Sender Agreement and two Receiver Agreements.
New Approach with SP 19 on XI 3.0 and SP 10 on PI 7.0
Modules will enhance the functionality of the adapter. We can achieve above scenario by using modules without using BPM. For this we need to create Outbound and Inbound Interfaces as synchronous in Integration Repository. In Integration Design we need to add modules in sender file adapter. Here we will configure one Receiver Determination, one Interface determination, One Sender Agreement and One Receiver Agreement.
The following modules we need to add sender file communication channel.
Number - ModuleName - Type - ModuleKey
1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
2- CallSapAdapter-Local Enterprise Bean - 2
ModuleKey - ParameterName - ParameterValue
1 - passThrough - true
3-receiverChannel - Receiver File Adapter Name
3-receiverService - Receiver Business Service/ System
Step-by-step procedure to run Scenario
By practically we look at a scenario which will give us a better picture to build an end-to-end application.
1. Create Source and Target Data Types with corresponding Message Types.
2. Create the Message Interfaces for outbound and inbound messages in Synchronous Mode as follows.
3. Create Two Message Mappings, One is for Request Mapping and another one is Response Mapping.
4. Create one Interface Mapping for the corresponding Message Mappings.
5. Activate all the objects created.
1 Create Business System with two communication channels. One is Sender Communication Channel and another one is Receiver Communication Channel.
In Sender Communication channel we need to add modules and Receiver communication channel details as follows.
2 Create or Assign R/3 system with RFC receiver communication channel.
3 Create the other configuration objects required(i.e., Receiver Determination, Interface Determination, Sender Agreement, Receiver Agreement).
4 Activate all the objects created.
To execute scenario we need to upload the test file which contains the company code.
After activating the configuration scenario the sender file adapter will picks up the file from the specified directory and will process.
? Sender Communication channel monitoring.
After processing the message the status in SXMB_MONI is as follows.
? Message Monitoring in Runtime Work Bench as follows.
? Receiver Communication Channel Monitoring.
Features of this scenario
? This is the simple way to use Modules.
? These Modules are provided by SAP.
? Message is not going to Process Engine, so message won't be duplicated.
? Modules will enhance the functionality of Adapters. These modules equip the adapters with additional functions.
? System performance will be good instead of using BPM.