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: 

Deleting the entire internal table contents at one go in debug mode

Former Member
0 Kudos

Hi All,

Is there a way to delete the entire internal table contents at one go in debug mode?

I know line by line we can do that.

At the same time I can't code the same in program(it is not required).

Please let me know ASAP, if solution exists.

Thanks in advance!!

12 REPLIES 12

Former Member
0 Kudos

Hi,

In ABAP New debugger you can delete the table records at a time, by selecting all the records, let me know, do u require the answer more elaborately...

0 Kudos

Hi Ravi,

Could you elaborate bit more,

How do we select all the contents of the internal table?

0 Kudos

Hi,

In New debugger mode, goto Tables Tab. On the right hand side, there are three buttons which are New tool, Replace tool and Services of the tool.

Click on the Services of the tool button. You wil get a popup.

In that Tool-Specific-> Change Table Content -> Delete Rows.

Before that make sure that you seleccted the entire records so that you can click on the delete rows.

Hope this solves ur problem.

Reward if helpful.

RSS

0 Kudos

Hi,

In debugging mode select the menu option as below so that you can switch the classical debugger to New abap debugger.

Debugging (menu option ALT+D) --> Switch to New ABAP Debugger (W).

Now New ABAP Debugger will be switched.

1) Now double click on the internal table that u want to delete the records.

2) Then records of internal table will be showed on the new debugger in a table control.

3) Now select the all the records that u want to delete at a time.

4) Now click on the 'Services of the Tool' icon (which is placed at right corner of the debugging screen).

5) Now a dialog box will be displayed, in that there will be an ICON named DELETE ROWS, click on that, it will ask for confimation, then click on YES.

6) Then all the records that u selected will be deleted at a time.

Reward points if it is helpful.

former_member195383
Active Contributor
0 Kudos

go to structure editter,

there u can delete all the records...

in the debugging mode...

go to->Display Data Object-> Structure Editter

Reward if the ans is helpful...

Edited by: Rudra Prasanna Mohapatra on Jun 18, 2008 8:19 AM

former_member181995
Active Contributor
0 Kudos

CRM,

There is no way to delete at one go.

but only thing is that you have to select all line at one than only you can delete itab at one.

Amit.

former_member435013
Active Participant
0 Kudos

Hi,

may be it is not possible. So you have to change code.

But you can do it safe:

DATA:

itab_del.

  • set break point here and change itab_del for delete

IF NOT itab_del IS INITIAL.

DELETE itab.

CLEAR itab_del.

ENDIF.

regards

Walter Habich

Former Member
0 Kudos

In the debug mode (new debugger) double click on the int table which u want to delete. In the right hand side u willl see one buttion SERVICES OF THE TOOL.

click on that , there u see delete table(free table).

At one shot u can delete the int table

with regards

anand

former_member435013
Active Participant
0 Kudos

hi,

I suppose this option is only available with the new debugger (ERP 5.0 / 6.0).

I have heard you can switch between old and new debugger in settings.

Regards

Walter Habich

former_member202474
Contributor
0 Kudos

Hi,

u can delete the itab entries at one go itself while debugging.

select one entry from the itab right clcik and do delete table(free).

This clears the itab.

      • reward if useful

Regards,

Ruby.

0 Kudos

Yea... you are right.. I mistyped in my previous answer. It is Delete Table (Free) but not Delete Rows.

RSS.

Former Member
0 Kudos

Hi,

The steps are:

1)In the new debugger go to the tables tab and give the internal table name.

2) right click on any one row .

3) you'll get option delete table (free table),.

4) click on it and say yes wen a pop up window appears it'll delete all the records of ur internal table in one go.

Regards,

Richs