Skip to Content
0
Former Member
Feb 26, 2009 at 04:02 AM

Creating Internal Table having mulitple structures.

1625 Views

I want to create one internal table to extract data of multiple structures.

E.g. I have two structures :

Types:

Begin of g_struct1,

column1 type c ,

column2 type c ,

Begin of g_struct1,

Begin of g_struct2,

column3 type c ,

column4 type c ,

column5 type c ,

Begin of g_struct2,

data: w_struct1 type g_struct1,

w_struct2 type g_struct3,

w_struct1-column1 = 'A'.

w_struct1-column2 = 'B'.

w_struct2-column3 = 'C'.

w_struct2-column4 = 'D'.

w_struct2-column5 = 'E'.

For the above two structures i want to build internal table and create a common key.

Expected Data in Internal Table

1AB

1CDE

Appreciate help.