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

Declaring a table like another table

Former Member
0 Likes
3,349

Hello,

I am trying to define another table, say itab, that has the same structure as, say, EDISEGSTRU so that I can use it in the function call: SEGMENTDEFINITION_READ as a parameter for Tables. May I know how can I declare the itab? Thanks a lot!

Regards,

Anyi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,532

data : IT_TAB type standard table of EDISEGSTRU initial size 0.

You can use the above statement.

Regards

Anurag

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,532

In order to reference a structure in the interface of a function module, the structure must be created in the data dictionary. Check that your structure exists via SE11, if so, then you can use it in the tables parameter section of your function module.

 
<b>
Parameter Name       Type Spec   Reference Type</b>
name_of_table        LIKE        EDISEGSTRU      

Regards,

Rich Heilman

Read only

0 Likes
1,532

data: gt_itab type standard table of EDISEGSTRU

with header line.

Read only

Former Member
0 Likes
1,533

data : IT_TAB type standard table of EDISEGSTRU initial size 0.

You can use the above statement.

Regards

Anurag

Read only

Former Member
0 Likes
1,532

Hi ,

You cab use

data: it_EDISEGSTRU like EDISEGSTRU occurs 0 with header line.

Thanks,

Madhu