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 function module call

Former Member
0 Likes
4,680

Hi all,

can anybody suggest me how to handle import, export and tables parameters in a dynamic function module call if they are associated with TABLE types.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
4,473

You might be interested in reading this [http://help.sap.com/abapdocu_702/en/abapcall_function_dynamic.htm].

Hi,

The issue is that when you use CREATE DATA dyn_ref TYPE (wa_import-dbfield) when it's about a TABLES parameter which refers to a structure, you only create a structured data object, not a table type. So, you should use CREATE DATA dyn_ref TYPE TABLE OF (wa_import-dbfield)

Be careful, a TABLES parameter may also refer to a table type, then you shouldn't create a "table type of table type", but continue using CREATE DATA dyn_ref TYPE (wa_import-dbfield)

Now, it seems you have 2 other questions??

- can we actually input the table type data at run-time if yes, how is it possible

- the output should be in CHAR data type

What do you mean? (do you want something like the SE37 test framework? But what exactly?)

BR

Sandra

39 REPLIES 39