Skip to Content
0
Former Member
Dec 03, 2006 at 06:55 PM

How to pass field symbol of type table to subroutine

1845 Views

Hello Experts,

Got stuck when passing field symbol of type table to subroutines.

Here is my code..

FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE.

perform fill_table using <dyn_table>.

form fill_table using f_dyn_table.

field-symbols : <fs_dyn_tab>.

DATA tabDREF TYPE REF TO DATA.

CREATE DATA tabdref TYPE table OF (f_dyn_table).

ASSIGN tabDREF->* TO <fs_dyn_tab>.

endform. " fill_table

When I try to execute this code I am getting a dump which says

'The current statement(CREATE DATA tabdref ..... ) requires a character-type data object.'

Many Thanks