on 03-05-2007 1:43 PM
hi
i want to execute bapi first time when first time view displays
so please let me know how to execute the BAPI when first view executes.
regards
mmukesh
Hi,
Yes u need to write the execute method in the init method of the Customcontroller or View.
import the model and context mapping from the contextcontroller to view controller
and design ur view and add the following code.
BAPI_input input = new BAPI_input();
wdContext.nodeBAPI_inputElement().bind(input);
//pass the input for the BAPI.
input.set<params1>();
input.set<params2>();
try{
wdContex.currentBAPI_inputElement().modelObject().execute();
wdContext.nodeOutput().Invalidate();
}catch(Exception e)
{
}
It migh helps u .
Thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukesh,
you must simply put the executeBAPI method into the wdDoInit() method of your Component controller.
Regards,
Gianluca Barile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.