Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2136

DATA Reference issue

$
0
0

Dear All,

 

I have a question as follows.


I am kind of new to DATA references.Kindly help me in framing the query.

 

It_value structure.




12.png



IS DATA structure


sd.png



Data:Ir_data type ref to data.



LOOP AT lt_values INTO ls_values.

ls_data-table name = iv_table name.

ls_data-field name= ls_values-field name.

GET REFERENCE OF ls_values-domain_values INTO  ir_data1.

ls_data-data      = ir_data1.

APPEND ls_data    TO lt_data.

ENDLOOP.


 

After the first loop


data.png

 

I am getting the value inserted as 3 rd entry where first two entries are from different methods.Now issue which am facing is in the next loop execution values will get overwritten and finally in the DATA column i having the similar entries.

 

My final table..

 

data2.png

 

 

I know Ir_data is pointing to the same data-reference that is why values are getting overwritten.

 

 

Ram.






Viewing all articles
Browse latest Browse all 2136

Trending Articles



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