Hello,
I want to store attachments from service to objects (type ATTA).
So I use
SO_DOCUMENT_READ_API1
to get the documents as described by SAP.
CALL FUNCTION 'SO_DOCUMENT_READ_API1'
EXPORTING
DOCUMENT_ID = L_OBJKEY
FILTER = 'X X'
IMPORTING
DOCUMENT_DATA = wa_doc_data
TABLES
OBJECT_HEADER =
OBJECT_CONTENT = gt_doc_content
The lines of the file are in gt_doc_content and moved to gt_tab.
Now I want to store the file on my frontend via
GUI_DOWNLOAD
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = L_DEST
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = gt_tab
I get the documents stored on my frontend, with an information about their length.
TXT-Files look ok, but Word.docs and PDFs cannot be opened.
Does anyone have experience with this issue?
Your help is really appreciated!
Best regards
Dirk