Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

store the reference of the rows of a dynamic internal table

My requirement is: I need to store the reference of each of the rows of a dynamic internal table(structure is determined only at the runtime) into a table.

Please throw some light on this to solve this proble.

Former Member
replied
DATA lp_data TYPE REF TO DATA.
DATA tr_reftable TYPE TABLE OF REF TO DATA.
LOOP AT <itab> ASSIGNING <ls_wa>.
  GET REFERENCE OF <ls_wa> INTO lp_data.
  INSERT lp_data INTO tr_reftable.
ENDLOOP
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question