Automation Engine Script Guide > AE JCL for Applications > SAP > R3_COPY_VARIANT

R3_COPY_VARIANT

This script statement copies a report variant.

Transaction: SA38

Interface: AE and Standard

Syntax

R3_COPY_VARIANT

Syntax Description/Format AE Interface required
REP[ORT]= Name of the report whose variant should be copied.
Format of the value: script literal
 
S[OURCE]= Name of the source variant.
Format of the value: script literal
 
T[ARGET]= Name of the target variant.
Format of the value: script literal
 
DELAY=

Period in seconds which the agent waits after a variant has been copied.
Format of the value: script literal

Default value: "0"

Helps to avoid possible synchronization problems in an SAP system (a variant that has just been copied cannot be found) by using multiple application servers.

 
MODE=

Processing mode.
Format of the value: script literal

Allowed values: "" (default value) and "C"

"" - Copies the variant by duplicating table entries.
"C" - Creates the variant by referring to SAP-internal interfaces.

The parameter MODE=C must be used if you want to copy a system variant. A copy is not automatically included in a transport order.

This parameter is not required if the standard interface is used.

OVERWRITE=

Handling if the variant already exists.
Format of the value: script literal

Allowed values: "YES" and "NO" (default value)

"YES" - The target variant is overwritten.
"NO" - The target variant is not overwritten.

 
PROTECTED=

Handling of the variant while it is being copied.

Allowed values: "YES" and "NO" (default value)

"YES" - The variant is protected and cannot be changed.
"NO" - The variant is not protected.

 

Note for using the XBP3.0 interface: The options Protect variant and Only background processing are not passed on and the copied variant is visible for all users (batch and dialog).

Example

Variant 'DAILY' of report 'RSPO0041' is copied to 'DAILYCOP'.

R3_COPY_VARIANT REPORT='RSPO0041',SOURCE='DAILY',TARGET='DAILYCOP'

 

See also: