Versions Compared

Key

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


Panel
Table of Contents

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

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

Anchor
1045498
1045498
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.

Anchor
1045483
1045483
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
titleNote

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.


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

Command Line Options

Anchor
1045389
1045389
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

Anchor
1045428
1045428
Universal Connector for SAP for UNIX