cancel
Showing results for 
Search instead for 
Did you mean: 

Not Retrieving Data from R/3 for Flight Application

Former Member
0 Kudos

Hi Friends,

I tried to simulate the Flight Application.

I tested SLD connection and JCO connection,everything is successful.But When I try to deploy and run the application,Data is not retrieved from R/3.

What are all the procedures i have to follow to get it done.

Thankx in Advance.

Karthick Eswaran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please post the exception stack trace if any !!

First check weather you have any data in the R/3 system or not for that particular call !!

I think you can test FM by using se37 (If i am not wrong) !!

Regards, Anilkumar

Former Member
0 Kudos

There is no exception raising.

As I am new to WebDynpro i dont know How to Ceck whether the data is there or not.Plz help me in this.

See my code below.

public void executeBapiFindFlightList( )

{

//@@begin executeBapiFindFlightList()

try {

wdContext

.currentBapi_Find_Flight_GetlistElement()

.modelObject()

.execute();

} catch (Exception e) {

e.printStackTrace();

}

wdThis.wdGetContext().nodeOutput().invalidate();

//@@end

}

It seems everything is correct.But still I could not find out the problem.

Former Member
0 Kudos

Hi Shakti,

Yes your code is looking fine.

But you have to invalidate your output context node after executing your model.

Write following code after execution of model.

wdcontext.nodeOutput().invalidate();

wdcontext.node<result node>.invalidate();

Likewise invalidate all nodes under output node.

Regards,

Bhavik

Former Member
0 Kudos

I Invalidated all the nodes

see below.

wdThis.wdGetContext().nodeOutput().invalidate();

wdContext.nodeBapi_Find_Flight_Getlist().invalidate();

wdContext.nodeDestination_From().invalidate();

wdContext.nodeDestination_To().invalidate();

wdContext.nodeFlight_List().invalidate();

I added these lines in my code.

Then whatelse i can do!!!!!!!!!

Former Member
0 Kudos

Hi shakthi,

No need to invalidate all the nodes. Invalidate nodes under output node only.

wdThis.wdGetContext().nodeOutput().invalidate();

wdContext.nodeFlight_List().invalidate();

Invalidate above nodes only.

Did you get the results in first execution?

The second time problem is due to invalidating all nodes only.

Regards,

Bhavik

Former Member
0 Kudos

Hi Shakthi,

Have you resolved your problem?

If yes then please close this thread.

Regards,

Bhavik

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shakti,

First of all test whether for that data you can get any results in SAP R/3 itself or not by executing that function module from se37.

If it is returning data, then post your code where you are calling this RFC in webdynpro.

I guess you are not invalidating the output nodes.

Regards,

Bhavik

Former Member
0 Kudos

Also check your authorization (object:S_FLBOOK) to execute the function module

Former Member
0 Kudos

How to check my Authorization to execute the function module.

Former Member
0 Kudos

As Anil said execute the Function module in Se37 and check whether you get the return values.In case of missing authorization you will get message in RETURN table.

Former Member
0 Kudos

hi Shakthi,

ask any SAP (ABAP or Basis or functional) guy in your company to see if there is any data in these modules.

I thing there is no data

Rgds,

Vilish

Former Member
0 Kudos

printing stacktrace would not help in printing the exception hence try to use wdComponentApi.getMesssageManager.reportException()

Try to execute the RFC in the R/3 and check if it executes fine and returns values.

Do let me know the status

Former Member
0 Kudos

Hi Noufal,

I executed RFC in R/3 System.It Executes fine.

I added the line.

wdComponentApi.getMesssageManager.reportException("Test",true);

When I click SearchFlight button first time its not giving any error.If i click second time the string "Test"

is displaying.