SAP DELETE CLUSTER ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID DELETE-FROM-SHARED
ID DELETE-FROM-MEMORY
ID DELETE-FROM-DATABASE
• DELETE cluster ABAP Statement
• FROM DATABASE DELETE
• FROM MEMORY DELETE
• FROM SHARED MEMORY DELETE
• FROM SHARED BUFFER DELETE
• MEMORY DELETE FROM
• DATABASE DELETE FROM
• SHARED MEMORY DELETE FROM
• SHARED BUFFER DELETE FROM
• CLIENT DELETE FROM
• ID DELETE FROM

DELETE FROM
Short Reference

ABAP_SYNTAX
DELETE FROM ${ ${MEMORY ID id$}
$| ${DATABASE dbtab(ar) $[CLIENT cl$] ID id$}
$| ${SHARED MEMORY dbtab(ar) $[CLIENT cl$] ID id$}
$| ${SHARED BUFFER dbtab(ar) $[CLIENT cl$] ID id$} $}.

What does it do?
This statement deletes a data cluster stored in the ABAP memory, in a database table, or in a cross-transaction application buffer of the current ABAP_ASINSTANCE using the statement EXPORT. The data cluster is identified by its ID id and, except in the case of the ABAP memory, by the name of a database table dbtab, a range ar, and an optional client cl. The same rules apply to dbtab, ar, cl, and id as to accessing the appropriate repository with the IMPORT statement.
System Fields sy-subrcMeaning 0The specified data cluster was found and deleted. 4The specified data cluster was not found.



Latest notes:

See also Classes for Data Clusters.
Since each client represents a self-contained unit, the addition CLIENT should not be used in application programs.
ABAP_HINT_END



Example ABAP Coding

In this example, two fields are written to a data cluster in an application buffer of the current ABAP_ASINSTANCE , extracted, and then deleted. Accessing the same data cluster again sets sy-subrc to 4.
ABEXA 00189
ABAP_EXAMPLE_END



Runtime Exceptions



Catchable Exceptions
CX_SY_EXPIMP_DB_SQL_ERROR
Reason for error:
SQL error in deletion from the database.
Runtime error:
DBIF_...

Non-catchable Exceptions
Reason for error:
Error when deleting in cross-transaction application buffer
Runtime error:
DELETE_BUFFER_FAILED
Runtime error:
DELETE_BUFFER_EXTERNAL_ERROR
Runtime error:
DELETE_BUFFER_INTERNAL_ERROR
Runtime error:
DELETE_BUFFER_KEY_NOT_FOUND
ABAP_NONCAT_END

Return to menu