5 Replies Latest reply: Dec 4, 2006 2:38 AM by Raja Thangamani RSS

How to pass field symbol of type table to subroutine

Sankar Mohan
Currently Being Moderated

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

Actions