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

Help with a Function-module

Former Member
0 Likes
410

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
390

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.

2 REPLIES 2
Read only

Former Member
0 Likes
390

hi,

we can pass internal table to FM by using CHANGING or TABLE options.

regards,

AshokReddy.

Read only

Former Member
0 Likes
391

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.