Skip to Content
Former Member
Aug 02, 2009 at 09:37 AM

CL_GOS_SERVICE - Authorization check before activating GOS



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


Zubair Naseer