‎2015 Jun 01 3:44 PM
Hi Community,
could someone tell me what is the difference when accessing values in a data reference (e.g. specific fields in a structure).
A) m_dlv_data->docid = '1234'.
B) m_dlv_data->*-docid = '1234'.
Thanks in advance
Michael
‎2015 Jun 01 6:46 PM
Hi Michael ,
It is the same thing .
However , the second statement is mostly used when we dont have the type defined at design time .
e.g.
data : lo_data type ref to data .
field-symbols : <ls_data> type any .
create lo_data type ('MARA').
Assign lo_data->* to <ls_any> . ""De-referencing the lo_Data
Hope this helps.
Regards,
Rini
‎2015 Jun 01 6:46 PM
Hi Michael ,
It is the same thing .
However , the second statement is mostly used when we dont have the type defined at design time .
e.g.
data : lo_data type ref to data .
field-symbols : <ls_data> type any .
create lo_data type ('MARA').
Assign lo_data->* to <ls_any> . ""De-referencing the lo_Data
Hope this helps.
Regards,
Rini