Quantcast
Viewing all articles
Browse latest Browse all 8851

Re: How to read no of records in field symbol?

Hi Chetan,

 

If I get you correctly, I think you need an internal table to read many records, and then loop at it with a field symbol. At short example would be:

SELECT * FROM table

INTO TABLE local_table

WHERE .....

 

LOOP AT local_table ASSIGNING <field symbol>

....

ENDLOOP

 

Hope it helps

 

 

EDIT OF MINE: Another option would be doing a select statement and assign the results into the field symbol, like this:

DATA : TAB TYPE REF TO DATA.

FIELD-SYMBOLS: <FTAB> TYPE TABLE.

 

DATA: L_TABNAME TYPE DD02L-TABNAME VALUE 'some_name'.

 

CREATE DATA REF_TAB TYPE TABLE OF (L_TABNAME).

ASSIGN TAB->* TO <FTAB>.

 

SELECT * FROM (L_TABNAME) INTO TABLE  <FTAB>.


Viewing all articles
Browse latest Browse all 8851

Trending Articles



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