‎2009 Jul 21 3:04 PM
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
‎2009 Jul 21 3:13 PM
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
‎2009 Jul 21 3:15 PM
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
‎2009 Jul 21 3:22 PM
‎2009 Jul 21 3:30 PM
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®