cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Exception COMMUNICATION_FAILURE with Message RFC destination..

Former Member
0 Kudos

Hi Experts,

I have to save a material through service call ( BAPI_MATERIAL_SAVEDATA).. but while calling the BAPI


DATA LO_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
LO_COMPONENTCONTROLLER =   WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).

  LO_COMPONENTCONTROLLER->BAPI_MATERIAL_SAVEDATA(
  ).

Im getting this error RFC Exception COMMUNICATION_FAILURE with Message RFC destination BAPI_MATERIAL_SAVEDATA does not exist...

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Ramesh,

When we do the service call , we call the execute method of the BAPI.

i.e. the code should be like:

  LO_COMPONENTCONTROLLER->EXECUTE_BAPI_MATERIAL_SAVEDATA(
  ).

Refer this article [service call|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600?quicklink=index&overridelayout=true].

I hope it helps.

Regards

Arjun

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to all..

saket_abhyankar
Active Participant
0 Kudos

Hi Ramesh,

If you are facing problem in service call, you can follow other approach where service call is not required.

Follow the steps to bypass service call:

1) Take /collect the data required for BAPI call

2) Arrange all data in required format of BAPI i.e. importing parameter, table parameter etc.

3) Call the BAPI using pattern button

4) Pass the data collected in step 2 to the BAPI

5) BAPI will be executed and it will return the desired data in export parameter and table parameter

6) Use this data for following processing

Regards,

Saket

Edited by: Saket Abhyankar on Jan 11, 2010 2:55 PM

Former Member
0 Kudos

hi ,

go to the transaction sm59, and test whether connection is set with the destination or not

check this SAP online help :

Connection Establishment Using Destination (SM59)

http://help.sap.com/saphelp_nw04/helpdata/en/da/11df3a9b10355ae10000000a11405a/content.htm

regards,

amit