Deleteing the Adjacent Dupilcates
I had declared an internal table for the year.
and base don the Usre input it is fetching the all the years in to table IT_YEAR. IF the usre enters from 2007 to 2010. I am getting nearly 212 records.
when I do the delet adjacent dupilcates it is removing 200 records and it is keeping some dupilcates in the internal table.
TYPES : BEGIN OF ty_year,
BDATJ TYPE BDATJ,
END OF ty_year.
DATA : wa_year TYPE ty_year,
it_year TYPE STANDARD TABLE OF ty_year.
SELECT bdatj FROM t009b INTO TABLE it_year WHERE bdatj IN s_gjahr.
DELETE ADJACENT DUPLICATES FROM it_year comparing bdatj.
can you look into this code.