.

.

CLOSE DATASET & TRANSFER DATASET .For Presentation Server Using FM’s GUI_UPLOAD and GUI_DOWNLOAD FOR APPLICATION SERVER Using the statements OPEN DATASET.

Downloading of data from an internal table into a local file is done by using the FM GUI_DOWNLOAD Uploading of data into an internal table from a local file is done through using the FM GUI_UPLOAD.Files on presentation server or local work station are know as LOCAL FILES HANDLING OF LOCAL FILES Downloading or uploading of local files is done through INTERNAL TABLES only. .

. A sequential files Is also called as DATASET.Files on application server are called sequential files.  OPEN  PROCESS  CLOSE Here processing can be READING from a file or WRITING on to a file On application server. Three steps are involved in sequential file handling.

file needs to be closed OPEN DATASET < file name > FOR { OUTPUT/INPUT/APPENDING } IN { TEXT MODE / BINARY MODE } ENCODING DEFAULT. . file needs to be opened and after processing .Before processing of data. This statement return SY-SUBRC as ‘0’ if successful and ‘8’ if unsuccessful.

Processing of file involves reading the file or writing on to the file. READ READ DATASET < DATASET NAME > INTO < WA > Each read will get one record from the dataset. . TRANSFER TRANSFER < WA > TO < DATASET NAME > This is the only statement in file handling which doesn’t return SY_SUBRC.

All the sequential files . which are still open at the end of the program . This has to be done by using the CLOSE statement. DELETE DATASET < DATASET NAME > SY-SUBRC will be ‘0’ or ‘8’ depending upon whether the file is successfully deleted or not. CLOSE DATASET < DATASET NAME > SY-SUBRC will be ‘0’ or ‘8’ depending upon whether the file is successfully closed or not. will be closed by the program. .

Sign up to vote on this title
UsefulNot useful