cancel
Showing results for 
Search instead for 
Did you mean: 

RFC AS SENDER ( CALL_FUNCTON_REMOTE_ERROR )

Former Member
0 Kudos

Hi all

I have done one scenarion as RFC is sender adapter.

1. I have created RFC destination type t in sap.

2. I have taken program id and this is given sender comm channel.

During execution of RFC I used RFC Destination type t created above then it is throwing error <b>CALL_FUNTION_REMOTE_ERROR</b>.

so can you please give me list of settings required in SAP .

Thanks

N.P.Babu

Accepted Solutions (0)

Answers (3)

Answers (3)

sam_raju
Contributor
0 Kudos

Hi Prasad Babu,

Please check the following:

1. Test your RFC Destination and make sure it is working.

2. If not, make sure your Program ID is registered.

a) To check this go to TR.code SMGW-->Go to -->Logged

on clients. Your program ID should under column

'TP name'.

You can also check this by executing the function

module 'GWY_READ_CONNECTED_SYSTEMS' in SE37 of R/3.

Also, refer to the thread at the following Link:

Rgds,

Sam Raju

former_member181955
Contributor
0 Kudos

Hi Sam

I have checked all what you suggested , everything is fine. But in SXMB_MONI it is giving <b>no messages</b>

thanks

N.P.Babu

sam_raju
Contributor
0 Kudos

Hi Prasad Babu,

Check couple of things.

1) Go to Tr.code SM58 in R/3 to see if your messages got stuck there. if so, highlight the message and click on F6 button to execute it.

2) Have you specified the RFC Destination while executing your function module?

If the above two are okay, try the following.

Write a small ABAP Wrapper Script to execute your function module.

Sample ABAP Script for making ASYNCHRONOUS RFC calls to XI

REPORT Z_SEND_DATA_TO_XI.

PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT '(RFC Destination you defined in SM59)'.

<<your other variable declaration and ABAP Code here>>

CALL FUNCTION '<Your RFC Function Module>'

IN BACKGROUND TASK

DESTINATION DEST

EXPORTING

< your export parameters>

COMMIT WORK.

<< your other ABAP code here>>

Sample ABAP Script for making SYNCHRONOUS RFC calls to XI

REPORT Z_GET_DATA_FROM_XI.

PARAMETERS: DEST LIKE RFCDES-RFCDEST DEFAULT '(RFC Destination you defined in SM59)'.

<<your other variable declaration and ABAP Code here>>

CALL FUNCTION '<Your RFC Function Module>'

DESTINATION DEST

IMPORTING

<your import parameters>

EXPORTING

< your export parameters>

<< your other ABAP code here>>

Hope this helps.

Regards,

Sam Raju

former_member181955
Contributor
0 Kudos

Hi

I have done as you specified .I found this error in SM58

server repository could not create function template..

thanks

N.Prasad Babu

Former Member
0 Kudos

Hi,

In the abap code making this call ..pls make the function call as follows(make sure the exceptios part is similar)...see what is the error message that you get in the field <b>MSG_TEXT</b>...it might say what the problem is....

DATA: INFO LIKE RFCSI, "Importing parameter
      MSG_TEXT(80) TYPE C. "Message text
...
* Synchronous call to function module RFC_SYSTEM_INFO

 CALL FUNCTION 'RFC_SYSTEM_INFO'
   DESTINATION 'NONE'
   IMPORTING
       RFCSI_EXPORT = INFO
   EXCEPTIONS
     COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
     SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.

 IF SY-SUBRC NE 0.
    WRITE: MSG_TEXT.
 ELSE.
   WRITE: 'O.K.'.
 ENDIF.

Thanks,

Renjith

former_member181955
Contributor
0 Kudos

Hi Andrews

It was executed well but i am not sure message is hitting SAP-XI.

Thanks

N.Prasad Babu

Former Member
0 Kudos

Have a look at Michal's blog for configuring sender rfc,

/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

also have a look at the following thread,

Sameer

former_member181955
Contributor
0 Kudos

Hi Sameer

I have done everything eventhoug it is giving same error.

thanks

N.P.BABU

Former Member
0 Kudos

Hi

Is your RFC remotely enabled??

Sameer

former_member181955
Contributor
0 Kudos

yes

If not I could not have imported RFC in IR.

Thanks

N.P.BABU