R3_COPY_VARIANT

Use the R3_COPY_VARIANT script element to copy a report variant.

Note: When you are using the XBP3.0 interface, the Protect variant and Only background processing options are not copied. Therefore, the copied variant is visible for all users, regardless of whether they are using batch or dialog mode.

Transaction: SA38
Interface: AE and Standard

Syntax

R3_COPY_VARIANT

    REP[ORT]=...
    ,S[OURCE]=...
    ,T[ARGET]=...
    [,DELAY=...]
    [,MODE=...]
    [,OVERWRITE=...]
    [,PROTECTED=...]

Parameters

  • R3_COPY_VARIANT
    Copies a report variant

  • REP[ORT]=
    Name of the report whose variant should be copied
    Format: script literal
  • S[OURCE]=
    Name of the source variant
    Format: script literal
  • T[ARGET]=
    Name of the target variant
    Format: script literal
  • DELAY=
    (Optional) Period in seconds that the agent waits after a variant has been copied. This parameter helps to avoid possible synchronization problems in an SAP system with multiple application servers. For example, a variant that has just been copied cannot be found.
    Format: integer
    Default: 0
  • MODE=
    (Optional) Processing mode. The AE interface is required for this parameter. If you are using the standard interface, you do not need this parameter.
    Format: script literal
    Allowed values:
    • "" (default)
      Copies the variant by duplicating table entries
    • C
      Creates the variant by referring to SAP-internal interfaces. You must use this parameter if you want to copy a system variant. It is automatically included in a transport order.
  • OVERWRITE=
    (Optional) Handling if the variant already exists
    Format: script literal
    Allowed values:
    • NO (default)
      The target variant is not overwritten
    • YES
      The target variant is overwritten
  • PROTECTED=
    Handling of the variant while it is being copied
    Allowed values:
    • NO (default)
      The variant is not protected
    • YES
      The variant is protected and cannot be changed

Example

The following example copies the "DAILY" variant of the report "RSPO0041" to "DAILYCOP".

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

See also:

seealso

About SAP JCL