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

delete entries from dynamic internal table!!

Former Member
0 Likes
3,127

Hi

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

Regards

Gunjan

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
685

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

Read only

Former Member
0 Likes
685

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.