Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 03:07 PM

    Sorry,

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

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

    create data ptrinternaltable TYPE STANDARD TABLE OF (llname).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.