Skip to Content
0
Former Member
Jul 26, 2016 at 01:53 AM

Delete of Table Entries for Undefined Tables

48 Views

Hi ABAP Gurus

I've tried to locate the answer to this but I keep hitting Internal Table processing where as my issue is specific to Transparent Tables

I have a number of Tables which are system generated. As we move between Development/QAS/Production the table names will differ

What I need to do on a daily basis is empty specific entries from these tables.

So for some tables the delete maybe: Delete from TAB123

Others: Delete from TAB234 where FIELDABC = 'A'

& Others: Delete from TAB345 where FIELDBCD = 'A' and FIELDCDE = 'B'

I will know which table requires the specific condition applied but as with OPEN SQL Processing the program must know the table definition in order to compile.

How can I programmatically achieve this logic

Many Thanks

Arden