‎2010 Apr 20 10:34 AM
Hello,
Is it possible by program to open a cession for another user?
I want that this program displays a popup connexion (Login/password), check the password and if it 's correct, open a login cession.
Or Is it possible to submit a transaction by specifying the user?
Thank for your answer.
Regards,
Patrice.
‎2010 Apr 20 10:39 AM
Hello Pomarez,
Why don't you try : TH_CREATE_FOREIGN_MODE. This FM opens a session for another user but doesn't check the password validations.
Let me see if i can find anything new.
‎2010 Apr 20 10:46 AM
but doesn't check the password validations
This fm works only if the other user has logged in to the same client.
It will not open a session directly.
‎2010 Apr 20 10:49 AM
Thats True and one can get that from FM documentation .I never disagreed to that.
‎2010 Apr 20 10:53 AM
Thank for yours answers.
But effectively this fm works only if the other user has logged. My problem is to open a cession even if the user is not logged.
Regards,
Patrice
‎2010 Apr 20 10:56 AM
My problem is to open a cession even if the user is not logged.
How will you make sure whether the user has switched on the Computer ?????
‎2010 Apr 20 11:09 AM
We can end or kill a session if user is not logged in . But to open a session for a user who's not logged on how can that be possible?
PS: Anyone has any idea on this?
‎2010 Apr 20 12:45 PM
For you, is-it possible to call a transaction by specifying the user?
‎2010 Apr 20 1:57 PM
‎2010 Apr 20 2:03 PM
‎2010 Apr 20 2:07 PM
‎2010 Apr 20 2:12 PM
>
> Did you try on hands on that?
Yes & if you have not read SAP documentation: [http://help.sap.com/saphelp_erp60_sp/helpdata/EN/2f/6d2e42e1ef5633e10000000a155106/content.htm]
‎2010 Apr 20 2:16 PM
Oh...Thanks Suhas. What if user is not logged in?
Infact OP wants to open a session for another user via some report/programs.
Edited by: Mishra.Manas on Apr 20, 2010 3:18 PM
‎2010 Apr 20 2:31 PM
The SAP documentation also mentions what happens if the user is not logged into the system.
If the password field is not active you can activate it as well.
In your previous post you had asked, "How to open a session for a user not logged into the system ?". I just replied to it.
BR,
Suhas
‎2010 Apr 20 2:54 PM
Hello Mishra,
If the user is logged in How can you call a transaction by specifying this user?
Thanks.
Patrice.
‎2010 Apr 20 3:02 PM
I don't think you can specify the user name with CALL TRANSACTION. But you can do so using SUBMIT. Read the SAP documentation for details.
BR,
Suhas
‎2010 Apr 20 1:49 PM
Hi,
Create one authorization object with the help of basis and add your specific user to that authorization group.
In the program check with the authorization object and sy-uname and proceed further.
--Naresh.
‎2010 Apr 20 6:58 PM
Hello Guys,
2 ways of doing this:
Solution#1:
1. Create an RFC destination for the local system & using the user(the user for which you want to open the session) to logon through the RFC.
2. Call the FM 'ALINK_CALL_TRANSACTION', give the RFC name & the transaction code you want to open.
I have uploaded the [screenshots|http://img218.imageshack.us/g/rfcdestination.png/] for better understanding of how this works.
Solution#2:
1. As mentioned in my previous post, create an SAP shortcut. Give the transaction code, the user details etc. and save it. (refer to my previous post on how to create a shortcut)
2. Call the method CL_GUI_FRONTEND_SERVICES=>EXECUTE & pass the shortcut to it. It will open the transaction code for the user used in the shortcut.
Hope i am making sense.
BR,
Suhas