2006 Oct 19 3:16 PM
Hi All,
I have defined a dynamic internal table as follows.
CREATE DATA v_dref6 TYPE STANDARD TABLE OF (v_tabname).
ASSIGN v_dref6->* TO <fs_itab_calc>.
I am trying to sort this table by MATNR as follows.
DATA: l_matnr(5) VALUE 'MATNR'.
MOVE l_matnr TO <fs_sort>.
SORT <fs_itab_calc> BY <fs_sort>.
This is giving an error, that dynamic sort can be performed only on tables with header line.
Now how do i define this table with header line.
Regards
Rakesh.
2006 Oct 19 3:20 PM
Hi
DATA: l_matnr(5) VALUE 'MATNR'.
<b>*MOVE l_matnr TO <fs_sort>.
*SORT <fs_itab_calc> BY <fs_sort>.</b>
SORT <fs_itab_calc> BY (l_matnr).
Max