I define a work area WA1 with reference I defined a table (itab) by using following statement.
DATA: itab TYPE SORTED TABLE OF WA1 WITH UNIQUE KEY field1 field2 WITH HEADER LINE.
I am unable pass the table itab to FM Reuse_alv_grid_display bcoz itab is sorted table. At the same time I can't define itab as a STANDARD table with UNIQUE KEY addition.
If I define a itab as DATA: itab TYPE STANDARD TABLE OF wa1 WITH KEY field1 field2 WITH HEADER LINE.
I'm getting unnecessary day.
Give me suggestions.......