‎2006 Apr 10 11:09 AM
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 ..
‎2006 Apr 10 11:12 AM
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.
‎2006 Apr 10 11:15 AM
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
‎2006 Apr 10 11:17 AM
Hello,
Include the internal table as one of the parameters in the export in all FM's
‎2006 Apr 10 1:34 PM
Hello,
Pass an internal table as Table parameter upto your FM C.
Regards,
Naimesh
‎2006 Apr 10 1:44 PM
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
‎2006 Apr 10 2:32 PM
hey thanks all ...
but the thing is ... all FMs .. A B C are standard function modules ;-(
This is the problem ;-(
R.Kripa
‎2006 Apr 10 2:34 PM
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.