on 05-07-2008 3:05 PM
Hi All,
What is actually Supply function do ?
In what contexts we make use of Supply function ?
Appreciate your inputs.
Regards,
Anil Kumar
Hi,
Anil Kumar Venkatappa
Supply functions are executed when necessary to initialize elements in the context.
Each context node of a controller can be assigned a supply function. This supply
function is called by the runtime when the data of the context node is used. This is the case
when a UI element is to be displayed for the first time with the data of the corresponding
context, for example.
In general, the supply function is called when one or more elements of a context node are
accessed and when
● the context node is not filled yet or is initial, or
● the context node has been invalidated in a previous step.
The supply function is especially useful in combination with singleton nodes
The values of subnode elements of the type Singleton depend on the element of the parent node
to which the lead selection is currently assigned. If the lead selection is changed by the user,
the supply function can access the new lead selection element and recalculate the values of
the subnode elements accordingly.
Please find an eg for supply function in this sample eg:
Web Dynpro for ABAP: Tutorial 4 Display Bookings of Selected Flight ,
application name :ZZ_00_BOOKINGS
Cheers,
Mary
Please award points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
A method of type Supply Function is always called the first time a controller is called,
and is used to provide the controller context with initial data.
Refer the below links.
[Supply Function|http://help.sap.com/saphelp_nw04s/helpdata/en/f1/177741adb7167de10000000a155106/frameset.htm]
Hope it will help.
Thanks..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
the supply function suplies the elements of a context. You should use this whenever you have and context that always needs to be filled.
I suggest you to read the following: [/people/thomas.szcs/blog/2006/12/13/web-dynpro-abap--singleton-context-nodes-revisited], [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4810] [original link is broken] [original link is broken] [original link is broken];, [http://help.sap.com/saphelp_nw04/helpdata/en/86/7fcf3d4f902d10e10000000a114084/frameset.htm].
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.