Scenario
This scenario deals with handling of Asynch -Synch Scenario without use of BPM. First of all I would like to thanks Bhavesh Kantilal for showing us the usage of this module. Before starting the scenario, I would like you all to note it down that this scenario works only if your SP>=SP19(3.0) & SP>=SPs10(7.0).
For this Integration we are going to use Standard BAPI - BAPI_COMPANY_GETDETAIL. The scenario works like this- XI receives the file ,do the request mapping send the request to BAPI get back the response from BAPI do the response mapping and write it to the file.
IR -Design
Step1: Import RFC
Connect to the backend system and import the BAPI - BAPI_COMPANY_GETDETAIL
Step2: Create Datatype
Create two datatypes one for Request and the other one for Response.


Step 3: Create Message type
Create two message types. MT_RequestDetail [Data type: DT_RequestDetail].
MT_ResponseDetai [Data type: DT_ResponseDetail].
Step 4: Create Message Interface
Create two message Interfaces. One for File(OB) and the other one for RFC(IB). Create both Interfaces as Synchronous Interfaces.


Step 4: Create Message Mapping
Create two Message Mappings - Request Mapping and Response Mapping.
MM_FileRequest_to_RFCRequest

MM_RFCResponse_to_FileResponse

Step 5: Create Interface Mapping
Create Interface Mapping between Synchronous O/B and Synchronous I/B Interfaces. In the bottom of the page tab to request and response
and assign the corresponding Message Mappings.


Step 6:Activate Changelist
Now go to the Changelist tab and activate the changelist, we are done with Repository Design.
ID -Configuration
In the configuration part we are going to configure 2 File channels - Sender & Receiver ,1 RFC channel - Receiver. We need to note that, the additional Module parameters need to be added only for sender File channel. No additional parameter needed for RFC Receiver or File Receiver, configure them as normal communication channel.
Step1: Create New Scenario
Right click on any one of the existing scenario and choose New or go to Object menu and create Configuration Scenario. Give the name to the Scenario and click Save.
Step2: Create Business Services
To configure the scenario we are going to use to Business Services one for File and the other one for RFC. After creating the Business Service choose Outbound Interface for FILE Business Service and Inbound Interface for RFC Business Service.
BusService_File

BusService_RFC

Step3: Create Communication Channel
As discussed above create 2 File channels and 1 RFC Channel. The File receiver and RFC receiver channels are as usual configuration.The only change is on the File Sender Channel Module Parameter. Please see the below screenshot and insert the Module parameters in the same order as mentioned below. Please note that in the Module Configuration Parameter values File_Receiver and BusService_File varies according to your File Receiver communication channel and Business Service names respectively.
File Sender

Step4:Create Sender Agreement

Step5:Create Receiver Determination

Step6:Create Interface Determination

Step7:Create Receiver Agreement

Step8:Final Checklist
Please make sure that you have created all the objects as per the below screenshot.

Step9:Activate Change list
Go to changelist tab and activate all the changelist.Configuration is done,it's tea time or testing time Decide ![]()
Testing & Results
Before continuing the testing ,please verify all the communication channels are up and running without any errors.
Step1:Copy the payload
Go to Message Mapping FileRequest_to RFCRequest,tab to Test Message enter the CompanyNumber and click Source Text view, copy the payload and save it in your desktop. Now copy the file and place it in XI Sender File channel polling location.

Step2:Check in SXI_MONITOR

Step3:Final Result
Now go to the Output folder and verify the output.

Note :That's all! Dear Friends, thanks for partcipating with me to complete the scenario.If you have any queries or concerns , please post your questions in
https://www.sdn.sap.com/irj/sdn/thread?threadID=735791&tstart=0
Comments (2)
Jul 03, 2008
Prasad Kamath says:
Hi, This is very informative. I followed the steps exactly and got the de...Hi,
This is very informative. I followed the steps exactly and got the desired output.
Thanks a ton,
Prasad
Oct 24, 2008
Andrey Bolshakov says:
Hello! I followed this steps and got an error: Error: com.sap.ai...Hello! I followed this steps and got an error:
Error: com.sap.aii.af.service.cpa.CPAException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=BusService_RFC;TS=BusService_file;AN=MI_BP_FILE;ANS=http://iix.ru/tests/v05;\\