Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

re : authorizations

Former Member
0 Likes
298

hi abapers,

i have designed a form for registration and when a user gets registered the details gets stored in database, now my problem is i should give authorizations so that one can modify their details when they visit the next time also.

can anyone provide me examples for that ?

Thanks & Regards,

Syam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
281

Hi Friend

1.Create Authorization object

2.Assigning Activity field

3.Create User Role

4.Assigning that Auth. object to dat

5.u can select wot u want in Act Field.

in your program you can check it like follows

{CODE)

AUTHORITY-CHECK OBJECT 'Z_USER_AUT'

ID 'ACTVT' FIELD '04'

ID 'ACTVT' FIELD '03'

ID 'ACTVT' FIELD '02'

ID 'ACTVT' FIELD '01'.

IF SY-SUBRC = 0.

V_AUTH = 'SUPER'.

ENDIF.

{CODE}

Rewardss if useful

1 REPLY 1
Read only

Former Member
0 Likes
282

Hi Friend

1.Create Authorization object

2.Assigning Activity field

3.Create User Role

4.Assigning that Auth. object to dat

5.u can select wot u want in Act Field.

in your program you can check it like follows

{CODE)

AUTHORITY-CHECK OBJECT 'Z_USER_AUT'

ID 'ACTVT' FIELD '04'

ID 'ACTVT' FIELD '03'

ID 'ACTVT' FIELD '02'

ID 'ACTVT' FIELD '01'.

IF SY-SUBRC = 0.

V_AUTH = 'SUPER'.

ENDIF.

{CODE}

Rewardss if useful