Skip to Content
author's profile photo Former Member
Former Member

Get import parameter values of function module at runtime dynamically


Is it possible to have access to all import parameter values at runtime. I want to concatenate all import parameters to a string but I want it to be flexible. I just want to call a method or function module to add this functionality and this should take care of everything and just return me the string.


FM1 with parameters

var1: say

var2: hello

-> result: var1:say;var2:hallo

FM1 with parameters

var1: this

var2: FM

var3: has

var4: five

var5: parameters

-> result: var1:this;var2:FM;var3:has;var4:five;var5:parameters

Thanks for helping,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 21, 2007 at 11:23 AM

    You can go from function module name to function group using table TFDIR.

    From the function group, e.g. ZMYFUNCGROUP, use READ REPORT to get the include LZMYFUNCGROUPUXX source code. This will give you the list of includes making up the function modules.

    You can then use further calls to READ REPORT on these includes (like LZMYFUNCGROUPU01) to get the parameters.

    You'll have to a bit of parsing. But it's not that complex. btw - why do you want to do this?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.