DELETE DATASET
Short Reference
ABAP Syntax DELETE DATASET dset.
What does it do? The statement deletes the file specified in dset .
dset expects a character-like data object containing the
physical name of the file. The file
can be opened or closed.
Latest notes: When a file is deleted,
automatic authorization checks are performed;
self-programmed checks may also be
necessary.
Security Note
When specified dynamically, dset is a dynamic programming
technique and can present a serious security risk if not used correctly.
If the content of dset is used in a program from an external
source, it must first be checked thoroughly. See
Directory Traversal .
ABAP_SUBRC_GENERAL
sy-subrc Meaning
0File has been deleted.
4File could not be deleted.
Runtime Exceptions Catchable Exceptions
CX_SY_FILE_AUTHORITY
Reason for error: No authorization for access to file
Runtime error: OPEN_DATASET_NO_AUTHORITY (can be handled)
CX_SY_FILE_OPEN
Reason for error: File cannot be opened
Runtime error: DATASET_CANT_OPEN (can be handled)
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved