File to RFC with multiple records using BPM

By M.Leela Ratnam, Satyam Computers

A common BPM usage is to collect multiple records received from a file and pass these records to RFC. Then the RFC will process the multiple requests and gives you the multiple responses. For this I have done scenario-using BPM. This scenario shows how to implement multiple records scenario using Block step (For each) by step by step in detail.

Version: This scenario is implemented in PI 7.1 server, service pack: 06. This can also be done in PI 7.0 server also.

Scenario: 

Here the input file with multiple records is sent to RFC and the multiple responses from RFC will come into XI and it is written to a file. 

 

DESIGN STEPS:

·         Import the RFC (BAPI_MATERIAL_AVAILABILTY), which is available in SAP System. For this RFC, it will provide the material is available or not if we give the input parameters like (Material name, plant location, unit of measure).

·         Create 2 Data Types for sender and Receiver.

Data type for Sender. 

   

 

·         Create Message Types for the above data types.

Sender Message Type 

 

Receiver Message Type

 

·         Create the Message Interfaces for the message types as shown below.

Sender Message Interface (outbound, Asynchronous)            

                         

         Sender Abstract interface (Abstract, Asynchonous)

 Receiver Message Interface.

Receiver Abstract Interface   

 BAPI Request Interface

BAPI Response Interface

BAPI Synchronous Interface.

     

·         Create Message Mapping for Request and the Response.

Request Message mapping (MT_Sender_Request)

   

In the signature tab, you have to make the occurrences as “0….unbounded.”

    

          Response mapping (MM_Response_Receiver) 

                 

                     

·         Create the interface mapping for the corresponding message mapping.

   

   

·         Create the BPM as shown below.

   

In the following BPM, The first step is the receive step. It will trigger the BPM. Transformation is taken between the sender and the request. Then next step is the block. (For each).In Block, synchronous RFC is called in the Send step and the container is used for appending the multiple responses from the RFC. After the block, the transformation step is used for the response mapping to a file. The last send step will contain the output file.

Container Elements: 

 

Properties:

     

       

    

  

Click here to continue...

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image