Contents:
Related pages:
There is no content with the specified labels
Remote scripts use SAP Java Connector (JCo) version 3.
Visit Install SAP JCo Connector library for instructions.
SAPEX scripts and their configuration files are located in
<AGENT_DIR>/bin/sapex
directory.
Extract source code
Launch SAPEX sapexCode.xml
script, for source code extraction from a remote SAP system.
Usage:
ant -f sapexCode.xml
[-Dhost=HOSTNAME] [-Dsysnr=SYSNR_VALUE] [-Dclient=CLIENT_NAME]
[-Duser=USER] [-Dpass=PASS]
[-Dsap.connector=PATH_TO_SAP_JCO]
[-Ddir.code=DIRECTORY_FOR_EXPORTED_CODE]
[-Dtransportpattern=TRANSP] [-Dsubtransports=true/false]
[-DpackagePattern=PACKAGE] [-Dsubpackages=true/false]
[-Dprograms=true/false] [-Dprogrampattern=PROG_PATTERN]
[-Dfunctions=true/false] [-Dfunctionpattern=FUNC_PATTERN]
[-Dclasses=true/false] [-Dclasspattern=CLASS_PATTERN]
[-Dwebdynpros=true/false] [-DwendynrpoPattern=WD_PATTERN]
[-Dlanguage=LANG]
[-Dcustomobjectsonly=true/false] [-Dcustomnamespace=CUSTOM_NS]
Example:
ant -f sapexCode.xml -Ddir.code=/my/dir
- Connection properties for target SAP server could be configured in
sapex.properties
file in${AGENT_HOME}/config
, or in this script directory. - Custom code extract config could be placed in a sapexCode.properties file located in
${AGENT_HOME}/config
, or in this script directory. Any parameter passed at script command line overwrites a parameter with same name in sapexCode.properties. host
,sysnr
,client
,user
,pass
andsap.connector
are configuration values for target SAP system, and the location of the SAP JCo3 library.dir.code
is the directory where exported code will be stored.- For operation, you must add to target SAP system the function module
ZKW_SAPEX_CODE_RPC
(which must be RFC-enabled), programZKW_SAPEX_CODE
, and the utility classes.
The program ZKW_SAPEX_CODE
might be run in SAP as an alternative to this (remote) extraction script.
Extract metadata
Launch SAPEX sapexMetadata.xml
script, for metadata extraction from a remote SAP system.
Usage:
ant -f sapexMetadata.xml
[-Dhost=HOSTNAME] [-Dsysnr=SYSNR_VALUE] [-Dclient=CLIENT_NAME]
[-Duser=USER] [-Dpass=PASS]
[-Dsap.connector=PATH_TO_SAP_JCO]
[-Ddir.metadata=DIRECTORY_FOR_EXPORTED_CODE]
Example:
ant -f sapexMetadata.xml -Ddir.metadata=/my/dir
- Connection properties for target SAP server could be configured in
sapex.properties
file in<AGENT_HOME>/config
, or in this script directory. - Custom code extract config could be placed in a
sapexMetadata.properties
file located in<AGENT_HOME>/config
, or in this script directory. Any parameter passed at script command line overwrites a parameter with same name insapexMetadata.properties
. host
,sysnr
,client
,user
,pass
andsap.connector
are configuration values for target SAP system, and the location of the SAP JCo3 library.dir.metadata
is the directory where SAP information files will be stored.- For operation, you must add to target SAP system the function module
ZKW_SAPEX_METADATA_RPC
(which must be RFC-enabled), and programZKW_SAPEX_METADATA
, plus the utility classes
The program ZKW_SAPEX_METADATA
might be run in SAP as an alternative to this (remote) extraction script.