cancel
Showing results for 
Search instead for 
Did you mean: 

RFC server in WinService - TARGET_METHOD_EXCEPTION

Former Member
0 Kudos

Hello all,

I use the RFC server by Windwos service. The function is good,

but when I would like to recall after 2-3 hours

the program/connection is dumping in SAP.

Dump

-


Exception condition "TARGET_METHOD_EXCEPTION" raised.

The current ABAP/4 program encountered an unexpected

situation.

SY-MSGTY E SY-MSGID SR

SY-MSGNO 000

SY-MSGV1 Length cannot be less than zero.##Parameter name:

SY-MSGV2 length SY-MSGV3

SY-MSGV4

Somebody can help pme please?

thank you

Thoomasz

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Yes.

But the evenements arrive rarely and unpredictable

Former Member
0 Kudos

Hello Reiner!

I do what did you should me but unfortunately any log is created. possible is that the call don't get there?

Thx

Thoomasz

reiner_hille-doering
Active Contributor
0 Kudos

Is it possible to attach a debugger (e.g. Visual Studio) to your RFC server and turn on "first chance exception handling?

reiner_hille-doering
Active Contributor
0 Kudos

This sounds as if your .NET-code threw an exception that was trasfered to ABAP. You should enclose your code with a try-catch-block and write any exception to a log file, so you see when and why the exception happens (pseudo-code snippet):

public override void MyRFCServerFunction(...)

{

try

{

// do you server code here

}

catch(Exception ex)

{

MyLogfile.Write(ex);

}

}