
Field | Description | Examples |
SIGN | whether records should be in- or excluded | ‘I’ = Include ‘E’ = Exclude |
OPTION | the selection operator | ‘EQ’ = Equal ‘BT’ = Between ‘GT’ = Greater than … |
LOW | the lower limit of the interval | … |
HIGH | the higher limit of the interval | … |
Ranges, or ranges tables, are internal tables containing the four columns listed above. They are declared with syntax TYPE RANGE OF. Select-options, on the other hand, refer to selection criteria on selection screens, which are linked with automatically generated selection tables. These are global internal tables with header line, that share the same layout as ranges tables. |
FOR
operator allows simple conversion from internal table to ranges table, without the need of directly looping over the table.DATA(material_range) =
VALUE rsdsselopt_t(
FOR material IN materials
( sign = if_fsbp_const_range=>sign_include
option = if_fsbp_const_range=>option_equal
low = material-matnr ) ).
CORRESPONDING
together with MAPPING
.materials = CORRESPONDING #( material_range MAPPING low = matnr ).
SELECT 'I' AS sign,
'EQ' AS option,
matnr AS low, matnr AS high
INTO TABLE @DATA(material_range)
FROM mara.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |