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

Authorisation Objects

Former Member
0 Likes
866

HI.

An authorisation object has been created with activities 01,02,03 and 06.

Now in PFTC, the respective authorisation object has been asigned to 02,03 and 06 only by basis team.

When i run the program, the authority check giving sy-subrc eq 4, whats the problem?

Do the basis team must assign 01,02,03 and 06 to the authorisation field?

( In authority check i mentioned all the four activities ( in the program))

Regards,

suresh.

5 REPLIES 5
Read only

Former Member
0 Likes
821

Hi

It means the users hasn't authorizations, so check if the profile is active for the user

Max

Read only

0 Likes
821

Hi,

The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.

When this happens, the system checks the authorization profiles in the useru2019s master record for the appropriate authorization object. If the authorization is found and it contains the correct values, the check is successful.

Hope this helps....

Thanks,

Santosh

Read only

former_member191735
Active Contributor
0 Likes
821

Yes, they need to assign all activities if you want authorization for all of them.

Read only

Former Member
0 Likes
821

Hi,

Check user authority

AUTHORITY-CHECK OBJECT 'M_RECH_EKG'

ID 'ACTVT' FIELD '02' "Display

ID 'EKGRP' FIELD 'ZZ'. "Purchasing group

IF SY-SUBRC = 0.

" User has correct authority

ENDIF.

Read only

Former Member
0 Likes
821

got solved om my own...