Creating a Variant Definition Using GENERATE VARDEF Command - UNIX

Creating a USAP Variant Definition Using the USAP GENERATE VARDEF Command - UNIX

SAP variants often have many parameters. This can make it tedious and time-consuming to create Universal Connector variant definitions by hand.

Fortunately, Universal Connector offers a function that will generate a complete variant definition based on a pre-existing template variant on the SAP system. The generated variant definition can then be used with the Universal Connector sub or modify command to prepare a variant for a job run.

The following example demonstrates the use of the generate vardef command. It will generate a complete Universal Connector variant definition based on the pre-existing variant SBT1 of ABAP program RSBDSUB. The generated variant definition will contain all the information required to reproduce the original template variant.

Note

This example assumes (and requires) that a variant named SBT1 exists for ABAP program RSBDCSUB.

The following figure illustrates the command used to generate a Universal Connector variant definition.


usap -dest CF5 -client 800 -userid sapuid -pwd sappwd -generate vardef
     -abapname RSBDCSUB -variant SBT1

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.

-abapname

Name of the ABAP program that the template variant belongs to.

-variant

Name of the variant that Universal Connector will use as a template for generation.

Components

Universal Connector for SAP for UNIX