Short Text
Dynamic Selections: Convert Format from RSDS_TRANGE ==> RSDS_TWHEREFunctionality
Converts dynamic selections from RSDS_TRANGE format to RSDS_TWHERE format (type pool RSDS).The module carries out a purely mechanistic conversion, without checks (such as for valid dictionary field).
Parameters
FIELD_RANGESWHERE_CLAUSES
Exceptions
Function Group
SSEL
Example
Input
DATA: LT_FIELDTAB TYPE RSDS_FRANGE_T.
DATA: LS_FIELDLINE TYPE RSDS_FRANGE,
LS_SELECTION TYPE GUSL_S_RANGE.
*----- Company code
CLEAR: LS_FIELDLINE ,
LS_SELECTION .
LS_FIELDLINE-FIELDNAME = 'BUKRS'.
LS_SELECTION-SIGN = 'I'.
LS_SELECTION-OPTION = 'EQ'.
LS_SELECTION-LOW = P_BUKRS.
APPEND LS_SELECTION TO LS_FIELDLINE-SELOPT_T[].
APPEND LS_FIELDLINE TO LT_FIELDTAB.
*----- Fiscal year
CLEAR: LS_FIELDLINE ,
LS_SELECTION .
LS_FIELDLINE-FIELDNAME = 'GJAHR'.
LS_SELECTION-SIGN = 'I'.
LS_SELECTION-OPTION = 'EQ'.
LS_SELECTION-LOW = P_GJAHR.
APPEND LS_SELECTION TO LS_FIELDLINE-SELOPT_T[].
APPEND LS_FIELDLINE TO LT_FIELDTAB.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE'
........
Output:
( BUKRS EQ 'BKPF' )
AND ( GJAHR EQ '2015' )
AND ( STBLG EQ ' ' )
No comments:
Post a Comment