cancel
Showing results for 
Search instead for 
Did you mean: 

RFC-XI-WEBSERVICE

Former Member
0 Kudos

Hi ,

I have configured XI scenario using Shabrish weblog 3387. I am facing an issue when i am trying to execute my report that calls my function module in which i have give IMPORT and EXPORT parameters.

When ever i am trying to execute my repot i am getting a short dump. This short dump is there when i mention my RFC destination as DESTINATION after my CALL FUNCTION.

If i remove this DESTINATION my report is working normal calling the function module.

Same is the process when i directly execute my Function module . If i give RFC there then it goes to DUMP. Else works fine. But for RFC-XI-Webservice scenario we need to mention the destination for getting data automatically . I am copying the report for your refrenece.

REPORT Z_TEST_RFC_XI_WEBSERVICE.

data:lv_distance type char10.

CALL FUNCTION 'Z_WEBSERVICE_TEST_SARAS' DESTINATION 'WEBSERVICE' EXPORTING FROMZIP = '12222' TOZIP = '22222' IMPORTING

DISTANCE = lv_distance.

write : 'Distance is : ', lv_distance.

And below is the dump error that is i am getting:-

Runtime Errors CALL_FUNCTION_REMOTE_ERROR

Date and Time 27.09.2007 16:45:25

ShrtText

"Server repository could not create function template for

What happened?

Error in ABAP application program.

The current ABAP program "Z_TEST_RFC_XI_WEBSERVICE" ha

because one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

The error occurred in an RFC call to another system.

The target system has also written a short dump.

Consult this short dump for more precise information a

the cause of the error.

Please suggest what can be the possible solution for this ?

Regards

Saras Jain

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Is your RFC destination test connection work or report any error?

Is your programid in RFC destination and Sender adapter match? (Case sensitive).

Do you see any error in SM58?

Is your webservices active and working properly?

One thing you may want to try is do a full CPA cache refresh.

url for CPA cache refresh is

http://<servername>:<port>/CPACache/refresh?mode=full

Former Member
0 Kudos

Hi Saras,

What you can do is:

1. In R/3 Go to SE37 and under "Attributes" make your FM "<b>Remote Enabled</b>".

I hope i will start working.

Regards,

Sarvesh

****Reward Points if found helpful.

Former Member
0 Kudos

already done that

Former Member
0 Kudos

hmmm... its strange.. ok, do one thing.

1. Do not pass any value directly to the FM.

2. First of all take all the inputs into variables and then pass it to FM.

I am saying this coz once i also faced this in on of my scenario.

3. Also chek the data type i mean char, int, numc etc.. declare the data types carefully and pass respective values in those variables only.

Regards,

Sarvesh

iaki_vila
Active Contributor
0 Kudos

Hi,

With this error: "Server repository could not create function template"

I suppose that you need to have a RFC definition with the parameters import, export and tables and the same name that the RFC DESTINATION.

You might test to create a Z_WEBSERVICE_TEST_SARAS definition with import, export and tables parameters.

Note: You can use it to import RFC structure in XI.

Regards.

Message was edited by:

Iñaki Vila

Former Member
0 Kudos

Hi Saras,

Is there any change in your RFC structure after you have imported that in XI system ? Try to reimport the RFC structure in XI.

Regards,

Sreenivas