Dynamically acessing data from sap tables.
I have a requirement where I have to write a FM .
Which will take a select query (String )as an input and and will process the select statement and return (Export) the values.
So here my doubt is "as everytime the table to be accessed varies so how could we define the structure of the export parameter."
Please give me your suggestions ,,how to solve this.