Application Development 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: 

CL_GOS_SERVICE - Authorization check before activating GOS

former_member66888
Participant
0 Kudos

Hi,

I am trying to figure out if it is possible to restrict the activation of GOS button depending on the user authorization for the selected object.

Based on my very basic level understanding of abap, i think that we would need to inherit a class from CL_GOS_SERVICE And then status of service VIEW_ATTA would be set to active or inactive/invisible based on the authorization check.

Scenario detail:

_____________

Transaction: PA20 or PA30

Authorization object in user's profile:P_ORGINCON

When user enters the transaction PA20, the GOS button is not visible by default. After entering any personnel number (whether authorized or not) and pressing enter key, the GOS button becomes visible. I want to prevent this when the personnel number entered by user is not authorized based on the values contained in authorization object P_ORGINCON in the user's profile.

Apprecaite if someone can guide me whether this is possible or not.

Many thanks

Regards,

Zubair Naseer

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Please check this sap note 491271 might be helpfull.

Regards

Hiren K.Chitalia

1 REPLY 1

Former Member
0 Kudos

HI,

Please check this sap note 491271 might be helpfull.

Regards

Hiren K.Chitalia