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

Accessing function module parameters dynamically ?

Former Member
0 Likes
564

Hello,

I´m searching for a possibility to access the parameters of a function module dynamically. I.e. I do not know how many parameters a function has, if it is import/export, or the data type.

Is there a possibility to access (maybe an ABAP-internal) table with these informations? (At runtime within the function module itself)?

Thany you for your help,

best regards,

Stefan

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
496

Use the function module RPY_FUNCTIONMODULE_READ_NEW to read all of the metadata for a funciton module, it returns internal tables for all parameters of the function module interface.

Regards,

RIch Heilman

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
497

Use the function module RPY_FUNCTIONMODULE_READ_NEW to read all of the metadata for a funciton module, it returns internal tables for all parameters of the function module interface.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
496

Thank you!