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

Check authorization at TCode Z...

Former Member
0 Likes
662

Hi All,

I have a problem with authorization, please help me !

I have Tcode for customize report (HR). With user A, for one or two standart tcode, he has aut with Per. Area (10,20,30), but in cust. tcode Z... , he has only one aut in Per. Area (20). I used SU24 to assign aut. object (P_ORGIN) to Tcode Z... to check Personal Area and assign to it P.Area(20). But it not effect. How to do it ! Thanks for all idea !

5 REPLIES 5
Read only

eduardo_hinojosa
Active Contributor
0 Likes
628

Hi

Add the auth.object in your coding. Use 'Pattern' in ABAP Editor (SE38) for 'AUTHORITY CHECK'. After manage the error message with the purpose that user know that he or she must run tcode SU53.

Regards

Eduardo

Edited by: E_Hinojosa on Nov 22, 2011 9:20 AM

Read only

0 Likes
628

Hi E_Hinojosa ,

No message error, so SU53 show nothing .......

thanks for yr answer !

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
628

Hello,

You need to add the auth. object to relevant authorization role(s), assign this role to the user. After these steps are complete run the report!

I'll advise take help of the Security team.

BR,

Suhas

Read only

Former Member
0 Likes
628

Hi ,

You should write AUTHORITY CHECK statement in you code.Then as per personal area restrict the authorization.

Read only

0 Likes
628

Yes, in the program I did.

AT SELECTION-SCREEN.
  AUTHORITY-CHECK OBJECT 'P_ORGIN'
  ID 'PERSA' FIELD pnpwerks-low
  ID 'PERSK' FIELD pnppersk-low.

  IF sy-subrc <> 0.
    MESSAGE 'Un authorization !' TYPE 'E'.
  ENDIF.

But it also pass