cancel
Showing results for 
Search instead for 
Did you mean: 

What is Supply Function, use of Supply function?

Former Member
0 Kudos

Hi Guru's,

Can you give a definition or description of Supply Function, and what is the use?

Thanks,

Pradeep.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks for your Kind Information...

Thanks,

Pradeep.

Answers (0)