728x90
반응형
SELECT-OPTIONS 값 변형해서 변수에 넣기
RANGES: GR_PERIO FOR CE1K100-PERIO.
IF S_MONTH-HIGH IS INITIAL.
GR_PERIO[] = VALUE #( BASE GR_PERIO[] ( SIGN = 'I' OPTION = 'EQ' LOW = P_GJAHR && '0' && S_MONTH-LOW ) ).
ELSE.
GR_PERIO[] = VALUE #( BASE GR_PERIO[] ( SIGN = 'I' OPTION = 'BT' LOW = P_GJAHR && '0' && S_MONTH-LOW
HIGH = P_GJAHR && '0' && S_MONTH-HIGH ) ).
ENDIF.
SELECT * FROM TABLE
INTO TABLE @DATA(LT_TAB)
WHERE BUKRS = @P_BUKRS
AND VERSN IN @S_VERSN
AND ZPLANYYMM IN @GR_PERIO.
SELECT-OPTIONS 값에 특정값 있는지 확인하기
LOOP AT S_VERSN.
IF ( S_VERSN-LOW = GC_0 OR S_VERSN-LOW = GC_000 ) OR
( S_VERSN-HIGH = GC_0 OR S_VERSN-HIGH = GC_000 ).
GV_ACT = ABAP_TRUE.
ENDIF.
IF ( S_VERSN-LOW(1) = GC_P OR S_VERSN-LOW(1) = GC_T ) OR
( S_VERSN-HIGH(1) = GC_P OR S_VERSN-HIGH(1) = GC_T ).
GV_PLAN = ABAP_TRUE.
ENDIF.
ENDLOOP.
728x90
반응형
'ABAP' 카테고리의 다른 글
ALV 체크박스 클릭시 Cell edit (1) | 2023.02.21 |
---|---|
Dynamic table Calculation (0) | 2023.02.21 |
ALV F4 (Possible entry) (0) | 2023.02.21 |
Maintenance View Call Function (0) | 2023.02.21 |
OLE (0) | 2023.02.21 |
댓글