cancel
Showing results for 
Search instead for 
Did you mean: 

FlightList return empty list

Former Member
0 Kudos

Hi,

I have run FlightList example but the table is empty.

I have add a bapiret table for message, but it also is empty.

Can you help me?

Thanks...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Alfonso,

put an external breakpoint in the function module and check whether it is getting called or not when you execute the application

Thanks

Bala Duvvuri

Former Member
0 Kudos

Bala Duvvuri ,

I set an external breakpoint in the function module and it is ok.

The bapi is called exactely

The structures contain the values.

Former Member
0 Kudos

If your values are populated correctly in R/3 that means that you might have mapped a wrong node to your table. Please recheck the mapped node.

Regards,

Murtuza

Former Member
0 Kudos

I solved the problem.

The mapped node was not correct.

Thanks!!!

Former Member
0 Kudos

Hi,

Have you mapped the table node output under the input structure. Could you send your node structure and the code written to execute the RFC.

Regards,

Murtuza

Former Member
0 Kudos

This is the code of the custom controllers, the standard code of FlightList Example from sdn:


public void wdDoInit()
  {
    //@@begin wdDoInit()
	// Create a new element in the Bapi_Flight_Getlist_Input node
	Bapi_Flight_Getlist_Input bapiInput = new Bapi_Flight_Getlist_Input();
	wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);

	// Create new elements in the Destination_From and Destination_To nodes
	bapiInput.setDestination_From(new Bapisfldst());
	bapiInput.setDestination_To(new Bapisfldst());
    //@@end
  
}


 public void executeBapi_Flight_Getlist_Input( )
  {
    //@@begin executeBapi_Flight_Getlist_Input()
	// Call BAPI
	try
	{
		wdContext.currentBapi_Flight_Getlist_InputElement().modelObject().execute();
	} 
	catch(Exception ex) 
	{
		ex.printStackTrace();
	}

	// Resynchronise the data in the context with the data in the model
	wdContext.nodeOutput().invalidate();
    //@@end
  }

Former Member
0 Kudos

Hi,

I would like to know when are the calling the method executeBapi_Flight_Getlist_Input in your view?

Regards,

Murtuza

Former Member
0 Kudos

ah.. ok

this is the code in the view:


 public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
    //@@begin onActionSearch(ServerEvent)
//$$begin ActionButton(-581384877)
	wdThis.wdGetFlightListCustController().executeBapi_Flight_Getlist_Input();
//$$end
    //@@end
  }

Former Member
0 Kudos

Hi,

Could you check 2 things:

1. This action is mapped to the correct button using which you are trying to call the BAPI.

2. Try executing BAPI in R/3 directly without passing any parameters and see what do you get as result.

Regards,

Murtuza