cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of New field in Relationship block of contact page

Former Member
0 Kudos

Hi,

I have created a new field as value attribute in Relationship block of contact overview page. Since both AET and EEWB did not allow creation of the field as part of BUT051 I had to create value atribute. I have custom logic for the field. Can you please let me know how I can populate the field.

Thanks,

JC

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member188346
Active Participant
0 Kudos

Hi JC,

The context node that you are using is a mixed node, so from this node you need to get value node so that you can cast the value into cl_bsp_wd_value_node.

Here's the sample code for getter and setter method of that attribute:

DATA:

   lr_mixed TYPE REF TO cl_bsp_wd_mixed_node,

   lr_value_node TYPE REF TO cl_bsp_wd_value_node.

lr_mixed ?= current  or lr_mixed ?= iterator. " use either of the code i dont have system right now

lr_value_node ?=  lr_mixed_node->if_bsp_wd_ext_property_access~get_value_node( ).

Here, from lr_value_node get the property access method and set the attribute value to VALUE parameter.

Thats it

Thanks,

Bhushan

dharmakasi
Active Contributor
0 Kudos

Hi

You can use get method of your value attribut. Write your logic in get method assign final value to the VALUE parameter in get method.

Best regards,

Dharmakasi