Using the Command Line RFC Invoker
You can use the steps provided here to use the command Line RFC Invoker.
As a tool to assist in creating valid RFC XML requests, a command line utility has been provided. It can be invoked outside of the IBM Security Directory Integrator environment and is able to read an XML file, which represents an RFC XML request to be executed against the SAP ABAP Application Server system.
To invoke the utility, first add the following jars to the CLASSPATH environment variable:
- TDI_install_dir/jars/functions/SapR3RfcFC.jar
- TDI_install_dir/jars/common/tdiresource.jar
- TDI_install_dir/jars/3rdparty/IBM/icu4j_4_2.jar
Then, invoke using the command:
TDI_install_dir/jvm/bin/java com.ibm.di.fc.sapr3rfc.RfcXmlInvoker -f
[input XML file] -o [output XML file] -p
[JCO Connection properties file]
Note:
- These instructions assume that you have already completed the steps described in Configuring the SAP Java Connector. It is important that the sapjco.jar is in the CLASSPATH, and that sapjcorfc.{dll/so} and librfc*.{dll/so} are in the loadable library path.
- For AIX®, the path to the Java™ executable is TDI_install_dir/jvm/jre/bin/java.exe
The contents of the JCO Properties file represent the SAP ABAP AS client connection parameters for the SAP system. An example of the values in the property file is shown below:
jco.client.client=R/3 CLIENT
jco.client.user=R/3 USER NAME
jco.client.passwd=R/3 USER PASSWORD
jco.client.sysnr=R/3 SYSTEM NUMBER
jco.client.ashost=R/3 APPLICATION SERVER HOSTNAME OR IP ADDRESS
jco.client.trace=RFC API TRACE: 1 = ON; 0 = OFF