2006 Aug 17 12:33 PM
hi
can on please tell me what is 'vers' in the below statemet?
DELETE dbtab VERSION vers.
thanks,
Prasad Babu.
2006 Aug 17 12:36 PM
HI,
<b>Note</b>
This variant is now obsolete, since other variants allow you to specify the database table name dynamically.
<b>
Effect</b>
Deletes a line in a database table, the name of which is taken from the field vers at runtime. The database table must be known to the ABAP Dictionary and its name must conform to the following naming convention: It must begin with 'T' and can consist of four additional characters. The field vers must contain the table name without a leading 'T'. Only lines in the current client are deleted. The line to be deleted is taken from the statically specified table work area dbtab or *dbtab.
The return code 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.
Regards,
HRA
hi
can on please tell me what is 'vers' in the below statemet?
DELETE dbtab VERSION vers.
thanks,
Prasad Babu.
2006 Aug 17 12:36 PM
HI,
<b>Note</b>
This variant is now obsolete, since other variants allow you to specify the database table name dynamically.
<b>
Effect</b>
Deletes a line in a database table, the name of which is taken from the field vers at runtime. The database table must be known to the ABAP Dictionary and its name must conform to the following naming convention: It must begin with 'T' and can consist of four additional characters. The field vers must contain the table name without a leading 'T'. Only lines in the current client are deleted. The line to be deleted is taken from the statically specified table work area dbtab or *dbtab.
The return code 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.
Regards,
HRA
2006 Aug 17 12:49 PM
Hi Prasad,
DELETE dbtab VERSION vers.
DELETE *dbtab VERSION vers.
This variant is not allowed in an ABAP Objects context. See VERSION addition not allowed.
Note
This variant is now obsolete, since variants 1 - 3 allow you to specify the database table name dynamically.
Effect
Deletes a line in a database table, the name of which is taken from the field vers at runtime. The database table must be known to the ABAP Dictionary and its name must conform to the following naming convention: It must begin with 'T' and can consist of four additional characters. The field vers must contain the table name without a leading 'T'. Only lines in the current client are deleted. The line to be deleted is taken from the statically specified table work area dbtab or *dbtab.
The return code 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.
If useful reward.
Vasanth
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |