Skip to Content
avatar image
Former Member

No Data from BAPI_FLIGHT_GETLIST ?

Hello All,

I've created a WDJ Application from the Tutorial BAPI_FLIGHT_GETLISTwww.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>

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Jun 14, 2007 at 04:28 PM

    Hi,

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

    let me know.

    Regards,

    Gianluca Barile

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2007 at 01:04 AM

    Hi

    check whether you have added the model or not?

    and also check the Model binding context mapping and databinding.

    regards

    chandrasekhar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2007 at 02:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2007 at 04:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2007 at 04:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 15, 2007 at 04:35 AM

    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

    Add comment
    10|10000 characters needed characters exceeded