This tools was created to allow fast Communication Channels update in SAP PI/PO system. It’s a great time-saver during PI/PO migration projects or when moving several Communication Channels between development, test and production systems. It uses Integration Directory API introduced in SAP NetWeaver PI 7.1.
The program is delivered as a standalone Java application. Please unzip the downloaded file to any location on your local computer.
To be able to use the tool, you should assign your user the following roles (please check SAP Help on how to update the roles):
Systems Connections Setup
First, you have to define the connections to your SAP PI/PO systems. There are 2 files to be modified:
- source.properties – the connection details to your source system (the system which you retrieve the Communication Channels data from)
- target.properties – the connection details to the target system (the system in which you update Communication Channels)
Open each file with a text editor and fill in the following details:
host=[your system's host name/IP address]
port=[your system's port, default 50000]
Retrieving Communication Channels
Run one of the available scripts (list_channels*.bat) to retrieve Communication Channels information:
If you’d like to fetch additional Communication Channel’s attributes just open the corresponding *.bat script and modify “-attributes” parameter (you can find the attributes technical names in the Adapter’s metadata in Integration Directory).
For FTP Channels the following attributes are retrieved by default:
java -cp PIMassUpdate.jar pl.pi.directory.api.Channels
-attributes "ftp.user ftp.password ftp.host ftp.timeout ftp.sourceDir ftp.targetDir ftp.dataConnectionMode"
Once you run the script a text file containing Communication Channels and their attributes will be created (e.g. channels_list_ftp.txt).
Updating Communication Channels
Copy or rename the file created by list_channels*.bat scripts into “channels_update.txt”. This is a tab-delimited text file. You can open it in any text editor or Excel to see and modify its content.
Run script update_channels.bat to update the Communication Channels in the target system (please make sure that the file target.properties is updated with the correct system connection details).
The script will save all changes into a new or existing Change List.
The changes will remain inactive until you activate them manually in Integration Directory.
The tool was created as a trade-off between simplicity and functionality. It operates on simple flat files which are easy to understand and edit, thus it is impossible to update any tabular-like Communication Channel’s attributes (Adapter Modules and their properties, File Content Conversion etc.).
The overcome the limitation, the recommended approach is to export the Communication Channels from the source system’s Integration Directory, next import it into the target system and finally run the update_channels.bat to update their properties.