cancel
Showing results for 
Search instead for 
Did you mean: 

Call a ABAP FM using 'TYPE ANY'???

Former Member
0 Kudos

Hi Pros,

I need to call a FM in ABAP that has tables and attributes of type ANY or ANY TABLE.

I do not care about how, but I need to find a way to call such a FM from a Web Dynpro Aplication and transport these "any" types to java...

can anyone think of a way how to do that???

Thanks!

P.S.: Its an important task and it constitutes a notable part of my dissertation... So, helpful threads will be rewarded.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Johannes,

Call RFC_READ_TABLE function module. it will retrieve value irrespective of table.

Note: in import you will get parameter as query_table pass your table name.

regards,

sukanta

Former Member
0 Kudos

Do you have any experience in using it in a Web Dynpro Application?

Thanks, Johannes

Former Member
0 Kudos

Hi Johannes,

yes we do, rewards point for valuable answer.

regards,

sukanta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

so you can import the RFC_READ_TABLE as an adaptive RFC Model into your WebDynpro app. After that you are able to access the ModelContext node and read the return structures.

You also can use if you have a system below 4.6c which does not support Adaptive RFC the old JCO way. So u create with the SAP Enterprise Connector the needed Java classes to call inside the system using JCO.

But the deeper problem i see when you have to read the output strukture in very flat tables RFC_READ_TABLE can be a useful way but if you have complex tables with deep struktures in it you will have your problems to read the contents and concatinate them.

kind regards

Fabian