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

read unknown table

Former Member
0 Likes
769

Hi,

I would like to read any table via remote function modul. The name of the table is variable. Thus I need a function modul with an import and export generic variable. I have successful tested to import the name of the table as a char-variable and read the table.

But I don't know to handle the export of the table content, because I know the name of the table first at runtime.

How is it possible to handle this?

Thanks in advance.

Michael

4 REPLIES 4
Read only

Former Member
0 Likes
667

hai ,

u can pass the name of the table dynamically

and based on the table name u create the internal table

isntead of returning the internal table name jsut return the referenc of the internal table so that u can read the values from the internal table in ur calling program but some though u have to aplly for using reference

m.a

Read only

Former Member
0 Likes
667

Hi

U can use the fm RFC_READ_TABLE, here the data will be stored in an internal char table (just like the type TAB512), now if you want to transfer the data in the right structure u can use the field-symbols.

Max

Read only

Former Member
0 Likes
667

Hi,

Check this FM RFC_READ_TABLE

Read only

former_member194669
Active Contributor
0 Likes
667

Before using fm RFC_READ_TABLE

Please check the following OSS Note 758278 and also the following link

/people/piers.harding/blog/2004/11/10/rfcreadtablemy-old-faithfulwhat-has-happened-to-you

a®