‎2007 Jun 08 8:57 PM
Hi again forum:
I have a program and i need to pass basic functionality to a set of funtion module.
I have a description of a internal table in the program, that i need to use in the function-module
Example:
-
PROGRAM
-
" In the top of the program i declared.
"This the actual version
TYPES: BEGIN OF t1
......
......
END OF t1.
DATA: it_some TYPE STANDARD TABLE of t1 with header line.
SELECT *
FROM
INTO TABLE it_some.
-
FUNCTION MODULE
-
Now in the new version i need to declare an output paramter of type t1 in the exports parameters of the function ZMY_FUNCTION, and t1 is an internal_table, what can i do forum ?..
The thing is that how can i declare an export parameter that is not know?
please help
Thanks
Joshua
‎2007 Jun 08 10:38 PM
Hi Joshua. So your Function Module creates the table? You can declare a type ANY TABLE. Then when it's passed back to the calling program it will assume the type of table variable attached to the parameter.
‎2007 Jun 08 9:29 PM
hi,
we can pass internal table to FM by using CHANGING or TABLE options.
regards,
AshokReddy.
‎2007 Jun 08 10:38 PM
Hi Joshua. So your Function Module creates the table? You can declare a type ANY TABLE. Then when it's passed back to the calling program it will assume the type of table variable attached to the parameter.