Modify Database Table From Dynamic Internal Table.
Created a report which calls a RFC and gets data from Quality Server into Development server. Also creates dynamic internal table.
The RFC fetches data from Q server and comes to Dev Server, now I need to Modify database table in Dev Server with the data from Q Server.
This is the code which I use for Modify
FIELD-SYMBOLS: <outtab> TYPE ANY TABLE,
<l_line> TYPE ANY,
<l_field> TYPE ANY.
DATA: new_table TYPE REF TO data.
DATA: new_line TYPE REF TO data.
PARAMETERS: tab TYPE dd02l-tabname OBLIGATORY ,
loop at <outtab> into <l_line>.
modify (tab) from <l_line>.
It gives a Error
"The types of the operands "dbtab" and "wa" are not mutually convertible."