Hi,
I m trying to write a program which can log data from any table into a Trace Z table.
I have used
FIELD-SYMBOLS: <line>.
to get the line of that table. But now I want to dynamically know what are the field names of this line structure and the data in it. And then write it as a string to the trace Z table
form log_table_data tables rt_any_table
using rv_statement type string.
data: v_line type string,
v_char_line type char255.
FIELD-SYMBOLS: <line>.
loop at rt_table ASSIGNING <LINE>.
v_char_line = <LINE>. - Terminating at this statement
ASSIGN <LINE> to v_line casting type string.
endloop.
endform.
Thanks for reading