on 01-12-2011 10:50 AM
Dear Experts,
I have a Value node with a child node and a Attribute.
The child node also have one attribute.
MyNode
+-------MyChildNode
+------MyChildNodeAttribute
+ -
MyAttribute
My requirement is to set the MyNode with single record.
Please suggest.
Warm Regards
Upendra Agrawal
hi upendra,
generally we use supply functions when dealing with parent and child nodes....on expanding the parent node the child nodes get automatically populated.
i am sharing a sample of supply function here......
SELECT objid stext FROM hrp1000
INTO TABLE lt_suborg_units
FOR ALL ENTRIES IN it_suborgs
WHERE objid = it_suborgs-objid
AND begda <= sy-datum
AND endda >= sy-datum
AND langu = sy-langu.
ENDIF.
sort lt_suborg_units by ORGEH.
DELETE ADJACENT DUPLICATES FROM lt_suborg_units COMPARING ORGEH.
node->bind_table( lt_suborg_units ).
endif.
you will have to populate the value in the internal table and then you will have to bind the table with the node doing this will populate value to the child node.
hope this may solve the problem of yours.
thanks and regards,
sahai.s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
set the my node seperately and then set the attribute of the child node depending on whether sigleton property is set or not.
thanks
sarb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Dear Experts,
>
> I have a Value node with a child node and a Attribute.
> The child node also have one attribute.
>
> MyNode
> +-------MyChildNode
> +------MyChildNodeAttribute
> + -
MyAttribute
>
> My requirement is to set the MyNode with single record.
>
> Please suggest.
>
> Warm Regards
>
> Upendra Agrawal
hi,
in wda there is a code generator use ctrl + f7.
use the first tab context and select your node , set radio buttons. This will generate necessary code for you to set the node or attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
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.