Skip to Content
0
Former Member
Oct 19, 2006 at 02:16 PM

Dynamic Internal Table Sort with field Symbol.

1869 Views

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.