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

Return of a Function Module ??

Former Member
0 Likes
795

Hi Friends,

I have a FM 'A' which calls another FM 'B' ... which calls another FM 'C' ... C displays a LIST output with the values it has in an internal table ITAB ....

now my requirement is :

I have a program 'ZABC' which calls the FM 'A' ... and i want the 'C's List in my report as an output ....

Hope my requirement is clear !!

Expecting your answers

Thanks in advance

Cheers

R.Kripa ..

7 REPLIES 7
Read only

Former Member
0 Likes
773

ITAB must be passed through to the calling program or FM using the interface definition of FM C. The interfaces of FM a + b have to be enhanced by the same itab parameter, so that the report, that call FM A can read the contents of your ITAB.

Read only

Former Member
0 Likes
773

hi Kripa,

i think it can be done only when you have that internal table as an exporting parameter of FM C.

you can add that parameter to FM C.

regards,

Kinshuk

Read only

Former Member
0 Likes
773

Hello,

Include the internal table as one of the parameters in the export in all FM's

Read only

naimesh_patel
Active Contributor
0 Likes
773

Hello,

Pass an internal table as Table parameter upto your FM C.

Regards,

Naimesh

Read only

Former Member
0 Likes
773

Hi Kripa,

What you can do is declare that internal table in the global data of the function module and include all the three FMs under the same Function group.

That way you can access the internal table (Globally declared) from anywhere in the three Fms.

Regards,

Ravi

Read only

Former Member
0 Likes
773

hey thanks all ...

but the thing is ... all FMs .. A B C are standard function modules ;-(

This is the problem ;-(

R.Kripa

Read only

0 Likes
773

Why didn't you say they were standard in the first place. Are you calling them in a bespoke program. If so I think the answer is obvious.