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

TYPES AND TABLES

Former Member
0 Likes
501

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
Read only

Former Member
0 Likes
481

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.

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.

2 REPLIES 2
Read only

Former Member
0 Likes
482

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.

Read only

0 Likes
481

Thanks it works very well.