2010 Sep 14 2:27 PM
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
2010 Sep 14 2:33 PM
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,
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
2010 Sep 14 2:33 PM
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,
2010 Sep 14 2:41 PM
You can use function RFC_PING to test a connection before doing the actual call.
Thomas
2010 Sep 14 2:50 PM
2010 Sep 14 2:50 PM
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
2010 Sep 15 2:56 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |