Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Field-symbols appending to ITAB

$
0
0

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>?


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>