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 |
|
"" |
| OVERWRITE=
(Optional) |
Handling if the target variant already exists | Script literal |
|
NO |
| PROTECTED=
(Optional) |
Controls whether the copied variant is protected against modifications | Script literal |
|
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: