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

internal tables as input and output for Function modules..

Former Member
0 Likes
673

Hi,

I have to write a function module which will accept a list of numbers as input and return 3 internal tables of output.

I do the follwoing, pl let me know if i am right.

1. i create 4 structures, which represent the data for each of the internal tables.

2. in se37, i create a FM and in the tables tab, i enter these structures, here itab1 is the one which will receive the values from the calling program.

so when i call this FM with input as an itab with list of values, will it be autmatically passed to the itab1 ?

should i use itab1 in the "import " tab section or is it good enough in "tables" ? basically i deal only with internal tables as inputs and outputs.

thks

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
522

Sounds OK.

You can pass internal tables using the TABLES tab (more or less outdated), but you can also pass them with import and export. However, in this case (import / export), you will have to define table types based on the structures you created for them.

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
523

Sounds OK.

You can pass internal tables using the TABLES tab (more or less outdated), but you can also pass them with import and export. However, in this case (import / export), you will have to define table types based on the structures you created for them.

Read only

Former Member
0 Likes
522

Hi,

" so when i call this FM with input as an itab with list of values, will it be autmatically passed to the itab1 ? "

Yes the values will be passed automatically to itab1.

" should i use itab1 in the "import " tab section or is it good enough in "tables" ? basically i deal only with internal tables as inputs and outputs. "

You should use your itab1 in the tables tab, and not in import. Import are for flat import parameters.

Hope it helps.

Regards,

Gilberto Li

Read only

0 Likes
522

Thanks to all.