on 06-14-2007 4:58 PM
Hello All,
I've created a WDJ Application from the Tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf">BAPI_FLIGHT_GETLIST</a>
I checked the Bapi in R/3 and I have data in R/3.
But when I execute my WDJ Application I'm not Getting any data.
Can any one help me out ?
Regards,
Deepu.K
Hi deepu,
after u created the model,
Right cick to used model and add it <select model >, in component controller,
implementation part u bind and excute the model datas<codings like chandran .s thread>
Regards,
vino
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
try this code in component Controller Init()
Bapi_Flight_Getlist_Input bapi_obj = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(bapi_obj);
try
{
wdContext.nodeBapi_Flight_Getlist_Input().currentBapi_Flight_Getlist_InputElement().modelObject().execute();
wdContext.nodeFlight_List().invalidate();
}
catch(Exception e)
{
e.getStackTrace();
}
Also check your back end connection
Regards
Chandran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepu,
You are not getting data that is ok.
What error exact you are getting. could you post Error StackTrace.
Otherwise put your Bapi related code in try {} catch() Block .In the Catch Block print the error stack trace.
try{
Bapi Related Code
}
catch(Exception e)
{
wdThis.wdGetAPI().getComponent().getMessageManager().reportWarning("Error"+e.printStackTrace())
}
Rgds
SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepu,
Can you try printing some message just before you are executing the BAPI, ie. in the method executeBapi_Flight_Getlist_Input() in your custom controller (just befor the try..catch block).
For printing a message, you may use wdComponentAPI().getMessageManager().reportSuccess("<message>");
Regards,
Leena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
check whether you have added the model or not?
and also check the Model binding context mapping and databinding.
regards
chandrasekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have you tried with debugging? Do you obtain any error?
let me know.
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 |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.