on 03-10-2014 9:01 AM
Hi Guru's,
Can you give a definition or description of Supply Function, and what is the use?
Thanks,
Pradeep.
Hi Pradeep,
Please refer the below links
Supply Function in Webdynpro - SCN Wiki
Supply function - Web Dynpro ABAP - SAP Library
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rama,
Thanks for Reply.
I have seen this document, i am cleared..!
But i have did some example,
there i have created Tree like nodes,
Example: Node:
type-parent node
subtype-Child Node.
for each type i have multiple subtypes,
When i click on each parent node the child node has to be reloaded in supply function method.
But when i put the Break point on each node, all the nodes initialized before the lead selection.
I dont know how it behaves.
Pls give any examples to understand it.
Thanks,
Pradeep.
Hi Pradeep,
Okay, conceptually you have understood it, that is good
Hope you have also, visited this link
Supply function with singleton concept | Webdynpro ABAP
Then let us have a simple example to understand how it works.
Let us say we have parent node PNODE & child node CNODE
PNODE node has 2 records and for each record CNODE has 3 records
Whenever the data of PNODE is bound/changed, the supply function of CNODE executes. Hence, you are able to get the control during initialization.
Now, if you have set the lead selection at line 2, i.e. there is change to context PNODE, hence the supply function of CNODE triggers and it gets the reference of 2nd record in PARENT_ELEMENT inside supply function and based on this the child node data can be populated.
Even, if you refresh node PNODE using method lo_pnode->INVALIDATE( ), the supply function of CNODE triggers.
Hence, whenever there is change at PARENT'S context node, the supply function of its child node(s) gets called.
Hope it gives little light on the supply function's practical usage.
Regards,
Rama
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.