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

Deep Structures in the Dictionary

Former Member
0 Likes
925

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
494

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

3 REPLIES 3
Read only

Former Member
0 Likes
495

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

Read only

0 Likes
494

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".

Read only

0 Likes
494

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.