I apologise in advance for my question as I am really not very bright.
I have field symbol declaration as:
field-symbols: <ls_line> type any,
<lt_itab> type table. "Declared as TYPE TABLE because it could be a different table that the method is called for
LOOP.
... then some code
... which assigns a row of data to <ls_line>
I want to now append <ls_line> to <lt_itab>. Obviously I cannot put: append <ls_line> to <lt_itab>, because <lt_itab> is not yet assigned.
ENDLOOP.
I also cannot use "type any table".
How do I append this line i.e. <ls_line> to <lt_itab>?