cancel
Showing results for 
Search instead for 
Did you mean: 

How to set RFC for ABAP WEB DYNPRO?

Former Member
0 Kudos

How to set RFC for ABAP WEB DYNPRO?

any bases setup for it ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Very good!

Former Member
0 Kudos

could you please be a little bit more detailed ?

Do you want to make an RFC-call from Webdynpro ?

Best regards, Matthias

Former Member
0 Kudos

When i run a web dynpor program,then clicked a search button,view error,below:

Note

The following error text was processed in the system NSP : RFC Exception COMMUNICATION_FAILURE with Message RFC destination BAPI_FLIGHT_GETLIST does not exist. Occurred

The error occurred on the application server struts_NSP_00 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: EXECUTE_BAPI_FLIGHT_GETLIST of program /1BCWDY/2C0IGBDOH12G4V6MV8WO==CP

Method: IF_COMPONENTCONTROLLER~EXECUTE_BAPI_FLIGHT_GETLIST of program /1BCWDY/2C0IGBDOH12G4V6MV8WO==CP

Method: ONACTIONGET_FLIGHTS of program /1BCWDY/2C0IGBDOH12G4V6MV8WO==CP

Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2C0IGBDOH12G4V6MV8WO==CP

Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP

Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP

Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP

Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP

Former Member
0 Kudos

so do you have a rfc-destination which is called bapi_get_flights ?

you can check this in SM59.

Maybe you should post your coding with the bapicall.

Former Member
0 Kudos

Need i set up a rfc for every bapi or set a common for all call bapi?

Can you give a sample?If you have a sample picture,you can send it to me with email,thanks!

Former Member
0 Kudos

No, if the bapi you try to call, is in a different system you need a rfc-destination.

RFC Calls look like that:

CALL FUNCTION '<bapi-name>' DESTINATION <rfc_destination from sm59>

EXPORTING

.....

IMPORTING

.....

you need a rfc-destination for each remote system.

If the bapi is not in a remote system, just leave the destination <rfc_destination from sm59> away.

Best regards, Matthias

Former Member
0 Kudos

Thanks!

1.How to define a rfc Destination for web dynpro with abap

2.For web dynpro with abap,i just use and see the part code,don't see 'call.....',please help!

method ONACTIONGET_FLIGHTS .

*data lo_componentcontroller type ref to ig_componentcontroller .

*lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).

*

  • lo_componentcontroller->execute_bapi_flight_getlist(

  • ).

wd_Comp_Controller->Execute_Bapi_Flight_Getlist( ).

endmethod.

Former Member
0 Kudos

So make a doubleclick on Execute_Bapi_Flight_Getlist() and the you should see the coding of the ControllerMethod. There is the bapicall itself.

I think for RFC you should have a look at [this|http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm]

Best regards, Matthias

Edited by: Matthias Drescher on Dec 19, 2007 4:46 PM