Submitting an SAP Job Using Job Definition File - UNIX

Submitting a Job to an SAP System Using a Universal Connector Job Definition File - UNIX

This example illustrates submitting a job to an SAP system using Universal Connector job definition file.

The following figure illustrates the job definition file.

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


The following figure illustrates the command to submit the job.

usap -dest CF5 -client 800 -userid sapuid -pwd sappwd      
     -sub jobdefFile

After running this job, a new SAP job will be created on the SAP system with job name USPSUB2. The job will contain one step that runs ABAP program BTCSPOOL.

Command Line Options

Command line options used in this example are:

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.

Components

Universal Connector for SAP for UNIX