Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in creating a reference

Former Member
0 Kudos
186

Hi,

When I am trying to create a reference to a table,

It give a the error message: <b>The type specification of the "table" is incomplete</b>

at the create statement.

PARAMETERS: p_table TYPE dd02l-tabname default 'zemp3'.
DATA: lv_dref   TYPE REF TO data.
CREATE DATA lv_dref TYPE table of (p_table).

The system that I am working on is 46c,

1 ACCEPTED SOLUTION

Former Member
0 Kudos
66

Hi,

You have to use a command similar to

CREATE DATA lv_dref TYPE (p_table).

And the type in <i>p_table</i> must be a table type.

Hope that helps (please reward me if it does),

Joerg.

4 REPLIES 4

Former Member
0 Kudos
66

Former Member
0 Kudos
67

Hi,

You have to use a command similar to

CREATE DATA lv_dref TYPE (p_table).

And the type in <i>p_table</i> must be a table type.

Hope that helps (please reward me if it does),

Joerg.

Former Member
0 Kudos
66

Hi,

try

CREATE DATA lv_dref TYPE STANDARD table of (p_table).

regards

Siggi

andreas_mann3
Active Contributor
0 Kudos
66

Hi,

i think the statement

CREATE DATA lv_dref TYPE table of (p_table).

does'nt work under 4.6C (but >= 6.1)

-> search in that forum with search-item 'dynamic AND table'

or look out for this weblog:

/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table

regards Andreas