on 08-24-2012 1:10 PM
Hi,
I have an element name.I want to know whether an attribute exist in that view.I want the node in which it exist.How?
Found out the answer myself....
DATA LO_API_INTERFACECONTROLLER TYPE REF TO IF_WD_CONTROLLER.
LO_API_INTERFACECONTROLLER = WD_THIS->WD_GET_API( ).
DATA: LO_CONTEXT TYPE REF TO IF_WD_CONTEXT,
LO_ROOT_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
LO_ND_DATA TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
LO_CONTEXT = LO_API_INTERFACECONTROLLER->GET_CONTEXT( ).
LO_ROOT_NODE = LO_CONTEXT->ROOT_NODE.
LO_ND_DATA = LO_CONTEXT->ROOT_NODE_INFO.
CALL METHOD LO_ND_DATA->GET_CHILD_NODES
RECEIVING
CHILD_NODES = LT_NODES.
This will give the available nodes in the root node..From there we can check...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.