Supply function is another very useful meta option provided in Webdynpro ABAP node level. Generally if there are 2 dependent nodes and based on ones entry another will change, in such scenario supply function come in picture. This is nothing but a method only where you can write code.

Now here you can put the name of method and then double click on that and write the code. Whenever the parent node's lead selection changes, this method will trigger at run-time So the entry for the supply function is the lead selection data of the parent node. So this method will not at all trigger until the parent node is called in the run-time.
And one more thing is that, whenever you are going to use supply function method, you have to be sure that for the entry in the parent node there will be some entry in the sub-node so that supply function can fetch that data. Otherwise chances of error will be there.
Now here you can put the name of method and then double click on that and write the code. Whenever the parent node's lead selection changes, this method will trigger at run-time So the entry for the supply function is the lead selection data of the parent node. So this method will not at all trigger until the parent node is called in the run-time.
And one more thing is that, whenever you are going to use supply function method, you have to be sure that for the entry in the parent node there will be some entry in the sub-node so that supply function can fetch that data. Otherwise chances of error will be there.