Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delete all data in db table

Former Member
0 Likes
985

Hi,

how can I delete all data in db table.

Reagards

ertas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
959

hi use the command .

delete tabname

regards,

venkat.

9 REPLIES 9
Read only

Former Member
0 Likes
960

hi use the command .

delete tabname

regards,

venkat.

Read only

Former Member
0 Likes
959

hi,

just to this way .. in a simple program..


 select * from <dbtable> into table itab.
 delete <dbtable> from table itab . 

Read only

Former Member
0 Likes
959

hi,

what I mean is a db table

Regards

ertas

Read only

0 Likes
959

hi,

go to SE11 and give the data base ztable name and press delete button(Shift + F2) to delete the ztable. The standard tables cannot be deleted ..

Regards,

santosh

Read only

0 Likes
959

HI,

in that case ... just write a simple program and call the below statement in that ...i.e,


 * Note the below statement just deletes entire the data from the data base table ... 
 delete <dbtable>. 

Regards,

Santosh

Read only

Former Member
0 Likes
959

Hi Kumar I would like to delete the content of this db table .

How is it with abap possible ? I need a delete command without where condition

Regards

ertas

Read only

0 Likes
959

Just call

Delete <Tablename> .

where <Tablename> will be your database table name

Read only

Former Member
0 Likes
959

Hi,

You can use

Delete dbtab.

Pls reward if found helpful.

Read only

Former Member
0 Likes
959

Hi,

If you want to delete the data directly from the db table.

Just go in transaction SE14, write the table name press edit

click on radio button 'delete data' and thn click on 'activate and adjust database'.

Hope this helps,

Regds,

Seema