abaplint icon indicating copy to clipboard operation
abaplint copied to clipboard

A generic reference cannot be dereferenced

Open larshp opened this issue 2 years ago • 4 comments

see https://github.com/oblomov-dev/abap2UI5/issues/156

larshp avatar Apr 11 '23 09:04 larshp

https://github.com/abap2UI5/abap2UI5/issues/1816

oblomov-dev avatar Apr 01 '25 10:04 oblomov-dev

https://github.com/abap2UI5/abap2UI5/issues/1856

oblomov-dev avatar May 21 '25 22:05 oblomov-dev

yea... I'll get to it sometime

larshp avatar May 22 '25 11:05 larshp

All good! I’ll just keep posting related issues to gently maintain the pressure 😄

oblomov-dev avatar May 22 '25 12:05 oblomov-dev

https://github.com/abap2UI5/abap2UI5/issues/1922

larshp avatar Jul 14 '25 09:07 larshp

cl_abap_datadescr=>describe_by_data( lr_ref->* ).

CLEAR lr_attri->r_ref->*.

ASSIGN COMPONENT r_interface->shlpfield OF STRUCTURE mr_data->* TO FIELD-SYMBOL(<value>).

larshp avatar Jul 14 '25 09:07 larshp

756, https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abennews-756-dref.htm

Modification

Dereferencing Data References

The dereferencing operator->* can be used for generically typed data reference variables in almost all operand positions now. Before, that was possible in the ASSIGN statement only.

larshp avatar Jul 14 '25 09:07 larshp

@oblomov-dev try again, latest version

larshp avatar Jul 14 '25 13:07 larshp

looks good to me 👍 Image

oblomov-dev avatar Jul 14 '25 14:07 oblomov-dev