cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization access on table

Former Member
0 Kudos

Hi experts,

This is fayaz

i am having a table in view now my requirement is based on the role he has the read or write permissions on the table

will u please help me how to achieve this requirement

Guide me through steps if possible try to provide documentation on this

Thanks in advance,

Fayaz Shaik.

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

search ume permissions

Former Member
0 Kudos

Hi Fayaz,

From where u want to read that table (From SAP or database) ?

Or u want to read it using any t. code.

Regards

Ganesh Datt Tiwari

Former Member
0 Kudos

in my webdynpro java application i have a table in my view based on the role he has the access to read or write permissions on the table

in my context i have 2 roles role1,role2 if the user belongs to role1 he has both read ,write operations on the table,if the user belogs to role2 he has only read access.

How to achieve this

Thanks,

Fayaz Shaik

former_member207744
Contributor
0 Kudos

Create boolean attribute in component controller of WDJ.

By using sap security api, you can get logged in user role.

http://help.sap.com/javadocs/nwce/current/se/com.sap.se/com/sap/security/api/IRoleFactory.html

http://scn.sap.com/message/2821196

Compare the logged in user role with the context role.

If its satisfies then set the boolean attribute to true.

Assign the created boolean attribute to ivew2.

Rest of the things WDJ will take care.