R3_SET_SELECT_OPTION
The R3_SET_SELECT_OPTION script element defines an individual selection criterion. You can call it several times in succession to determine several selection criteria. They are collected and passed on when you use R3_ACTIVATE_REPORT or R3_CREATE_VARIANT the next time.
Important! When you are using R3_ACTIVATE_REPORT or R3_CREATE_VARIANT several times in the script of your SAP job, make sure that the selection criteria are set individually for each use. They are not automatically passed on.
Transaction: SA38
Interface: Standard (XBP 3.0)
Syntax
R3_SET_SELECT_OPTION
,SELNAME=...
,KIND=...
,LOW=...
[,HIGH=...]
[,SIGN=...]
[,OPTION=...]
Parameters
-
R3_SET_SELECT_OPTION
Defines an individual selection criterion - SELNAME=
Name of the selection option or the parameter
Format: script literal - KIND=
Type of selection
Format: script literal
Allowed values:- S
Selection criterion
- P
Parameter
- S
- LOW=
Parameter value
Format: script literal - HIGH=
(Optional) Parameter value
Format: script literal - SIGN=
(Optional) Identifier
Format: script literal
Allowed values:- I (default)
Include - E
Exclude
- I (default)
- OPTION=
(Optional) Option that is used for the selection
Format: script literal or AE name
Allowed values:- EQ (default)
Equal - NE
Not equal - GT
Greater than - GE
Equal or greater than - LT
Less than - LE
Equal or less than - CP
Pattern comparison, wild card characters are allowed - NP
Exclude patterns - BT
Within interval. You must also define the HIGH parameter - NB
Outside interval. You must also define the HIGH parameter
- EQ (default)
Example
The following example defines the value "17" for the "MIN_AGE" parameter which is the name of the selected option, and sets "P" as the parameter that defines the type of selection. These selections are then used to create a variant through R3_CREATE_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:
seealso