Using Shell Scripts to Work with SDAs

Use

If you want to perform single operations over SAP-specific or standard JavaEE archives and you do not have access to an SAP NetWeaver Developer Studio, you can use shell scripts.

Prerequisites

Open a command prompt in the <Installation_Directory>/usr/sap/<SID>/<Instance_Number>/j2ee/deployment/scripts directory.

Procedure

With all commands you can see the working directory in the <Installation_Dicrectory>/usr/sap/<SID>/<Instance_Number>/j2ee/cfg/deployment14.properties file.

Generating a Single SDA

Execute the command:

make_SDA <path_to_source_file> [-w work_dir] [-d destination_file] [-pr properties_file]

The options are:

  • <path_to_source_file> - the path to the source file to produce an SDA from

  • [-w work_dir] - the work directory

  • [-d destination_file] - the destination SDA file

  • [-pr properties_file] - the properties file where SDA attributes are specified

Generating Several SDAs

Execute the command:

make_SDAs <path_to_source_dir> [-w work_dir] [-d destination_dir]

The options are:

  • <path_to_source_dir> - the path to directory with source files

  • [-w work_dir] - the work directory

  • [-d destination_dir] - the destination directory

Deploying Archives

Execute the command:

deploy <user>:<password>@<host>:<port> <archive> [-no_start]

The options are:

  • <user> - the user with administrators' rights

  • <password> - the password for this user

  • <host> - the target AS Java host

  • <port> - the target P4 port

  • <archive> - the path to archive

  • [-no_start] - the deployed modules will not be started