The ultimate site for SAP XI certification and tutorial resources. Submit tutorials/scenarios and get assured gifts!!! For more info click here...

gift

scenario - rfc to file

Author: Uday Kumar S

Here the input parameter for the RFC is sent through a file and the response from the RFC comes into XI, which is then written into a file. The diagram of the following is shown below:

image
Fig1. File to RFC Sychronous Scenario

Design Steps:

·  Import the RFC (BAPI_COMPANY_GETDETAIL) which is available in SAP systems.

·  Create two Data Types FileRequest_DT and FileResponse_DT as shown below
image
Fig2.Input File Data Type
image
Fig3.Output File Data Type

·  Create Message Type FileRequest_MT and FileResponse_MT for both the data types as shown below

image
Fig4.Input File Message Type

image
Fig5.Output File Message Type

·  Create Message Interface for the message types as shown below

image
Fig6.Message Interface FileRequest_OUT_MI of Input File

image
Fig7.Abstract Interface FileRequest_AI of Input File

image
Fig8.Message Interface of FileResponse_IN_MI Output File

image
Fig9.Abstract Interface FileResponse_AI of Output File

image
Fig10.Abstract Interface FileDetails_Sync_AI for File<->RFC

·  Create Message Mappings Request_MM(File to RFC) and Response_MM(RFC to File )as shown below

image
Fig11.Request Message Mapping

image
Fig12.Response Message Mapping

·  Create the Interface Mapping File_RFC_IM as shown below

image
Fig13.Request Interface Mapping

image
Fig14.Response Interface Mapping

·  Create BPM File_RFC_BPM as shown below

image
Fig15.BPM

     In the following BPM the first block receives the file and hence triggers the BPM.The second block is a synchronous send block which triggers the call to RFC, takes the output and sends it further to the Asynchronous send step. The third step finally sends data to a file.

_______________________________Next page>>