SAP ABAP SYNTAX FOR DELETE PART THREE
Variant 4
DELETE dbtab VERSION vers.
DELETE *dbtab VERSION vers.
Note
This variant is obsolete, since variants 1 - 3 allow you to specify the database table name dynamically.
Effect
The return code value is set as follows:
SY-SUBRC = 0 The line was deleted.
SY_SUBRC = 4 No lines could be deleted because no line existed with the specified primary key.
DELETE DYNEPRO - delete a screen
Basic form
DELETE DYNPRO f.
Effect
Deletes the screen specified in the field f .
The return code value is set as follows:
SY-SUBRC = 0 The screen was deleted.
SY_SUBRC = 4 The screen does not exist.
The contents of f consist of the 8-character program name and the 4-character screen number.
Example
DELETE DYNPRO 'SAPTESTX0100'.
DELETE - delete a data cluster
Basic form
DELETE FROM DATABASE dbtab(ar) ID key.
Addition
... CLIENT f
Effect
Deletes the data cluster stored in the table dbtab under the area ar (constant) and the ID key (field or literal) .
Example
TABLES INDX.DATA: BEGIN OF TAB OCCURS 1, CONT(30), END OF TAB.DATA: FLD(30) TYPE C....EXPORT TAB FLD TO DATABASE INDX(AR) ID 'TEST'.
You can delete this data cluster with the following statement:
DELETE FROM DATABASE INDX(AR) ID 'TEST'.
Addition 1
... CLIENT f
Effect
Deletes the data cluster in the client specified in the table f (only with client-specific import/export databases).
Example
44.7
RELATED POST
SAP ABAP SYNTAX FOR DELETE PART TWO



0 comments:
Post a Comment