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

problem with table types

Former Member
0 Likes
815

Hi all!

I'm using a a structure (created in se11) that contains a field that is a table types.

I use this structure in a Function Module as exportation parameter. I have no problem filling this parameter in the Function Module but I have some problems when i call this function module in other abap report.

How I can read the data stored in the "subtables" of the exported parameter??

I tryed with a "LOOP AT parameter-subtable" but there's the problem that the "subtable" has no headerline.

Someone can help me please?

thanks in advance!

R

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

Hi,

Say you have created the table type(TT) as 'ZTABLETYPE' then at the report where you call the FM with TT declare a table as

data : itab type ztabletype. 
itab = parameter-subtable.
loop at itab.
....
endloop.

now you would have the values in itab. Hope this solves your problem.

Regards,

Bharathy.

5 REPLIES 5
Read only

Former Member
0 Likes
782

paste your declaration part for the 'parameter-subtable'.

Read only

former_member212005
Active Contributor
0 Likes
782

Check the below link....it might be helpful

Typing of interface parameters

http://help.sap.com/abapdocu/en/ABENFUNCTION_PARAMETERS.htm

Read only

Former Member
0 Likes
783

Hi,

Say you have created the table type(TT) as 'ZTABLETYPE' then at the report where you call the FM with TT declare a table as

data : itab type ztabletype. 
itab = parameter-subtable.
loop at itab.
....
endloop.

now you would have the values in itab. Hope this solves your problem.

Regards,

Bharathy.

Read only

Former Member
0 Likes
782

Hi,

Use LOOP AT parameter-subtable into WA.

where WA is like a line of parameter-subtable.

Regards,

Ankur Parab

Read only

0 Likes
782

Tanks to everyobody