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: 

CREATE DATA with internal table doesn't work in 4.6C!?

Former Member
0 Kudos

Hello,

I try the following:

********************************************************

DATA ptrInternalTable TYPE REF TO data.

DATA: t_fields TYPE STANDARD TABLE OF FIELDNAME.

DATA: wa_fields LIKE LINE OF t_fields.

FIELD-SYMBOLS:

<fsTable> TYPE ANY TABLE,

<fsWa> TYPE REF TO DATA,

<fsField> TYPE REF TO DATA.

FORM search_table USING lname TYPE c CHANGING lfound TYPE c.

TRY.

DATA llname(10) TYPE c.

llname = lname.

**********ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!*****:

create data ptrinternaltable like table (llname).

ASSIGN ptrinternaltable->* TO <fstable>.

SELECT *

FROM (lname)

INTO TABLE <fstable>.

  • search table <fstable> for p_icnam1.

ENDTRY.

ENDFORM.

**************************************************

But I get the syntax error message that it doesn't know 'Table'. When I leave the phrase 'STANDARD TABLE' OF it works. Is it possible that the dynamic creation of internal tables doesn't work in the system 4.6 but only in later verions of the WAS? Any suggestions.

Regards, Lars.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Sorry,

the following code was not correct written, but the error is there still:

**********ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!*****:

create data ptrinternaltable TYPE STANDARD TABLE OF (llname).

2 REPLIES 2

Former Member
0 Kudos

Sorry,

the following code was not correct written, but the error is there still:

**********ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!*****:

create data ptrinternaltable TYPE STANDARD TABLE OF (llname).

0 Kudos

Hi

i too faced this kind of problem before.

CREATE DATA variant of itab wont work in 4.6c.

It is supported starting from 4.6d release..

Regards,

Abdul