Hierarchy
⤷ BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷ SABP (Package) ABAP Runtime Environment
Basic Data
Data Element | TVARV_OPTI |
Short Description | ABAP: Selection option (EQ/BT/CP/...) |
Data Type
Category of Dictionary Type | D | Domain |
Type of Object Referenced | No Information | |
Domain / Name of Reference Type | SYCHAR02 | |
Data Type | CHAR | Character String |
Length | 2 | |
Decimal Places | 0 | |
Output Length | 2 | |
Value Table |
Further Characteristics
Search Help: Name | ||
Search Help: Parameters | ||
Parameter ID | ||
Default Component name | OPTION | |
Change document | ||
No Input History | ||
Basic direction is set to LTR | ||
No BIDI Filtering |
Field Label
Length | Field Label | |
Short | 10 | Option |
Medium | 15 | Option |
Long | 20 | Option |
Heading | 55 | Option |
Documentation
Definition
The operators determine whether the specified values are used as a single value, a range or a search pattern when restricting the data selection. These operators work together with the fields lower limit (From), upper limit (To) and the include/exclude criterion (I/E).
The following operators may be used:
EQ Equal
BT BeTween
LE Less Equal
GE Greater Equal
CP Contains Pattern
EQ
Selects a single value, that is precisely the value that you specify.
Example:
SMITH __ EQ _
returns the value SMITH. Underscores stand for blank input fields.
BT
Interprets the two values specified as lower and upper limits of a range.
Example:
1000 2000 BT _
returns all values between 1000 and 2000.
LE
Interprets the value entered in the lower limit field as the upper limit of a range with no lower limit. The limit itself is also included.
Example:
1000 _ LE _
returns all values smaller than or equal to 1000.
GE
Interprets the value entered in the lower limit field as the lower limit of a range with no upper limit. The limit itself is also included.
Example:
1000 _ GE _
returns all values greater than or equal to 1000.
CP
Masks the value specified in the lower limit field such that
"+" stands for exactly one character,
"*" stands for any number of characters or none.
Example:
S++TH* _ CP _
returns all values that begin with "S", followed by any two characters, then the letters "TH" and finally any string of characters.
If you use the characters "*" and "+" together with another operator, they are not interpreted as placeholders but stand for themsleves.
Example:
a*c _ EQ I
returns a*c.
Note
When you first specify values in the lower limit and upper limit fields, the system automatically sets the most suitable operator, if you do not make any entry.
Example:
After you press Enter,
1000 _ _ _
3000 5000 _ _
SMI* _ _ _
5000 _ GE _
become
1000 _ EQ _
3000 5000 BT _
SMI* _ CP _
5000 _ GE _
If you change the lower limit, upper limit or operator entries again after pressing Enter, you must enter a suitable operator yourself. The same applies when predefined values from the program are used in these fields.
History
Last changed by/on | SAP | 19990505 |
SAP Release Created in |