2012 Sep 10 2:09 PM
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
2012 Sep 10 2:35 PM
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.
2012 Sep 10 2:35 PM
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.
2012 Sep 13 1:36 PM
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...