Application Development 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: 

delete entries from dynamic internal table!!

Former Member
0 Kudos

Hi

how to delete entries from my dynamic internal table which all has quanity less than 1.

Regards

Gunjan

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Gunjan

Here is one possible solution:

DATA:
  ld_idx    TYPE i.

FIELD-SYMBOLS:
  <ls_line>   TYPE any,
  <ld_field>  TYPE any.


LOOP at <itab> assigning <ls_line>.
  ld_idx = syst-tabix.

  ASSIGN COMPONENT <<field name>> OF STRUCTURE <ls_line>
    TO <ld_field>.
  IF ( <ld_field> < 1 ).
    DELETE <itab> INDEX ld_idx.
  ENDIF.

ENDLOOP.

Regards

Uwe

Former Member
0 Kudos

hi,

check this link

check this thread too..

Here is an example of creating subroutine pools

Regards,

Sailaja.

Message was edited by: Sailaja N.L.