Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DATA Reference issue

Former Member
0 Likes
530

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.






IS DATA structure




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


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

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

Ram.





2 REPLIES 2
Read only

Former Member
0 Likes
498

Hi All,

Any updates....

Ram

Read only

0 Likes
498

Hi Ram,

Not getting a clear understanding. Screen shots are all okay but what exactly do you want to achieve? Please elaborate.

Cheers,

Varun