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

Pass internal tables in Export Parameters of Function Module

Former Member
0 Likes
3,661

Hi

How to pass internal tables through export parametes of the calling function module. i

think i can pass it by reference ....

if so can anyone suggest how to do it?

Hi

How to pass internal tables through export parametes of the calling function module. i

think i can pass it by reference ....

if so can anyone suggest how to do it?

9 REPLIES 9
Read only

Former Member
0 Likes
1,367

Hi,

Passed by reference for internal table is recommended ,

Check the calling function module import and export parameter,

give the internal table name in the export parameter.

Regards

Adil

Read only

Former Member
0 Likes
1,367

hi

For passing an internal table we use tables option

which meant for both export and import.

and under this what ever internal tables r declared

r always transfed as pass by reference or value as defined in FM

Now to do pass by reference in that particular FM . for that we have to specify the type as pass by reference and the type of table under under tables option in F

reward points if helpfull

snehi chouhan

Read only

0 Likes
1,367

HI I KNOW THIS OPTION BUT I believe that TABLES option is obsolete in ecc 6.0 IN THAT CASE HOW DO I PASS MY INTERNAL TABLES thru import/export parameters?

Read only

0 Likes
1,367

@ adil .

if i give it in import parameter of function module wont it take the work area only?

Read only

0 Likes
1,367

@ adil .

if i give it in import parameter of function module wont it take the work area only?

Read only

0 Likes
1,367

When you want to use export parameter, you will first have to declare a table type!!!

Read only

0 Likes
1,367

no dear i have confirmed it tables opyion is not obsolute in ecc6.0 u can go ahead wuth tables option

thanks & regards

snehi chouhan

Read only

0 Likes
1,367

Hi ,

You need to use a table type for it , go to SE11 and create a table type with the structure same as that of the internal table you want to pass ,adn then use this table type in the parameters of the FM

Regards

Arun

Read only

RemiKaimal
Active Contributor
0 Likes
1,367

Hi,

You can Export values of an Internal table in two ways, by :

1) specifying in Tables tab

(Not recommended since it's an obsolete in ECC 6.0)

If used, will reduce the performance of the FM

Tables are always passed by reference

2) specifying in Exports tab.

The parameter should be a Table type (created in se11)

having a Line type that refers to the structure of the data.

Pass by Value is not used for Normal Function modules.

Used usually for RFC enabled FMs.

Cheers,

Remi