‎2009 Jun 15 11:51 AM
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
‎2009 Jun 15 12:03 PM
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.
‎2009 Jun 15 11:53 AM
‎2009 Jun 15 12:00 PM
Check the below link....it might be helpful
Typing of interface parameters
‎2009 Jun 15 12:03 PM
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.
‎2009 Jun 15 12:11 PM
Hi,
Use LOOP AT parameter-subtable into WA.
where WA is like a line of parameter-subtable.
Regards,
Ankur Parab
‎2009 Jun 15 1:15 PM