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 complete records of internal table while debugging

Former Member
0 Kudos

Hi All,

I want to delete all records of internal table while debugging.

There are 160000 records are coming in the internal table so i cant delete them one by one.

i want to delete them in single shot.

Thanks & Regards,

Gaurav

6 REPLIES 6

Sm1tje
Active Contributor
0 Kudos

are you using the new abap debugger? If so you can use right mouse click and delete all the records. Don't think this is possible in old debugger though.

Former Member
0 Kudos

Hi Micky,

I Am using old Debugger,

Thanks,

Gaurav

Former Member
0 Kudos

In the Debugging Mode, use path

Debugging > Switch to New ABAP Debugger

This will start New Debugger, then delete that data from Internal table by right click

vinod_vemuru2
Active Contributor
0 Kudos

Hi Gaurav,

We can't do this in single step. Instead of that u can pu ur oen checks like If sy-uname Eq ur ID.


DATA: imara TYPE TABLE OF mara.
SELECT * FROM mara into table imara up to 10 rows.
IF sy-uname EQ ur id.
DESCRIBE TABLE imara.
DELETE imara FROM 1 TO sy-tfill.
endif.

Thanks,

Vinod.

Former Member
0 Kudos

Hi Friend ,

If it is a Zxyz program , i.e program created by yourself ,

declare ( w_del type i ) variable

and write the condition like , whereever u want to delete itab records.

if w_del = 1 .

delete itab .

endif .

while in debugging , when u reach this particular step make w_del to 1 in debugging and save ,

then delete statement is executed and all the records are deleted ,

or if the condition fails data records will remain same .

Thanks ,

Reward if usefull.

0 Kudos

Hi Sam,

This is a SAP standard program.

Thanks,

Gaurav