‎2007 Mar 14 10:20 AM
I have create a local type in my program as follows:
TYPES: BEGIN OF ty_local_type.
INCLUDE some_structure.
TYPES: tline TYPE tline OCCURS 0,
END OF ty_local_type.
It works fine, however I need the type to also be available in a smartform so I need to create it in the dictionary (SE11) instead.
Can anyone describe how to include a <b>table</b> (specifically "tline") into a structure in the dictionary?
‎2007 Mar 14 10:30 AM
Hi Stuart,
you have to define a table type first. : z_t_tabletype
se11->datatype->create-> table type
Then you can create a structure and make a component with tahe type z_t_tabletype.
se11: datatype->create->structure
br
Werner
‎2007 Mar 14 10:30 AM
Hi Stuart,
you have to define a table type first. : z_t_tabletype
se11->datatype->create-> table type
Then you can create a structure and make a component with tahe type z_t_tabletype.
se11: datatype->create->structure
br
Werner
‎2007 Mar 14 10:33 AM
A table type for the structure "tline" already exists - it is called "tline_t".
When I try to include tline_t (Edit -> Include -> Insert) I get the error "Tables of type Table type may not be included".
‎2007 Mar 14 11:05 AM
Doh. I appear to have been very dumb.
It's not Edit -> Include -> Insert I should be using.
You simply use the table type in the component type field of the structure component.