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

Authorization for a transaction

Former Member
0 Likes
780

Hi Experts,

Can you please suggest me, As i am searching for a standard Function Module which is Remote Enabled, which can check whether a user is

authorized to execute a particular transaction or not.

May be it seems like this ,A Function Module which accepts USERNAME and TCODE  and gives output whether he

is authorized or not.

waiting for your replies.

Regards

SAM

Hi Experts,

Can you please suggest me, As i am searching for a standard Function Module which is Remote Enabled, which can check whether a user is

authorized to execute a particular transaction or not.

May be it seems like this ,A Function Module which accepts USERNAME and TCODE  and gives output whether he

is authorized or not.

waiting for your replies.

Regards

SAM

4 REPLIES 4
Read only

Former Member
0 Likes
735

Hi Sam,

    Check this .

AUTHORITY_CHECK_TCODE

Also for your kind information

With Regards ,

Sudhir S

Read only

former_member209920
Active Participant
0 Likes
735

try AUTH_CHECK_TCODE

Read only

RaymondGiuseppi
Active Contributor
0 Likes
735

AFAIK there are none (none of the available FM are RFC enabled and allowing input  of user name)

Regards,

Raymond

Read only

Former Member
0 Likes
735

You can use AUTHORITY_CHECK for this, also RFC enabled.

CALL FUNCTION 'AUTHORITY_CHECK' "

  EXPORTING

user = SY-UNAME

    object = 'S_TCODE'

  field1 = 'TCD'          

  value1 = 'MM01' " Transaction Code

  EXCEPTIONS

    USER_DONT_EXIST = 1         "               User does not exist

    USER_IS_AUTHORIZED = 2      "               User is authorized

    USER_NOT_AUTHORIZED = 3     "               User is not authorized

    USER_IS_LOCKED = 4          "

    .  "  AUTHORITY_CHECK

Thanks,
Shambu