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

How to delete whole database table

Former Member
0 Likes
1,319

Hi there,

I am trying to delete a dbtab at one shot using the statement "DELETE dbtab" (dbtab is the database table name).

but it is returning sy-subrc = 4.

can u plzz help me to solve this issue.

Hi there,

I am trying to delete a dbtab at one shot using the statement "DELETE dbtab" (dbtab is the database table name).

but it is returning sy-subrc = 4.

can u plzz help me to solve this issue.

5 REPLIES 5
Read only

Former Member
Read only

Former Member
Read only

Former Member
0 Likes
842

Hi,

data itab type standard table of dbtab.

select * from dbtab into table itab.

delete dbtab from table itab.

Read only

Former Member
0 Likes
842

Hi Hardik,

In case you want to delete the database table for refreshing it for a reason (one time) you can do it from transaction SE14.

Select option "Activate and Adjust Database Table" and option "Delete data".

Regards,

Aditya

Read only

Former Member
0 Likes
842

thanx for ur reply frnds.....but i can't populate itab as the table is having more than 28 lacs records.

and i need to write code in a program so cant use TC se14