I have an FM in a remote system. Input to the FM is a tbale name. Based on this it selects data from tables dynamically, in a dynamic internal table using field symbols, based on the table name, which I give as input to the RFC.
Now I'm puzzled on how to get this dynamic internal table data, back to the calling RFC, in the source system. Is there anyway that I can pass on dynamic internal tables as TABLES parameter in an FM. If yes, then how do I declare it in the TABLES section of the FM.
Else, is there any other way to pass on the data back to the calling RFC. I tried memory id, but doesn't work. I guess memory ids can be passed back and forth between the same system programs only.
Any pointers to this, would be helpful.