PI102: Interface Configuration using File Adopter

PI102:Interface Configuration using File Adopter

Foreword: – In the PI101 blog, we discussed basics of SAP PI. In this blog, let’s look into  end-to-end configuration of a simple interface using File Adopter. Technical consultants with basic PI knowledge are the intended audience of this article.

Scenario: – File to PI to File

Assumptions:-

  1. All SLD objects listed below are already created
  2. Software product and versions
  3. Software component version
  4. Technical systems
  5. Business systems
  6. Software component is imported and Name Space is created

Integration Repository:- IR is where interface objects are defined. They are:

  1. Data Types
  2. Message Types
  3. Message Interfaces
  4. Message Mapping
  5. Interface Mapping

Let’s create IR objects as shown below.

Source Data Type

Create data type with elements like that of source file record data fields.

Figure 1

Target Data Type

Create target data type same as source data type.

Figure 2

Source Message Type

Create source message type using source data type DT_EMPLOYEE.

Figure 3

Target Message Type

Create target message type using target data type DT_Details.

Figure 4

Outbound Message Interface

Create Asynchronous Outbound interface using Target Message type MT_DETAILS.

Figure 5

Inbound Message Interface

Create Asynchronous Inbound interface using Source Message type MT_EMPLOYEE.

Figure 6

Message Mapping

Using message types that were created above, map the corresponding elements of the data types as shown below. Source message type MT_Employee will be on left side and target message type MT_Details will be on right side. After mapping, we can test the mapping results using Test tab.

Figure 7

 Interface mapping

Map the interfaces that are created above.

Figure 8

Integration Directory:- Integration Directory is where we configure/define the following objects:

  1. Integration Scenario
  2. Business Systems/Services
  3. Communication Channels
  4. Receiver Determination
  5. Interface Determination
  6. Sender Agreement
  7. Receiver Agreement

Let’s create ID objects as shown below.

Create Configuration Scenario

Figure 9

Import Business Systems

Import the business systems that are created in SLD. The import option is available in the main menu of Integration Directory.

Figure 10

Create Sender Communication Channel

Create sender communication channel under BS_FileSysOut. Select the File Adopter in Adopter Type Drop.

Figure 11

Create Receiver Communication Channel

Create sender communication channel under BS_FileSysIn. Select the File Adopter in Adopter Type Drop down.

Figure 12

Create Receiver Determination        

Create receiver determination using interface MI_DETAILS_OB , business system BS_FileSysOut and receiver communication channel.

Figure 13

Create Interface Determination

Create interface determination using interface MI_DETAILS_OB , business system BS_FileSysOut and business system BS_FileSysOut.

Figure 14

Create Receiver Agreement                              

Create receiver agreement using business system BS_FileSysOut as sender, business system BS_FileSysIn as receiver and receiver communication channel.

Figure 15

Create Sender Agreement

Create sender agreement using business system BS_FileSysOut as sender and sender communication channel. It is not required to enter anything for receiver service.

Figure 16

To complete the interface configuration, activate all components.

Testing Scenario:-

Place file with a record layout that contains the data elements as defined in data type in C:\ftprrot\PI71\out folder. PI picks up this file for processing and places it in C:\ftprrot\PI71\in folder.

Conclusion: – This is a simple interface using File adapter. We will discuss interface scenarios using different adaptors in future blogs.

This entry was posted in Talk Techie to Me and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s