Hi,
I'm trying to do a function that receives the name of a table (not the table) and then list its content. How can I assign the table to a field symbol. I think in something like this:
perform compara using 'kna1'.
FORM compara USING tabl.
FIELD-SYMBOLS: <table> TYPE ANY.
ASSIGN (tabl) TO <table>.
WRITE <table>-kunnr.
ENDFORM.
But it doesn't work, something like "the data object <table> has no structure and therefore no component called KUNNR"
In fact the real purpose of the function is to receive a structure of the same type of the table and a the header of the table, compare its fields and then return if all fields have the same value.