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

Table parameter to FM

Former Member
0 Likes
663

Hello guys,

I have created a function module.

Now I want to pass Internal table by reference to the function module.

My function module will modify inernal table and I wanted the

modified internal table back in my calling program.

Should I Pass the internal table as a Table parameter or changing parameter.

How do I do that ?

Regards,

Vishal

6 REPLIES 6
Read only

anversha_s
Active Contributor
0 Likes
633

hi,

gives as only in TABLES parameter

rgds

Anver

Read only

Former Member
0 Likes
633

Hi,

You can do both..

If you give it as changing parameter..Then you need to create a table type or use an existing table type for an internal table..

Otherwise you can use TABLES parameter..

Thanks,

Naren

Read only

Former Member
0 Likes
633

hi,

TABLES parameter

Read only

former_member404244
Active Contributor
0 Likes
633

Hi Vishal.

give it in TABLES parameter and it will work.

Regards,

Nagaraj

Read only

Former Member
0 Likes
633

Hi

Declare in under TABLES only. Table will export back with the modified values to your program.

Regards

Surya.

Read only

Former Member
0 Likes
633

YOU CAN USE BOTH BUT IN CHANGING YOU CAN ONLY PASS THE BODY OF THE TABLE WHERE IN TABLES PARAMETER YOU CAN SEND THE HEADER LINE AS WELL AS BODY.

SHIBA DUTTA