SAP/ABAP

TABLE 의 구조를 가져오는 펑션

DrkLion 2009. 5. 29. 11:34
    CALL FUNCTION 'RFC_GET_STRUCTURE_DEFINITION'
      EXPORTING
        tabname          = p_tabname
      TABLES
        fields           = p_fields
      EXCEPTIONS
        table_not_active = 1
        OTHERS           = 2.
    IF sy-subrc NE 0.
      p_return = 1.
    ENDIF.

테스트 캡쳐