Application Development 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: 

TYPES AND TABLES

Former Member
0 Kudos

I want to define an internal table with other internal table inside.

For example:

TYPES: BEGIN OF S_DESCRIPCION,
       F_DESCR(30) TYPE C, 
       C_DESCR(30) TYPE C,
        END OF S_DESCRIPCION.
TYPES: BEGIN OF S_STATUS_F, 
       SFVACIO TYPE C, 
       SCVACIO TYPE C, 
       SMATERIAL TYPE C, 
       INCLUDE STRUCTURE S_DESCRIPCION.
 END OF S_STATUS_F.

It doen't work but this is my idea.

like

types: begin of s_table.

include structure sflight.

types: it_book type table of sflight.

end of s_table.

data: it_tabla type table of s_table,

wa_tabla like line of it_tabla,

wa_book like line of it_book.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ana,

try this..

REPORT ychatest2.

TYPES: BEGIN OF s_descripcion,

f_descr(30) TYPE c,

c_descr(30) TYPE c,

END OF s_descripcion.

TYPES: BEGIN OF s_status_f,

sfvacio TYPE c,

scvacio TYPE c,

smaterial TYPE c.

<b>INCLUDE TYPE s_descripcion.</b>

TYPES : END OF s_status_f.

2 REPLIES 2

Former Member
0 Kudos

Hi Ana,

try this..

REPORT ychatest2.

TYPES: BEGIN OF s_descripcion,

f_descr(30) TYPE c,

c_descr(30) TYPE c,

END OF s_descripcion.

TYPES: BEGIN OF s_status_f,

sfvacio TYPE c,

scvacio TYPE c,

smaterial TYPE c.

<b>INCLUDE TYPE s_descripcion.</b>

TYPES : END OF s_status_f.

0 Kudos

Thanks it works very well.