R3_COPY_VARIANT

Use the R3_COPY_VARIANT script element to copy a report variant.

Note: When using the XBP 3.0 interface, the Protect variant and Only background processing options are not copied. As a result, the copied variant is visible to 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

Parameter Description Format Allowed Values Default Value
REP[ORT]= Name of the report whose variant is to be copied Script literal n.a. n.a.
S[OURCE]= Name of the source variant Script literal n.a. n.a.
T[ARGET]= Name of the target variant Script literal n.a. n.a.
DELAY=

(Optional)

Time in seconds the agent waits after copying the variant. Use this when the SAP system runs with multiple application servers to allow buffer synchronization to complete and avoid the copied variant not being found immediately. Integer n.a. 0
MODE=

(Optional)

Processing mode for the copy operation. Requires the AE interface. Not needed when using the standard interface. Script literal
  • "" — Copies the variant by duplicating table entries
  • C — Creates the variant using SAP internal interfaces. Required for copying system variants; the variant is automatically included in a transport order.
""
OVERWRITE=

(Optional)

Handling if the target variant already exists Script literal
  • NO — The target variant is not overwritten
  • YES — The target variant is overwritten
NO
PROTECTED=

(Optional)

Controls whether the copied variant is protected against modifications Script literal
  • NO — The variant can be modified without restrictions
  • YES — The variant is protected; only the SAP system user can modify it
NO

Examples

The following example copies the DAILY variant of the report RSPO0041 to a new variant named DAILYCOP.

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

See also: