2006 Jul 13 11:36 AM
Dear All,
How to Delete the file(text data - Notepad file) from Application after picking it for process.
regards.
2006 Jul 13 11:39 AM
Hi,
Use delete dataset 'dataset name', this would delete the appication server file after processing,
Rgds,
2006 Jul 13 11:41 AM
YOu can use the delete dataset command after the processing.
regards,
ravi
2006 Jul 13 11:43 AM
2006 Jul 13 11:41 AM
Hi
Use OPEN DATASET, CLOSE DATASET to read the file and DELETE DATASET to delete file after reading it.
DATA: FILE(80).
DATA: T_FILE(1000) OCCURS 0 WITH HEADER LINE.
OPEN DATASET FILE IN TEXT MODE.
IF SY-SUBRC = 0.
DO.
READ DATASET FILE INTO T_FILE.
IF SY-SUBRC <> 0. EXIT. ENDIF.
APPEND T_FILE.
ENDDO.
CLOSE DATASET FILE.
DELETE DATASET FILE.
ENDIF.
Max
2006 Jul 13 11:43 AM