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

Dynamic TABLE parameter in Sub routine call

Former Member
0 Likes
420

Hi,

Is it possible to have a dynamic TABLE parameter in a sub-routine call? The structure of the internal table will be different during different calls to the sub-routine.

I have a subroutine which has the FM "HR_INFOTYPE_OPERATION" to update the infotype data for an Applicant. Now i want to call this subroutine for every Infotype update. So every time the structure of the internal table to be passed will vary depending on Infotype ( eg P0002 for Infotype 0002, p0006 for infotype 0006).

Any pointers will be appreciated.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
328

Hi Navin,

yes, why not.

just use a generic type parameter, i.e.

FORM process USING IT_00x type table IV_type typc.

It depend what yout FORM shall do. If you pass the types name, you can dynamically assign to a field-symbol of the respective type.

Regards,

Clemens

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
329

Hi Navin,

yes, why not.

just use a generic type parameter, i.e.

FORM process USING IT_00x type table IV_type typc.

It depend what yout FORM shall do. If you pass the types name, you can dynamically assign to a field-symbol of the respective type.

Regards,

Clemens