cancel
Showing results for 
Search instead for 
Did you mean: 

RFC call from a Windows Service

former_member583013
Active Contributor
0 Kudos

Hi All,

I have created a simple windows service which is making an RFC call to R/3 system. This is not working. Whereas the same piece of code written in a windows application projects(exe) works properly. Does anyone had similer issues working with Windows services ? Is it a known issue of RFC calls from windows service ???

Thanks & Regards

Ganesh Datta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ganesh,

RFC calls from a Windows Service by uisng the NCo should work, whats the error message?

Thanks,

- Juergen

former_member583013
Active Contributor
0 Kudos

Hi Juergen,

After I put the debug statements I figured out that connection to R/3 system is unsuccessful.

I am using the SAP .Net Connector 2.0. I wrote a windows service which is manually started. Withing my service I am using Single sign on to connect .This is what was causing the problem. If I disable Single sign on and supply userID and password then connection is successful and also subsequent RFC calls.

I guess within windows service Single sign on does not work.

Thanks for your reply

Best Regards

Ganesh Datta

Former Member
0 Kudos

Hi Ganesh,

I am trying to implement a similar solution here. would request if the code can be provided for my reference.

thanks in advance.

Answers (0)