Skip to Content

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

Dynamically create reference attribute

Hi,

My current requirement is to create dynamically context attributes. I used the followings :

DATA: ls_attribute TYPE wdr_context_attribute_info.

ls_attribute-name = 'ATTR_1' .

ls_attribute-default_value = ''.

ls_attribute-type_name = 'STRING'.

node_info->add_attribute( EXPORTING attribute_info = ls_attribute ).

And it works fine. But I also need to create a Ref To type dynamic attribute as reference to a class object and nothing seems to work. Any suggestions ?

Thank you in advance,

Horea.

Former Member
Not what you were looking for? View more on this topic or Ask a question