728x90
반응형
과제
[Dictionary]
구조
테이블 유형
[Function builder]
[Import]
[Export]
[Tables]
[Source Code]
TABLES PA0001.
IF I_PERNR IS NOT INITIAL
AND S_DAY IS NOT INITIAL
AND E_DAY IS NOT INITIAL.
SELECT * FROM PA0001
INTO CORRESPONDING FIELDS OF TABLE TAB1
WHERE PERNR = I_PERNR
AND BEGDA = S_DAY
AND ENDDA = E_DAY.
"DB 업로드 구문
ELSEIF TAB1[] IS NOT INITIAL. "= 'X'.
MODIFY PA0001 FROM TABLE TAB1.
ENDIF.
IF SY-SUBRC = 0.
RETURN-TYPE = 'S'.
RETURN-MESSAGE = '성공'.
ELSE.
RETURN-TYPE = 'E'.
RETURN-MESSAGE = '에러'.
ENDIF.
INITIAL에도 OR와 AND조건을 줄수 있다는걸 처음알았다.
728x90
반응형
댓글