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 data with table maintenance generator

Former Member
0 Kudos

Hi All,

I have created custom table ZXXX and table maintenance generator.

I need to maintain data but delete them too. I can update and modify data but how can I delete them ?

Thanks for your answers !

Best regards,

Sandrine

8 REPLIES 8

former_member536879
Active Contributor
0 Kudos

Hi,

use the Table mantiance generator or Code in the PAI of the maintaince generator.

With Regards,

Sumodh.P

Former Member
0 Kudos

select the row you want to delete and press the delete ICON.

Former Member
0 Kudos

Hi

If you have created table maintaince for the table.. Then go to SM30 transaction

Give the table name ie : like ZXXX ( name of the table ) and click on maintain.

Now you will enter into overview screen

.

Here select the record which you want to delete and hit the delete button ( 4th button )

The records gets deleted from the table

Let me know if you need further information.

Regards

Satish Boguda

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

Breakpoint has told the exact way.

Do check the maintenance status read,change,delete,insert is marked for the maintenance view

0 Kudos

Hi,

Sorry I hasn't been clear. I would like to maintain the content of the table in the program.

I've used "Delete ZXXX" but it didn"t work.

Maybe there is another command or parameter ?

thanks,

Sandrine

0 Kudos

Do an F1 on the DELETE keyword, read the online documentation: [http://help.sap.com/abapdocu_70/en/ABAPDELETE_DBTAB.htm]

0 Kudos

ok, I found ..

I created an internal table to delete the content of my table ZXXX :

DATA : ws_zxxx TYPE zxxx OCCURS 0 WITH HEADER LINE.

select * from zxxx into CORRESPONDING FIELDS OF TABLE ws_zxxx

DELETE zxxx from table ws_zxxx.

commit work.

it works !

thanks all !

0 Kudos

ok, I found ..

I created an internal table to delete the content of my table ZXXX :

DATA : ws_zxxx TYPE zxxx OCCURS 0 WITH HEADER LINE.

select * from zxxx into CORRESPONDING FIELDS OF TABLE ws_zxxx

DELETE zxxx from table ws_zxxx.

commit work.

it works !

thanks all !