Ansicht
Dokumentation
ABAPDELETE_DATASET - DELETE DATASET
Addresses (Business Address Services) General Data in Customer MasterThis documentation is copyright by SAP AG.
DELETE DATASET
DELETE DATASET dset.
Effect
The statement deletes the file specified in dset. dset expects a character-like data object that contains the
physical name of the file. The file can be opened or closed.
Note
When a file is deleted, automatic authorization checks are performed, but self-programmed checks may also be necessary.
Access to a file whose name dset is passed to a program from outside is a serious security risk. Any names passed to a program from outside must be checked thoroughly before being used. See
Directory Traversal.
Return Value
sy-subrc | Meaning |
0 | File has been deleted. |
4 | File could not be deleted. |
Exceptions
Catchable Exceptions
- Cause: No authorization for access to file
Runtime Error: OPEN_DATASET_NO_AUTHORITY (can be handled)
- Cause: File cannot be opened
Runtime Error: DATASET_CANT_OPEN (can be handled)
Example
Opening of a file for writing and reading and then deleting the file.
CL_GUI_FRONTEND_SERVICES - Frontend Services SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2530 Date: 20240426 Time: 175505 sap01-206 ( 56 ms )