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

Delet entry from Internal Table

Hi

How can I delete an entry from Internal Table?

Tx

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:02 AM

    Hi,

    This code

    DELETE itab WHERE <condition>

    L.Velu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:07 AM

    Hi,

    You can use like:

    Delete TABLE itab table_key .

    Example

    Deletion of the table line that has the same value as carrid in the key field p_carrid by specifying an index.

    PARAMETERS p_carrid TYPE scarr-carrid.

    DATA scarr_tab TYPE SORTED TABLE OF scarr

    WITH UNIQUE KEY carrid.

    SELECT *

    FROM scarr

    INTO TABLE scarr_tab.

    READ TABLE scarr_tab WITH TABLE KEY carrid = p_carrid

    TRANSPORTING NO FIELDS.

    IF sy-subrc = 0.

    DELETE scarr_tab INDEX sy-tabix.

    ENDIF.

    Regards,

    Renjith Michael.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:56 AM

    Tx

    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.