Application Development 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: 

Delete large no of records from db

Former Member
0 Kudos
1,421

Hi All,

When am trying to delete a large no of data from db table it is giving dump if i use Delete db from inttable statment.How can i avoid this?

Thanks,

Rakesh.

Edited by: Rakesh More on Jul 29, 2008 1:25 PM

11 REPLIES 11

Former Member
0 Kudos
242

Hi

What is the Error Message?

matt
Active Contributor
0 Kudos
242

Delete fewer records at one go.

Former Member
0 Kudos
242

instead of write logic like delete db from itab. use loop to delete record by record

Former Member
0 Kudos
242

DELETE RECORDS IN A PARTICULAR INTERVAL REGULARLY

Former Member
0 Kudos
242

Use

DELETE dbtab FROM wa.

Regards

rajesh

0 Kudos
242

I have to delete more than 20 lakhs records.I dont think the internal table can hold so much of data!!

0 Kudos
242

Delete as ...

do.

select * from <table> into

table it_table up to 20000 rows.

if sy-subrc = 0.

DELETE <table> FROM TABLE it_table.

refresh : it_table.

else.

exit.

endif.

enddo.

0 Kudos
242

First I have to display total no of records to the user and after the user clicks delete button the records have to be deleted.So i cant use SELECT UPTO n rows.

Former Member
0 Kudos
242

Hi,

sorry i thought u want to delete records from db directly....

If u want to delete records of db table from internal table, try as follows,

loop at itab into w_itab.

delete DB from w_itab.

Endloop.

Regards,

Kusuma.

Edited by: kusuma kurapati on Jul 29, 2008 1:32 PM

Former Member
0 Kudos
242

Hi,

For deleting table entries, Use the transaction SE16N,

Do give the table name and then enter the value range for deleeting...

On the transaction view entry(left corner top where you enter any transaction code)...enter(&SAP_EDIT) and then press execute button

On next screen, you get all the entries based on the value range..

Now you can select all and delete at one go...

Reward if useful

Regards

Shiva

  • Note: Be carefull!!! while deleting..

Former Member
0 Kudos
242

Hi,

Thier may be some limit .. while deleting the records.......