cancel
Showing results for 
Search instead for 
Did you mean: 

WD Application authorization check on user roles

Former Member
0 Kudos

Hi fellow WD4A colleagues,

In the WD applications, we need to ensure that for a specific application it can be accessed by the users with the appropriate role.

For example,

WD application for Materials Change should only be accessed by users who have the role of Material Master responsible.

In this case, we do not want that a user who has a logon to the system but is not a Material Master responsible to be able to execute the Web Dynpro application (assuming he/she knew the exact URL).

I have tried searching on this topic and have found the following links:

[SAP Help|http://help.sap.com/saphelp_erp2005/helpdata/en/af/0489ce55002f44a8c927371bedf719/content.htm]

[WD Security Narrative (but for WD Java)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1031cf90-0201-0010-1ea5-b27218821417]

They seem to indicate that you must build this check yourself in your own WD eg. in the WDDOINIT method to check if the user has the appropriate role. And if not, then a popup should be displayed with the appropriate message eg. "Access denied".

Has anyone else come across this in their WD projects? If so, could you confirm if this is an appropriate solution for the situation?

Thanks in advance,

Jodie

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Its true. You have to handle Authorisation check manually in your application.

We had simillar requirement, where based on Authorisation check only user can edit or display data.

If it is first view try to handle it in INIT method of view else handle the check in appropriate method before calling another view.

Regards,

Vidyullatha

Former Member
0 Kudos

Hi,

Thanks for sharing your experience - pts was awarded

Answers (0)