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 row in ztable

Former Member
0 Kudos

how i can delete 1 row in ztable

10 REPLIES 10

Former Member
0 Kudos

Hi rani,

1. like this.

delete from t001 where bukrs = '1112'.

regards,

amit m.

Former Member
0 Kudos

delete from ztable where f1 = ...

delete ztable from warea.

0 Kudos

hi

select the row u want to delete and then goto TableEntry

in the menu bar then click delete.

former_member186741
Active Contributor
0 Kudos

1. you can generate table maintenance via se11.

2. if the table is tagged as 'display/maintenance allowed' on the 'delivery and maintenance' tab of se11 you can use se16 to delete rows.

3. you can write an abap to delete rows for you. This can be as simple or complex as you like.

Former Member
0 Kudos

Hi,

SELECT * FROM ZTABLE INTO TABLE ITAB WHERE 'condition'.

DELETE ZTABLE FROM TABLE ITAB.

rgds,

latheesh

Message was edited by: Latheesh Kaduthara

rahulkavuri
Active Contributor
0 Kudos

To delete records from a database table, you use the DELETE statement.

<b>DELETE FROM SFLIGHT WHERE CARRID = ‘LH’ AND CONNID = ‘454’.

Will delete the single record where conditions are met from SFLIGHT.</b>

You can <b>delete the multiple reco</b>rds from database table by putting all the records, which you want to delete in internal table. For example

<b>DELETE SFLIGHT FROM TABLE ITAB.</b>

In this case whatever you have in internal table will be deleted from SFLIHT.

Note: append internal table with all the entries, which you want to delete.

Bema
Active Participant
0 Kudos

delete from ztable where fieldname = value

former_member188685
Active Contributor
0 Kudos

Hi,

select that record using select single or select up to one rows then collect it to wa.

<b>select single * from ztable into wa where key1 = value
                                          key2 = value2.</b>

<b>

delete ztable from wa.</b>

Regards

vijay

Former Member
0 Kudos

hi

if ur requirement is to delete records from Ztable while table is undfer loop do it as :

loop at itab into w_itab where a > 100 .

delete from ztable where a = w_itab-a .

endloop .

where a being the field of same data element in these table...

hope this is clear...

thanks...

former_member927251
Active Contributor
0 Kudos

Hi Rani,

Have a look at the following demo programs in SE38.

Reward points to all helpful answers and close the thread.

<b>DEMO_INT_TABLES_DELETE_ADJACEN

DEMO_INT_TABLES_DELETE_FROM

DEMO_INT_TABLES_DELETE_IND_1

DEMO_INT_TABLES_DELETE_IND_2

DEMO_INT_TABLES_DELETE_IND_3

DEMO_INT_TABLES_DELETE_WHERE </b>