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

hi guru's learning help me

hi guru's in internal table how i can delete 3 ,15 ,21(index) in the table help me plz.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 03:59 AM

    use syntax of delete as

    delete itab index <3/5/7>.

    Hope dis helps..

    reward is it does

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:00 AM

    loop at itab.

    delete from itab where sy-index = 3 or sy-index = 5 or sy-index=21.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:00 AM

    Hi Vasu,

    there is a syntax delete <body of iab> from <workarea> [index n].

    here give index number it will delete tht particular records only.

    try this this will work fine

    regards,

    sana.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:03 AM

    Hi,

    delete table itab index 3.

    delete table itab index 15.

    delete table itab index 21.

    for your scenario this is the way or if you know want to delete common MATNR like (112,101,112) You can give like

    delete table itab where matnr = '112'. it will delete rows having matnr 112

    i think this would help you...

    regards,

    karthik

    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.