on 09-23-2014 12:31 PM
Hi,
We have a context with Node and Subnode and Attributes to node.
Now my requirement is to Read all the Elements in Subnode (Not only Lead of Selection in Subnode).
When i am reading it from the subnode from Auto Code Generator i could able to read only entries in Subnode for the Lead of Selection of Parent Node.
Eg:
Node1
Subnode - A1 A2
B1 B2
Attr1 100 500
Attr2 200 600
Attr3 300 700
Now i want to read all the Elements of Subnode.
Thank You,
Shashikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shashi,
Have you used the method GET_STATIC_ATTRIBUTES_TABLE()???
http://help.sap.com/saphelp_nw04s/helpdata/en/fd/be5b4150b38147e10000000a1550b0/content.htm
BR,
RAM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shashikanth,
You can use the following snippet to read the subnode.
CALL METHOD wd_context->path_get_node
EXPORTING
path = 'PARENT_NODE.CHILD_NODE'
RECEIVING
result = lo_node.
IF lo_node IS BOUND.
CALL METHOD lo_node->get_static_attributes_table
IMPORTING
table = lt_table.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.