Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Pick & Delte the File from application server...

former_member502730
Participant
0 Kudos

Dear All,

How to Delete the file(text data - Notepad file) from Application after picking it for process.

regards.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use delete dataset 'dataset name', this would delete the appication server file after processing,

Rgds,

former_member181962
Active Contributor
0 Kudos

YOu can use the delete dataset command after the processing.

regards,

ravi

0 Kudos

hi,

use fm EPS_DELETE_FILE

A.

Former Member
0 Kudos

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

0 Kudos

refer.