Application Development and Automation 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: 
Read only

Getting Access Object Authentication for Different User

Former Member
0 Likes
462

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
429

Hi,

Did you use the FOR USER addition in the AUTHORITY-CHECK statement..

OR try using the FM AUTHORITY_CHECK..

Thanks

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
430

Hi,

Did you use the FOR USER addition in the AUTHORITY-CHECK statement..

OR try using the FM AUTHORITY_CHECK..

Thanks

Naren

Read only

0 Likes
429

Authority-check doesn't seem to have 'for user', but the FM works