Application Development and Automation 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: 
Read only

Delet entry from Internal Table

Former Member
0 Likes
624

Hi

How can I delete an entry from Internal Table?

Tx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

Hi,

This code

DELETE itab WHERE <condition>

L.Velu

3 REPLIES 3
Read only

Former Member
0 Likes
595

Hi,

This code

DELETE itab WHERE <condition>

L.Velu

Read only

Former Member
0 Likes
594

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.

Read only

Former Member
0 Likes
594

Tx