Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to delete a record in the internal table?

Hi,

I have a <fs> which is an internal table that contains quite a numerous record. I need to delete some record where a column 'Year' that consist year 2007. How do i achieve that?

Regards,

Rayden

Tags:
Former Member
replied

Hi Rayden,

try this

loop at <fs> assigning <wa>.
v_tabix = sy-tabix.
  DO.
    assign component 'YEAR' of structure <wa> to <year>.
    if <year> eq '2007'.
       DELETE <FS> index v_tabix.
       exit.
    endif.
   ENDDO.
endloop.
   

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question