Application Development 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: 

Dynamic Internal Table in Function Module

Former Member
0 Kudos

Hi,

I am developing a function module which is similar to GUI_DOWNLOAD. So , In My function module I would like to pass the internal table dynamically.I saw the paramter DATA_TAB in the function module GUI_DOWNLOAD. But there is no type associated with that. Could anyone help Me out for achieving thsi fucntionality.

Regards

Elini.P

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Elini,

When the tables parameter of the function module has got no line type specified, it will acquire the same type as the parameter that is passed to it during the call. In other words, the table is of generic type. you can pass any table to that parameter.

However, in case your function module is Remote Enabled, you will not be able to define the tables parameter as generic. IOt must be given some line type.

Regards,

Anand Mandalika.

2 REPLIES 2

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

check this link for code sample.

/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table

Former Member
0 Kudos

Hi Elini,

When the tables parameter of the function module has got no line type specified, it will acquire the same type as the parameter that is passed to it during the call. In other words, the table is of generic type. you can pass any table to that parameter.

However, in case your function module is Remote Enabled, you will not be able to define the tables parameter as generic. IOt must be given some line type.

Regards,

Anand Mandalika.