Application Development 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: 

trusted RFC - change user

former_member223873
Participant
0 Kudos
838

Hi all,

I have a trusted RFC connection defined in SM59. In this connection I can configure user's login (this user will be used every time), or I can left the login fields empty so the system tries to use the credentials of the currently logged in user's on the calling system.

Unfortunately I need yet another behaviour - in the calling program I need to be able to define, under which user I want to start the underlying RFC connection.

I have some points:

- maybe a change current user's ID (context) to the required user could be a way? than the CALL FUNCTION... DESTINATION would use this user if the login is not filled in the SM59; is there a way how to switch to another user in runtime?

- there could be as many SM59 connections defined with filled in login data as many users I may use, for every user one connection, and then call the right one... it's not nice solution

Please note that using of SUBMIT... VIA JOB...USER... is not a solution for me, because it requires a huge performance increase... I need a fast way

Thanks for any help.

Best regards, Bohuslav

1 ACCEPTED SOLUTION

Former Member
0 Kudos
345

Submit via USER is anyway not going serve the perpose. What about updating the USER at the runtime in the RFC destination. There are FM available to update RFC destination ?. Check Function group CRFC. Please note the FMs are not released.

2 REPLIES 2

Former Member
0 Kudos
346

Submit via USER is anyway not going serve the perpose. What about updating the USER at the runtime in the RFC destination. There are FM available to update RFC destination ?. Check Function group CRFC. Please note the FMs are not released.

0 Kudos
345

Hi Roudra, thank you for the reply. I have been able to build a working testing solution on the CRFC group's functions. Anyway, this is not a clear solution in my opinion, I would be grateful even for other suggestions...