cancel
Showing results for 
Search instead for 
Did you mean: 

method: SET_ATTRIBUTE_REF_CALLBACK

0 Kudos

interface : IF_WD_CONTEXT_NODE_INFO

method : SET_ATTRIBUTE_REF_CALLBACK

Hi export.

How can I use this method.

please, show me the sample code.

Thk, Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

S-H
Active Participant
0 Kudos

Hi,

Refer the Wd component WDR_TEST_INPUT_OUTPUT. View CURR's WDDOINIT method this method has been called.

  • declare callback for single node

l_node_info = l_root_info->get_child_node( 'SINGLE_PRICE' ).

l_node_info->set_attribute_ref_callback(

name = 'PRICE'

callback_object = me

callback_method = 'GET_REFERENCE_ELEMENT'

reference_field_type = if_wd_context_node_info=>reffieldtype_curr

).

Hope this helps.

Best regards,

Suresh

0 Kudos

i can't find the WDR_TEST_INPUT_OUTPUT component in my development environment.

please explan the CONTEXT structure and GET_REFERENCE_ELEMENT method code.

Thk u Suresh.