Skip to Content
author's profile photo Former Member
Former Member

Delete complete records of internal table while debugging

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 16, 2008 at 10:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2008 at 10:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 10:18 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.