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

Multi Level Itab or Structure

former_member212713
Contributor
0 Likes
838

Hi Gurus;

I need multi level itab or multi level structure. I will use one-to-many relationship. For example ;

Name-Surname-Birthday-(School1)-Mather Name

(School2)

(School3)

One record but many school. or

House Number-Flat Number-(Billing Date1-Billing Number1)

(Billing Date2-Billing Number2)

(Billing Date3-Billing Number3)

If there are any info for this subject , pleace could she/he send me and share information?

Thanks.

Name Surname School Mather Name

N S S1 G

S2

S3

Z T S1 E

S2

S3

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
791

You can use Deep structures. Something like FCO_DOC_POSLIST which has an internal table within a structure.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
791

Check this Blog my Marcin link:[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/19958] [original link is broken] [original link is broken] [original link is broken];

Read only

Former Member
0 Likes
792

You can use Deep structures. Something like FCO_DOC_POSLIST which has an internal table within a structure.

Read only

Subhankar
Active Contributor
0 Likes
790

Hi ,

Check the sample code

TYPES:

  • Type for CVP pair GUID

begin of x_cvp_val,

zzcvpair type zcvpair, "CV Pair

charc type cu_charc, "Characteristic Name

value type cux_value, "Characteristic Value

end of x_cvp_val,

  • Type for Component table,

begin of x_compo_tab,

child_mat type matnr, "Material number

object_type type zobject_type, "OutPut Object Type

part_typ type zzparentparttype, "Part type

quantity type kmpmg, "Quantity

end of x_compo_tab,

  • Type for P-function

begin of x_p_func,

plant type werks_d, "Plant

zzkmat type matnr, "Material Number

proxy_mat type matnr, "Proxy Mat

cvp_guid type char32, "CVP pair GUID

compo_tab type x_compo_tab occurs 0, "Component Table

char_det type x_cvp_val occurs 0, "Charecteristic details table

end of x_p_func.

data: wa_p_func type x_p_func,

i_p_func type standard table of x_p_func.

Thanks

Subhankar