Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC problem

Former Member
0 Likes
495

Hi Experts,

We have the two servers like D11 and S11.

I have created the RFC function module in the S11 server with the name 'Z_sales_order'

and I am calling the RFC function module in D11 server its working properly.

for example:

If we dont have the RFC function module in S11 server( Z_delivery_data)

I have called the (Z_delivery_data ) function module in D11 server its going to short dump.

I am facing this type of problem. Is ther any way to avoid short dump.

Thnx,

Sam.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
457

You can use EXCEPTIONS addition from the called server and chck for the same.

Check this [link|http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm] might be helpful.

2 REPLIES 2
Read only

mvoros
Active Contributor
0 Likes
457

Hi,

I am not sure if I understand your question but if you just do not want to get dump in case of error such as function does not exist on the remote server then I do not think it is possible. There is a list of exceptions in ABAP documentation for RFC but all are non-catchable.

You could try to find some workaround such as every system in your landscape will have implemented RFC enabled function Z_FM_EXIST. This FM will return true in case that server has implemented FM. You will use this FM to check if you can make RFC call. Still there are other errors which you can get from RFC call.

Cheers

Read only

amit_khare
Active Contributor
0 Likes
458

You can use EXCEPTIONS addition from the called server and chck for the same.

Check this [link|http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm] might be helpful.