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.

Example: Extending a File<br />

© SAP AG<br />

REPORT RSFFF01F.<br />

TABLES: SFLIGHT, SBC420A.<br />

PARAMETERS FILE(20) DEFAULT<br />

'/tmp/RSFFF01A' LOWER CASE.<br />

START-OF-SELECTION.<br />

OPEN DATASET FILE FOR APPENDING<br />

IN BINARY MODE.<br />

GET SFLIGHT.<br />

MOVE-CORRESPONDING SFLIGHT TO SBC420A.<br />

TRANSFER SBC420A TO FILE.<br />

WRITE: / SBC420A-CARRID, SBC420A-CONNID.<br />

END-OF-SELECTION.<br />

CLOSE DATASET FILE.<br />

To append data records to the end of the file, you use the FOR APPENDING addition of the OPEN<br />

DATASET statement.

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

Saved successfully!

Ooh no, something went wrong!