Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Contents:

Table of Contents
Related pages:

Page Tree

Content by Label
showLabelsfalse
sorttitle
showSpacefalse
excerpttrue
labelssapex

Info

Remote scripts use SAP Java Connector (JCo) version 3.

Visit Install SAP JCo Connector library for instructions.

...

root@self
excerpttrue

  • <AGENT_DIR>/bin/sapex directory.

 

 

Extract source code

 

Info

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. 
  • hostsysnrclientuserpass and sap.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), program ZKW_SAPEX_CODE, and the utility classes.

 

Info

  The program ZKW_SAPEX_CODE might be run in SAP as an alternative to this (remote) extraction script.

 

Extract metadata

Info

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 in sapexMetadata.properties
  • hostsysnrclientuserpass and sap.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 program ZKW_SAPEX_METADATA, plus the utility classes 
Info

The program ZKW_SAPEX_METADATA might be run in SAP as an alternative to this (remote) extraction script.

 

 

...