on 2005 Nov 11 8:49 PM
Hi everybody,
From the tutorial I know how to populate a table from an RFC call by using 'create binding' from the context menu of the table. I want to know how I can output data from a RFC without having an input field and search button. So as soon as I launch the Dynpro app there is some data in the table from the backend.
Thanks.
MK
Execute the RFC not from an action handler but from another method like the controller initialization method wdDoInit() or from an inbound plug.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi if u want to see the output while launcing the application put the necessary code in wdDoInit()method.
call the required bapi and supply all the mandatory info for that bapi to get accurate results.
satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would put your call to the BAPI in the wdDoInit method of the controller.
Here is some code from an application I did where there is no input parameter and the data is displayed in the application right away.
public void wdDoInit()
{
//@@begin wdDoInit()
// Bind to the context
Z_Ep_Get_Ytd_Sales_Input input = new Z_Ep_Get_Ytd_Sales_Input();
wdContext.nodeZ_EP_GET_YTD_SALES().bind(input);
try {
// calls remote function module Z_EP_GET_YTD_SALES
wdContext
.currentZ_EP_GET_YTD_SALESElement()
.modelObject()
.execute();
} catch (Exception ex) {
// If an exception is thrown, then the stack trace will be printed
ex.printStackTrace();
}
wdContext.nodeOutput().invalidate();
//@@end
}
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
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.