Professional Documents
Culture Documents
(Is) A Step-By-Step Guide On Asynchronous RFC-To-JDBC Scenario Using SAP PI 7.0
(Is) A Step-By-Step Guide On Asynchronous RFC-To-JDBC Scenario Using SAP PI 7.0
SAP PI 7.0
By Deepak Shah, L&T Infotech
Brief
Overview:
The purpose of this exercise is to call an RFC from SAP R/3 asynchronously. A function module is used to
send Data to XI / PI. SAP PI will then convert the data in the Standard SQL Format and Insert the data into
the JDBC database tables.
The Data from table 'ZEMP_DET' created in R/3 will be fetched by the RFC 'ZTEST_TIPS_DOI' and sent to
SAP PI. SAP PI will then insert these Records into database tables.
Prerequisites:
1. Basic Knowledge of SAP PI / XI 7.0
2. Business System configuration in SLD is not covered in detail.
3. JDBC drivers should be deployed on SAP PI system
Implementation Steps:
A.) Maintain R/3 System.
A.1) Create RFC in SAP R/3 System (Send Data to SAP PI).
Go to Transaction SE37. Enter the name for functional module. Click on Create.
IMPORTING
count
= l_temp
TABLES
zemp_det
= g_zemp_det
EXCEPTIONS
rfc_external_abort = 1
deliveryexception = 2
OTHERS
= 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
commit work.
WRITE : 'test'.
Click finish to start import. Once the RFC is successfully imported save & activate it.
Note: We don't require any Data Type, Message Type and Message Interface for Sender side as RFC
itself will be used for Sender Data Type, Message Type and Message Interface.
B.2.2 Create Data Type for Receiver:
Go to Interface Objects tab in your namespace.
Go to Data type and Click on new
Here we will create data type "masterData". The structure is as follows.
Enter the RFC Metadata Repository Parameter as follows. i.e the Sender system details.
Go to your Receiver Business System, right click on communication channel and select new.
Create a new receiver communication channel MSAccess_RECV_DS2.
Select the Receiver Radio button to identify the channel as receiver.
Adapter type: JDBC
Transport Protocol: JDBC 2.0
Message Protocol: XML SQL Format
Adapter Engine: Integration Server.
JDBC Driver: sun.jdbc.odbc.JdbcOdbcDriver
Save & activate.
Go to transaction SXMB_MONI in XI server to view the status of the messages. Messages should have
successful Status.
Open the database table to see if the records have been inserted into tables or not.