Creates a new variant.
Transaction: SA38
Interface: Standard
R3_CREATE_VAR[IANT]
REP[ORT]=...
,VAR[IANT]=...
[,TEXT=...]
[,PROTECTED=...]
AE automatically sets the attribute "Variant for background processing" when a variant is created. All other variant properties are set in the same way that properties are created in the SAP GUI.
The functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… R3_CREATE_VARIANT always creates variants without contents. Use R3_MODIFY_VARIANT or R3_SET_SELECT_OPTION to add entries to these variants. Keep the following order when you call functions if a report should be processed with a new variant:
If you want to recreate a variant that already exists, you can delete it by using the function R3_DELETE_VARIANT and then recreate it.
The job aborts if an error occurs while the variant is being created.
The variant's clientA closed environment within an Automation Engine system where you can create and run objects. A client name consists of a 4-digit number that must be indicated when a user logs on to the Automation Engine system. Users and their rights are also defined in clients. A particular Automation Engine object type. is automatically the one to which the SAP agent has logged on because of its Login objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task. SAP system variants (CUS& and SAP&) can also be created. In this case, the variant's client is automatically set to 0000.
XBP 2.0 or above (SAP Release 4.6+) is required for using R3_CREATE_VARIANT.
The following example defines the value "17" for the parameter "MIN_AGE". This selection criterion is then used to create a variant.
R3_SET_SELECT_OPTION SELNAME='MIN_AGE',KIND='P',LOW='17',SIGN='I'
R3_CREATE_VARIANT REP=REPORT01,VAR=NEW,TEXT='New variant'
See also:
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |