Sap Pi-po Lookups
Sap Pi-po Lookups
Look up is nothing but to get (or) validate (or) fetch the data from the backend database at runtime.
SAP PI lookups allow you to retrieve additional data from external systems during message
processing. This data can then be used to modify, verify, or enhance the original message before it
is sent to the target system.
• Up to PI 7.0:
Implementing lookups required writing custom Java code, JCO (Java Connector) programs,
or User-Defined Functions (UDFs). Developers had to manually handle the connection, data
retrieval, and error handling within these custom implementations.
SHAGUN UPADHYAY 1
SAP PI Lookups
Lookups in SAP PI are categorized based on the backend database system they interact with:
1. Database Lookup
o Retrieves data from external databases using JDBC (Java Database Connectivity).
o Useful for fetching reference data, mapping values, or validating input data.
2. RFC Lookup
o Commonly used for integrating with SAP ECC, fetching master data, or checking
business rules.
SHAGUN UPADHYAY 2
SAP PI Lookups
Business Requirement:
When there is a need to fetch or validate data from the backend Oracle system at runtime, a JDBC
Lookup is used.
Prerequisites:
• Ensure proper connection to the database by configuring the correct JDBC driver and
providing valid authentication credentials (username and password).
1. Message Processing Begins – A message enters SAP PI/PO through a sender system.
2. JDBC Lookup Execution – The system queries the backend database using JDBC lookup
logic.
3. Data Retrieval & Mapping – The retrieved data is used in the message mapping step.
4. Message Sent to Receiver – The enriched or validated data is forwarded to the target
system.
Configuration Steps:
SHAGUN UPADHYAY 3
SAP PI Lookups
Business Requirement:
RFC Lookup is used when there is a need to fetch or validate data from a backend SAP system at
runtime.
Prerequisites:
• Configure the RFC Receiver Communication Channel in the Integration Directory (ID) to
establish a connection with the SAP system.
• Import the required RFC or BAPI structure into the Enterprise Service Repository (ESR)
from SAP applications to enable communication with the SAP backend.
• Ensure proper SAP credentials, configure RFC destinations in SAP NetWeaver, and verify
network connectivity for seamless integration.
1. Message Processing Begins – A message enters SAP PI/PO from the sender system.
2. RFC Lookup Execution – The system calls the RFC/BAPI function module in SAP.
4. Message Sent to Receiver – The enriched or validated data is forwarded to the target
system.
SHAGUN UPADHYAY 4
SAP PI Lookups
Business Requirement:
SOAP Lookup is used when there is a need to fetch or validate data from a backend web service
system at runtime.
Prerequisites:
• Configure the SOAP Receiver Communication Channel in the Integration Directory (ID)
to establish a connection with the backend web service.
• Import the Web Service Definition Language (WSDL) file into External Definitions in the
Enterprise Service Repository (ESR) to define the service structure.
• Ensure proper authentication credentials, configure the endpoint URL, and set up SSL/TLS
encryption if required for secure communication.
1. Message Processing Begins – A message enters SAP PI/PO from the sender system.
2. SOAP Lookup Execution – SAP PI/PO calls the backend web service using SOAP.
4. Message Sent to Receiver – The enriched or validated message is forwarded to the target
system.
o Use Message Mapping to define how the retrieved data should be used.
o Call the SOAP web service dynamically from a UDF in the mapping.
SHAGUN UPADHYAY 5
SAP PI Lookups
Why Do We Use RFC, JDBC, and SOAP as Receiver Communication Channels Instead of
Sender Channels?
• Initiating Communication: SAP PI/PO sends a request to an external system (SAP via RFC,
databases via JDBC, or web services via SOAP) and expects a response.
• Response Handling: Since the external system returns a response, we need a receiver
communication channel to process it.
• Not a Sender Channel: Sender channels are used when external systems push data to
SAP PI/PO, which is not the case for RFC, JDBC, and SOAP in most scenarios.
SHAGUN UPADHYAY 6
SAP PI Lookups
BS1/BC1 BS2/BC2
DT RFC DT
Request Response
MT MT
MM
SI SI
OM
SHAGUN UPADHYAY 7