2007 Apr 09 6:44 PM
I was able to create a dynamic line type for a structure using code from link:
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
The problem is fucntion
Create dynamic internal table and assign to field symbol
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ifc
IMPORTING
ep_table = dyn_table.
creates columns defined as P(9) as P(5). The P(9) specification is set in code:
xfc-fieldname = wa_comp-name.
xfc-datatype = wa_comp-type_kind.
xfc-inttype = wa_comp-type_kind.
xfc-intlen = wa_comp-length.
xfc-decimals = wa_comp-decimals.
APPEND xfc TO ifc.
ENDLOOP.
Is there another setting I must set?
I was able to create a dynamic line type for a structure using code from link:
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
The problem is fucntion
Create dynamic internal table and assign to field symbol
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ifc
IMPORTING
ep_table = dyn_table.
creates columns defined as P(9) as P(5). The P(9) specification is set in code:
xfc-fieldname = wa_comp-name.
xfc-datatype = wa_comp-type_kind.
xfc-inttype = wa_comp-type_kind.
xfc-intlen = wa_comp-length.
xfc-decimals = wa_comp-decimals.
APPEND xfc TO ifc.
ENDLOOP.
Is there another setting I must set?
2007 Apr 09 6:57 PM
2007 Apr 09 7:49 PM