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

Delete entries from table type any

Hello,

I have table type any and I want to delete entries on it according to parameter ,for instance

if in the parameter I have 3 I need to delete all the entry on the table that are less equal to 3 etc.

What is the best way to do that ?

Regards

Joy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 27, 2011 at 08:43 AM

    Please paste the written code...so that we can help you...Yes its possible

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      So you need to check for all fields of a certain type ?

      If so, you will have to deal with methods from classes such as CL_ABAP_TYPEDESCR to first know the type of your fields and be able to applly filtering...

      added: Easier with a DESCRIBE statement actually...

      Kr,

      m.

      Edited by: Manu D'Haeyer on Sep 27, 2011 12:15 PM

  • Posted on Sep 27, 2011 at 10:22 AM

    Hi,

    The solutions are already provided above by our friends. I would like to add one thought that instead of deleting move the satisfied entries to a new internal table. This type of technique has helped me in tuning the performance of program

    Kesav

    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.