‎2008 Nov 23 3:45 PM
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 ?.
‎2008 Nov 23 4:53 PM
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
‎2008 Nov 23 4:53 PM
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
‎2008 Nov 24 12:53 PM