Skip to Content
0
Former Member
Sep 13, 2007 at 01:50 PM

How to get dynamic paramete value in the context node?

38 Views

Hi, experts,

There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method WDDOMODIFYVIEW of the view(test_view), there is dynamically string , ex."ANSSA". How can I get the value of the "ANSSA" from the node(ee_node)?

I try to use the following code to get the value in the method WDDOMODIFYVIEW of the view(test_view):

Method wddomodifyview.

**********************************

*importing para type string.

************************************

data:

Node_Ee_Address type ref to If_Wd_Context_Node,

Elem_Ee_Address type ref to If_Wd_Context_Element.

  • navigate from <CONTEXT> to <EE_ADDRESS> via lead selection

Node_Ee_Address = wd_Context->get_Child_Node( Name = IF_ADDR_AUTO_DISP_VIEW=>wdctx_Ee_Address ).

  • get element via lead selection

Elem_Ee_Address = Node_Ee_Address->get_Element( ).

  • get single attribute

Elem_Ee_Address->get_Attribute(

exporting

Name = para

importing

Value = ??? ).

  • But I don't know how to replace the "???" .

endmethod

I don't know how to replace the "???" in the method wddomodifyview? Do you give me some hint for it?

You can reply back to me via e-mail if you think we should discuss this internally at tao.wang@besuretech.com or wwangt_92@hotmail.com.

Thanks.

Best regards,

tao