여러분 안녕하세요!
현재 첨부파일 문제 때문에 고민이 많아서 죽겠습니다.
하나의 CLASS을 사용하면 된다고 해서 아래와 같이 사용 하였습니다.
*&---------------------------------------------------------------------*
*& Form attach_file
*&---------------------------------------------------------------------
* text
*----------------------------------------------------------------------*
FORM ATTACH_FILE USING P_OBJTYPE
P_OBJKEY.
DATA: G_MARK.
DATA GO_MANAGER TYPE REF TO CL_GOS_MANAGER.
DATA: GS_SERVICE_SELECTION TYPE SGOS_SELS,
GT_SERVICE_SELECTION TYPE TGOS_SELS.
DATA GP_SERVICE LIKE SGOSATTR-NAME.
DATA GS_OBJECT TYPE BORIDENT.
DATA GS_BC_OBJECT TYPE SIBFLPOR.
REFRESH GT_SERVICE_SELECTION.
CLEAR GS_SERVICE_SELECTION.
GS_SERVICE_SELECTION-SIGN = 'I'.
GS_SERVICE_SELECTION-OPTION = 'EQ'.
GS_SERVICE_SELECTION-LOW = 'PCATTA_CREA'.
APPEND GS_SERVICE_SELECTION TO GT_SERVICE_SELECTION.
IF GO_MANAGER IS INITIAL.
CREATE OBJECT GO_MANAGER
EXPORTING
IP_NO_COMMIT = ' '
IP_NO_INSTANCE = ' '
IP_MODE = 'E'
IT_SERVICE_SELECTION = GT_SERVICE_SELECTION.
ENDIF.
GP_SERVICE = 'PCATTA_CREA'.
GS_OBJECT-OBJKEY = P_OBJKEY.
GS_OBJECT-OBJTYPE = P_OBJTYPE.
CALL METHOD GO_MANAGER->START_SERVICE_DIRECT
EXPORTING
IP_SERVICE = GP_SERVICE
IS_OBJECT = GS_OBJECT
IS_BC_OBJECT = GS_BC_OBJECT
IMPORTING
EP_AVAILABLE = G_MARK
EXCEPTIONS
NO_OBJECT = 1
OBJECT_INVALID = 2
EXECUTION_FAILED = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " attach_file
그런데 "The service <'Attachment list'> is not available" 라는 메시지가 나타납니다.
OBJECT를 어떻게 만들으면 되는지 아시는 분들께서 조언을 해주시기 바랍니다.