cancel
Showing results for 
Search instead for 
Did you mean: 

difference between method,event handler,supply function.

Former Member
0 Kudos

hi,

i wants to know what is the difference between

method.

event handler.

supply funciton.

Regards:

Pankaj Aggarwal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pankaj,

These are few lines from the F1 help documentation given,

Web Dynpro: Method Type :The type of a method defines whether you have an event handler, a supply

function, or a (normal) method.

Event Handler : Handlers of an event, a controller, an action, or an inbound plug of a view.

Method : Modularization unit within a view or a controller.Methods of a view can only be called locally

within this view.Methods of a controller (component or custom controller) can also be called from

a view or another controller, provided the controller is entered as controller used .

Supply Function : Method for filling a context node.

For more information refer to the Thomas post

Regards,

Sravanthi

Former Member
0 Kudos

hi,

Event handler and method is fine, but i am not clear with supply function.

Plz give some dummy program also regarding supply function.

Thanks

Pankaj Aggarwal

Former Member

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Supply function is explained in the middle of the page in this help document link:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8c/a0fa495f9a480bae29bf43474ccb79/frameset.htm

Event handler is a special method that is designed to be called when a User Interface Action occurs. It gets parameters that supply more information about the event. For example when you place a button on the screen, there is an action for when the button is pressed. The method that responds to this action is the event handler.

Method is a normal object oriented construct for encapsulating programming logic. It is a general term that refers to different types of groups of code. Both Supply Functions and Event Handlers are technically methods as well.