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

dynamic Internal Table synatax Problem

Former Member
0 Likes
411

Hi Experts.

I am creating the Dynamic Internal table by using the method:cl_alv_table_create=>create_dynamic_table.

we are using the 4.6 version.

it is showing an error that 'Statemant cl_alv_table_create=>create_dynamic_table ( is not defined, Please check your spelling.

but the same thing , working in ecc 6.0.

Thanks in advance,

Regards,

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
383

Hello

Most likely there is just a problem with the writing of the method call:


DATA:
  lt_fcat    TYPE lvc_t_fcat,
  ldo_itab  TYPE REF TO data.

"... fill fieldcatalog
CALL METHOD cl_alv_table_create=>create_dynamic_table
  IMPORTING
    it_fieldcatalog = lt_fcat
  EXPORTING
   ep_table          = ldo_itab.

This coding should be syntactically correct. Perhaps you just need to add the following statement to your report (at the beginning):


CLASS cl_alv_table_create DEFINITION LOAD.

On 4.6c the system is not always able to do this itself. You need to explicitly make the class known.

Regards

Uwe

2 REPLIES 2
Read only

Former Member
0 Likes
383

Hi,

Check whether the class cl_alv_table_create exists in SE24 in 4.6 version.

I suppose in 4.6 version this class does not exists.

So you cannot use it.

Regards,

Ankur Parab

Read only

uwe_schieferstein
Active Contributor
0 Likes
384

Hello

Most likely there is just a problem with the writing of the method call:


DATA:
  lt_fcat    TYPE lvc_t_fcat,
  ldo_itab  TYPE REF TO data.

"... fill fieldcatalog
CALL METHOD cl_alv_table_create=>create_dynamic_table
  IMPORTING
    it_fieldcatalog = lt_fcat
  EXPORTING
   ep_table          = ldo_itab.

This coding should be syntactically correct. Perhaps you just need to add the following statement to your report (at the beginning):


CLASS cl_alv_table_create DEFINITION LOAD.

On 4.6c the system is not always able to do this itself. You need to explicitly make the class known.

Regards

Uwe