테이블 유지보수 생성기에 F4 추가 및 자동 가져오기 설명

1902 단어
설명된 코드를 자동으로 가져옵니다.
SELECT SINGLE NAME1
  INTO ZPM004-NAME1
  FROM T001W
  WHERE WERKS = ZPM004-IWERK
    AND SPRAS = SY-LANGU.

F4 코드 추가
DATA:BEGIN OF LT_WERKS OCCURS 0, WERKS LIKE T001W-WERKS, NAME1 LIKE T001W-NAME1, END OF LT_WERKS. SELECT WERKS NAME1 INTO CORRESPONDING FIELDS OF TABLE LT_WERKS FROM T001W. SORT LT_WERKS BY WERKS. DELETE ADJACENT DUPLICATES FROM LT_WERKS COMPARING WERKS. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING RETFIELD = 'WERKS' DYNPPROG = SY-REPID DYNPNR = SY-DYNNR DYNPROFIELD = 'IWERK' VALUE_ORG = 'S' TABLES VALUE_TAB = LT_WERKS EXCEPTIONS PARAMETER_ERROR = 1 NO_VALUES_FOUND = 2 OTHERS = 3.

좋은 웹페이지 즐겨찾기