Purpose:
Application to demonstrate handling the custom authorization checks in Web Dynpro ABAP
Scenario:
I would like to explain the functionality of handling the custom authorizations in Web Dynpro ABAP.
Here, the authorized users list along with roles have been maintained in the custom table and WDA application should check the user against the table entries and respond accordingly.
Process is divided as below
Pre-requisite:
Basic knowledge of Webdynpro ABAP, Data dictionary & OO ABAP
Step by step Process
Go to t-code SE11 and enter table name as YTR_AUTH_CHECK and click on create button ( F5) as below
Step 1:
Maintain the table "Delivery & Maintenance " data as below
Set the technical settings as below
Create domain for ROLE as below
Set the range values as below
Create data element for ROLE as below
Create the table fields as below
Now, we need to generate the table maintenance for table YTR_AUTH_CHECK
Go to menu : Utilities---> Table Maintenance Generator as below
Choose the authrozation group and create a function group and click on create button as below
Go to t-code SM30 and choose the maintenance view YTR_AUTH_CHECK and Maintain the table entries as below
Go to t-code se24, create the class YCL_RK_AUTHORIZATIONS & enter the super class CL_WD_COMPONENT_ASSISTANCE as below
Create global constants for each role as below
Create a method GET_USER_DATA as below
Create the method parameter ES_RESULT as below
Write the below logic to get user data from table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |