Versions Compared

Key

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


Panel
Table of Contents

Running a Job on an SAP System Using a Universal Connector Job Definition File - UNIX

Anchor
1043899
1043899
This example illustrates running a job on an SAP system using a Universal Connector job definition file.

Anchor
1044051
1044051
Executing this sample will:

1

Submit a new job to an SAP system.

2

Start the job.

3

Wait for the job to complete.

4

Return the job log.

5

Return the spool list.


The following figure illustrates the job definition file.

Panel
/* Job Header statement. */
 JOBNAME = "USPRUN";
 
 /* ABAP Step statement. */
 ABAP_STEP            = "STEP 1"
    ABAP_PROGRAM_NAME = "BTCSPOOL"; 


The following figure illustrates the command to run the job.

Panel
usap -dest CF5 -client 800 -userid sapuid -pwd sappwd 
     -sub JOBDEF -start -wait -joblog yes -spoollist yes

Command Line Options

Anchor
1043938
1043938
Command line options used in this example are:

Anchor
1043980
1043980

Command Options

Description

-dest

Named set of connection parameters (destination) 'CF5'. These connection parameters are used for communications with the SAP system.

The "destinations" are stored in file saprfc.ini, which must be in the current directory, or its full path must be specified in environment variable RFC_INI.

-client

SAP client number that the Universal Connector will communicate with.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-sub

Specification that Universal Connector will issue the SUBMIT command.

-start

Specification that Universal Connector will instruct the SAP system to start the submitted job.

-wait

Specification that Universal Connector will monitor the started job until it completes.

-joblog

Specification that Universal Connector will return the SAP log for the started job.

-spoollist

Specification that Universal Connector will return any spool lists created by the started job.

Components

Anchor
1043985
1043985
Universal Connector for SAP for UNIX

Anchor
1043986
1043986

Anchor
1044200
1044200