Skip to Content
0
Jun 11, 2020 at 03:50 AM

How to Download / Retrieve File GOS attachment ?

5345 Views

Hi all,
i just create program to upload file ( word, pdf, excel, ppt, image ) using GOS attachment like below code.

DATA: g_object TYPE borident.
DATA : BEGIN OF it_attach,
       nourut LIKE ztab_tasklist-nourut,
END OF it_attach.

DATA : gcl_gos_obj TYPE REF TO cl_gos_document_service.

CREATE OBJECT gcl_gos_obj.
it_attach-nourut = ztab_tsklist-nourut.

g_object-objkey  = it_attach.
g_object-objtype = 'ZTASK'.

CALL METHOD gcl_gos_obj->create_attachment
EXPORTING
  is_object = g_object.

now, how to download / retrieve that files ??

i see my file stored in table SOFFPHIO.
please help me .