Entering content frame

Procedure documentation Scrolling Through a Database File Locate the document in its SAP Library structure

Use

You request the remaining contents of an opened database file. To do so, you use the <file_handle> displayed by the system when you open the database file.

Prerequisites

·        You have opened a database file. The keyword CONTINUE in the reply shows that you have not yet read the entire file.

·        You have the server authorization DBFileRead.

·        You have determined the file ID of the file (see: Displaying a List of Database Files).

Syntax

file_getnext <file_ID> <file_handle>

Reply

Output in ASCII Mode

OK<NL>
[CONTINUE|END]<NL>
<file_length>:20<data_length>:20<NL>
<data><NL>
<data><NL>
...

Output in Binary Mode

OK<NL>
[CONTINUE|END]<NL>
<file_length><data_length><NL>
<data><NL>

Values for the Reply Fields

Field

Description

END

Contents of the file have been completely transferred, file is automatically closed

CONTINUE

File has additional entries that have not been transferred due to the limited size of the reply memory. Call these by entering the command used above again

<file_length>

File length

<data_length>

Data length

<data>

Data value

Note

The total length of file is not determined again and is, therefore, set to 0.

 

Leaving content frame