17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

* Call the function module UPLOAD. Pass the name of the file to be<br />

* accessed and its type. Returns the data in form of an internal<br />

* table with the length of the file accessed.<br />

CALL FUNCTION 'UPLOAD'<br />

EXPORTING<br />

FILENAME = LOCLFILE<br />

FILETYPE = TYPE<br />

* ITEM = 'SFLIGHT data'<br />

IMPORTING<br />

TABLES<br />

FILESIZE = LENGTH<br />

DATA_TAB = TAB.<br />

* Output the internal table<br />

LOOP AT TAB.<br />

WRITE: / TAB-CARRID, TAB-CONNID,<br />

ULINE.<br />

ENDLOOP.<br />

/ TAB-FLDATE, TAB-BOOKID, TAB-CUSTOMID.<br />

*D Text-001: 'From file:'<br />

*D Text-002: 'Format'<br />

*D Text-003: 'bytes were read'<br />

WRITE: / TEXT-001, LOCLFILE, TEXT-002, TYPE,<br />

LENGTH, TEXT-003.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!