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 entries

Former Member
0 Likes
869

can any one tell me how to delete entries from a database table from 30 to 80 entries i need to delete.

can any one tell me how to delete entries from a database table from 30 to 80 entries i need to delete.

7 REPLIES 7
Read only

Former Member
0 Likes
839

go to SM30 fill in the table name , select the rows, delete them and save

ofcourse you are talking about Ztables right ?

and if SM30 is not working you first have to maintain that in the table with SE11

Message was edited by:

A. de Smidt

Message was edited by:

A. de Smidt

Read only

Former Member
0 Likes
839

Hello,

Use the Transaction SM30.

Regards,

Deepu.K

Read only

Former Member
0 Likes
839

go to transaction se16n

entry your DBtable.

then type &sap_edit.

now you are able to delete the rows that you want.

reward with points if its helpful.

Read only

Former Member
0 Likes
839

You can write a code in SE38. just declare the table and user delete from statement.

If the delete is not locked by user authorization you can delete the rows you want to delete.

Read only

Former Member
0 Likes
839

Hi..

You can follow this also :

DELETE FROM 'database' WHERE field1 = 'x' AND

field2 = 'y' AND

field3 = 'z' .

In this way records satisfying ur Condition will be deleted .

Praveen .

Read only

Former Member
0 Likes
839

hi

If you just want to delete 30 to 80 the rows from a program

use

<b>DELETE from <ZTABLE> where <CONDITION>.

modify ZTABLE</b>

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

Former Member
0 Likes
839

this code will definitely work.....

first move the data from database to an internal table upto 80 rows.

select * from <dbtab> upto 80 rows into table itab1.

insert lines of itab1 from 30 into itab2.

delete <dbtab> from table itab2.

enddo.