Skip to Content
0
Former Member
Nov 25, 2005 at 03:02 PM

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

65 Views

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.