Application Development and Automation 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: 
Read only

Error with Create Data ... TYPE TABLE ....

Former Member
0 Likes
434

Hi together,

I used the following coding to dynamically create a structure and a table in my report:

.....

data:

ce1xxxxc type ref to data,

u_ce1xxxx type ref to data.

Field-symbols: <ce1xxxxc> type any.

Field-symbols: <u_ce1xxxx> type standard table.

create data ce1xxxxc type (tab).

create data u_ce1xxxx typer table of (tab).

assign ce1xxxxc->* to <ce1xxxxc>.

assign u_ce1xxxx->* to <u_ce1xxxx>.

....

In Release 4.7 and ECC 6.0 this works but not in Release 4.6B.

SAP ciomplains about the statement " create data u_ce1xxxx type table of (tab)."

It get the rror-message "The type specification of "TABLE" is incomplete.

Can anybody help?

Kind regards

Udo

1 REPLY 1
Read only

former_member195698
Active Contributor
0 Likes
329

This statement is not allowed in 4.6b/4.6c.

You have to create dynamic internal table using generate subroutine. OR use class cl_alv_table_create