Application Development and Automation 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: 
Read only

Pick & Delte the File from application server...

Former Member
0 Likes
767

Dear All,

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

regards.

Dear All,

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

regards.

5 REPLIES 5
Read only

Former Member
0 Likes
712

Hi,

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

Rgds,

Read only

Former Member
0 Likes
712

YOu can use the delete dataset command after the processing.

regards,

ravi

Read only

0 Likes
712

hi,

use fm EPS_DELETE_FILE

A.

Read only

Former Member
0 Likes
712

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

Read only

0 Likes
712

refer.