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

cl_alv_table_create=>create_dynamic_table

Former Member
0 Likes
487

Hi,

I'm making af program with ALVgrid using this :

cl_alv_table_create=>create_dynamic_table to build a dynamic catalog for the ALV grid.

The problem is the I need to build many different tables from same program using cl_alv_table_create=>create_dynamic_table , and this give an error, saying "LT_GENTAB-FELT0" has already been declared.

My big question is, what do I do to "free" this instance ? are there any work arounds for this ?.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
424

Hi Henrik

Try this link.

/message/653160#653160 [original link is broken]

and check this piece of code:

LOOP AT idetails INTO xdetails.

CLEAR xfc.

xfc-fieldname = xdetails-name.

CONCATENATE w_out xdetails-name INTO w_out

SEPARATED BY ','.

xfc-datatype = xdetails-type_kind.

xfc-inttype = xdetails-type_kind.

xfc-intlen = xdetails-length.

xfc-decimals = xdetails-decimals.

read table ifc with key fieldname = xfc-fieldname. "<

if sy-subrc ne 0. "<

APPEND xfc TO ifc. "<

endif.

ENDLOOP.

Regards

Neha

2 REPLIES 2
Read only

Former Member
0 Likes
425

Hi Henrik

Try this link.

/message/653160#653160 [original link is broken]

and check this piece of code:

LOOP AT idetails INTO xdetails.

CLEAR xfc.

xfc-fieldname = xdetails-name.

CONCATENATE w_out xdetails-name INTO w_out

SEPARATED BY ','.

xfc-datatype = xdetails-type_kind.

xfc-inttype = xdetails-type_kind.

xfc-intlen = xdetails-length.

xfc-decimals = xdetails-decimals.

read table ifc with key fieldname = xfc-fieldname. "<

if sy-subrc ne 0. "<

APPEND xfc TO ifc. "<

endif.

ENDLOOP.

Regards

Neha

Read only

0 Likes
424

Hi Neha,

The link you provided, dosent seem to work.