Skip to Content
0
Former Member
Jul 22, 2008 at 08:47 PM

Getting Access Object Authentication for Different User

12 Views

For the current user, I can use 'AUTHORITY-CHECK ...' to determine if I have access to something. But I have a case where I have a user-id, and want to check if that user-id is authorized.

We are running an RFC via a "service account" to return information to a different system. The system sends us a userid string. I need to use this userid string to determine if that user exists in SAP, and if they have authorization to the object.

I have tried the obvious things, 'sy-uname = userid' (didn't work), 'call transaction ... user userid' with BDC (didn't work), 'submit ... user userid ...' (insisted on authenticating running batch job as userid).

Does anyone have any ideas? I am willing to try to do it manually, but don't know how. Any useful function modules? Any tricks for call RFC with a different user?

Thanks