Hi Experts,
I have a doubt regarding the use of the Authority-check statement in a WDA develeopment.
In my scenario i have some views which needed to be displayed only to some users who are the administrators and some who are the normal users. In order to achieve this I was using the Authority-check statement and it was done sucesfully in one server. here i have created two Z authorization objects and authoirization value field and created a new authorization class.
we also have seperate roles created for ADMIN and USER module. Now in my main view, in the DOINIT, statement i was using the Authority-check statement and based on the sy-subrc which is retured, i was navigating to the corresponding views.
This approach was working fine in my servers. when i imported all these developements into another server, the Authority-check statement is returning the value of sy-subrc as zero always, irrespective of whether the user has the role assigned to him or not.
what can be the reason for this behavior in the new server, and is there any way i can make the server to execute the authority-check statement and return the sy-subrc correctly?
thanks in advance for your suggestions.
Ajith