2005 Nov 25 3:02 PM
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.
2005 Nov 25 3: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).
Sorry,
the following code was not correct written, but the error is there still:
**********ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!*****:
create data ptrinternaltable TYPE STANDARD TABLE OF (llname).
2005 Nov 25 3: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).
2005 Nov 25 3:10 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |