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

Including inetrnal table as deep structure

Former Member
0 Likes
664

Hi All,

All ready Iam having a internal table and I want to add a new internal table inside the old one as deep structure. How can I do that?

Thanks in Advance,

Rani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
639

Hi,

We can do. If we need internal table like IDOC and its Segment at that time we need like this.

Regards

Md.MahaboobKhan

Hi All,

All ready Iam having a internal table and I want to add a new internal table inside the old one as deep structure. How can I do that?

Thanks in Advance,

Rani

4 REPLIES 4
Read only

Former Member
0 Likes
639

in the type of internal table....make one internal table tyoe

eg:

types begin of ty

pernr type pernr_d,

tab type ztab,

end of ty.

itab type standard table of ty.

here ztab is a structure...

so in itab ztab will be appended

Read only

Former Member
0 Likes
639

Hi

You can include the Internal table with in another internal table .Here is the Example.

Structures :

DATA: BEGIN OF WA_SBOOK,

BOOKID TYPE SBOOK-BOOKID,

SMOKER TYPE SBOOK-SMOKER,

LUGGWEIGHT TYPE SBOOK-LUGGWEIGHT,

WUNIT TYPE SBOOK-WUNIT,

END OF WA_SBOOK.

DATA: BEGIN OF WA_SFLIGHT,

FLDATE TYPE SFLIGHT-FLDATE,

SBOOK LIKE TABLE OF WA_SBOOK, "Including internal table

END OF WA_SFLIGHT.

DATA: BEGIN OF WA_SPFLI,

CARRID TYPE SPFLI-CARRID,

CONNID TYPE SPFLI-CONNID,

CITYFROM TYPE SPFLI-CITYFROM,

CITYTO TYPE SPFLI-CITYTO,

SFLIGHT LIKE TABLE OF WA_SFLIGHT, "Including Internal Table

END OF WA_SPFLI.

Internal Table Declaration.

DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI.

Read only

Former Member
0 Likes
639

Hi

You can include the Internal table with in another internal table .Here is the Example.

Structures :

DATA: BEGIN OF WA_SBOOK,

BOOKID TYPE SBOOK-BOOKID,

SMOKER TYPE SBOOK-SMOKER,

LUGGWEIGHT TYPE SBOOK-LUGGWEIGHT,

WUNIT TYPE SBOOK-WUNIT,

END OF WA_SBOOK.

DATA: BEGIN OF WA_SFLIGHT,

FLDATE TYPE SFLIGHT-FLDATE,

SBOOK LIKE TABLE OF WA_SBOOK, "Including internal table

END OF WA_SFLIGHT.

DATA: BEGIN OF WA_SPFLI,

CARRID TYPE SPFLI-CARRID,

CONNID TYPE SPFLI-CONNID,

CITYFROM TYPE SPFLI-CITYFROM,

CITYTO TYPE SPFLI-CITYTO,

SFLIGHT LIKE TABLE OF WA_SFLIGHT, "Including Internal Table

END OF WA_SPFLI.

Internal Table Declaration.

DATA TAB_SPFLI LIKE TABLE OF WA_SPFLI.

Read only

Former Member
0 Likes
640

Hi,

We can do. If we need internal table like IDOC and its Segment at that time we need like this.

Regards

Md.MahaboobKhan