
This blog describes about SAP PI 7.1 Tips and Tricks:
SAP - Middleware :
SAP Process Integration (PI) is SAP’s Enterprise Application Integration (EAI) tool. It is used to facilitate the exchange of information among a company’s internal software/systems and those of external parties. SAP PI provides seamless end to end integration between SAP and Non-SAP applications inside and outside the corporate boundary.
SAP – SAP Interface:
The approach to be used for integrating two SAP systems would be as shown in the below decision tree diagram.
SAP PI (Middleware) :
In case if no standard configuration is available to integrate two SAP systems, then SAP PI should be used to create the interfaces between the two systems.
Various integration techniques are available in SAP PI to integrate two systems.
Standard IDoc Integration:
SAP has integrated systems and applications that support IDoc format, using SAP’s Application Link Enabling (ALE) functionality. ALE is SAP proprietary technology that enables data communications between two or more SAP systems and/or between SAP systems with non-SAP systems. SAP has created a lot of different IDocs for transferring different data between the systems. In case of interfaces, this will be a preferred way of data transfer as it is a proven and stable technology and requires minimum development effort.
SAP ABAP Proxies: In cases where there is no standard IDoc available to cater to the requirement, SAP Proxies should be used as a preferred way of integration
with the SAP system. The advantages of SAP Proxies are:
In case if there is any standard BAPI available which caters to the requirement of the interface, then that BAPI should be invoked through a proxy call rather than
directly calling it via RFC.
The following techniques can be used:
SAP inbound integration techniques:
BDC (Batch Data Communication): custom only background process of on-line transaction
IDOC (Intermediate Document): standard or custom metadata structure for processing transactions
BAPI/RFC (Business Application Programming Interface): standard or custom business program for processing standard transactions
ABAP proxy: ECC function that connects with PI directly
Custom ABAP program: custom business program for processing files and posting data to ECC transactions/functions/IDOCs
SAP outbound integration techniques:
IDOC: standard or custom metadata structure for processing standard transactions
BAPI / RFC: standard or custom business program for processing standard transactions
ABAP proxy: ECC function that connects with PI directly
Custom ABAP program: custom business program for processing files and posting data to ECC transactions/functions/IDOCs
Mapping and routing techniques
Mapping and routing performed in middleware PI:
Few examples of Legacy/Middleware integration techniques (inbound and outbound)
Flat File – fixed length and file delimited
JMS/XML – XML with schema definition
Database – SQL executed from JDBC connection
Webservices – HTTP/SOAP requests
Component Versions and Namespaces:
Mapping Types :
Mapping messages from one format/structure to another is a fundamental feature for any middleware application in A2A and B2B scenarios.
SAP NetWeaver Process Integration offers a wide variety of mapping program types:
Data Lookup:
The following data criteria should be taken into account when defining the data lookup strategy:
Amount of Data: Is there a small or large amount of data to maintain?
Frequency of Change: Is the data static or dynamic?
Location of Data: Is the data externally maintained?
Input / Output Value Ratio: Is the input/output value ratio 1/1?
Availability of Value Mapping Function: Does the value mapping function already exist in the backend or can it be easily implemented?
Backend Application Type: Is the backend an SAP System, a DB, an Application that can provide Web Services?
Data Lookup should be used in the following cases:
Dataset is large, dynamic and externally maintained
Input / Output Value Ratio is n/n.
A Value Mapping function is available in the back end or can easily be implemented
Backend is an SAP system (RFC), database system (JDBC) or web service provider (SOAP)
Collection of Messages :
Split of Messages :
Synchronous versus Asynchronous Scenarios :
Note: EO stands for Exactly Once, while EOIO stands for Exactly Once in Order
Serialization:
Try to avoid EOIO for mass data interfaces.
Performance Tuning :
The tuning of PI can lead to :
Message Packing :
By processing multiple messages in packages instead of individually, the overall overhead can be reduced leading to less hardware resources consumption and an increased message throughput:
Use message Packaging in the Integration Server in the following cases:
Serialization :
Serialization is a technique that is used to ensure that the interface records are processed in the target system, in the same order that they were generated in the
source system. Interface records can get processed in a different order due to:
Based on update made to the business object and content, the appropriate serialization technique should be used:
Error handling:
Vital error information should be captured for effective error reporting. Effective error reporting can help project management to focus on priorities and support team
to resolve the errors faster.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |