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 connection

Former Member
0 Likes
579

HI,ALL:

In my coding,i call a bapi using rfc,is there a fucntion i can call to check this rfc connection is ok,

so i call know such as if the system i rfc-calling reach the max num of rfc calling?

thxs,kevin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

Hello,

In SM59, in your particular RFC connection, there is a button upside called "TEST CONNECTION".

You can press that button and check you RFc connection.

Thanks,

5 REPLIES 5
Read only

Former Member
0 Likes
522

Hello,

In SM59, in your particular RFC connection, there is a button upside called "TEST CONNECTION".

You can press that button and check you RFc connection.

Thanks,

Read only

ThomasZloch
Active Contributor
0 Likes
521

You can use function RFC_PING to test a connection before doing the actual call.

Thomas

Read only

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Likes
521

Hello Kevin,

you can use function module RFC_CHECK_DESTINATION. Also there are lots of FM listed in link:

Best Regards,

Jerry

Read only

MarcinPciak
Active Contributor
0 Likes
521

You can also call your BAPI without checking RFC connection first.

All you need is to list two additonal implicitly defined exceptions COMMUNICATION_FAILURE and SYSTEM_FAILURE to catch any errors on RFC/Target System connection. Then you can react accordingly.

Regards

Marcin

Read only

Former Member
0 Likes
521

Sorry for my late,the ways u guys applys is all ok.

and another question is following:

my programs(backgroud) occured a dump,and it completed when it was recalled,

in my analyzing,it only happed when the target system which i rfc-connected reached the max rfc num limit,

is there a way i can simulate this scenery through change paramter(rz11) or some else? because it rarely happen,thxs.

kevin