cancel
Showing results for 
Search instead for 
Did you mean: 

No Data from BAPI_FLIGHT_GETLIST ?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

check whether you have added the model or not?

and also check the Model binding context mapping and databinding.

regards

chandrasekhar

Former Member
0 Kudos

Hi,

have you tried with debugging? Do you obtain any error?

let me know.

Regards,

Gianluca Barile