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.

Defining Structures - Summary<br />

Yes<br />

© SAP AG<br />

Write<br />

Fill structure<br />

Transfer structure<br />

More data<br />

records?<br />

Define structures<br />

Open file<br />

Read<br />

No Yes<br />

Close file<br />

Read data record<br />

Process data record<br />

End of<br />

file?<br />

In a file processing program, you first define the structures required for the data records with the<br />

TABLES or DATA statement. The program uses these structures as internal buffers for the data<br />

records.<br />

You then open the sequential file for reading or writing with the OPEN statement.<br />

When writing to the file, you transfer the filled structures to the file with TRANSFER statements.<br />

When reading the file, you fill the structures set up for the data records with READ DATASET for<br />

further processing in the program.<br />

To close the sequential file, you exit file processing with the CLOSE DATASET statement.<br />

No

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

Saved successfully!

Ooh no, something went wrong!