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

authorization object

Former Member
0 Likes
486

how do define authorization object for OR contion

like

AUTHORITY-CHECK OBJECT 'P_ORGIN' ID 'AUTHC' field 'R' ID 'INFTY' field '0002'

or id 'INFTY' field '0003' .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
436

As far as I know you can't define like that. But you can achive it by following the way below;


AUTHORITY-CHECK OBJECT 'P_ORGIN' ID 'AUTHC' field 'R' ID 'INFTY' field '0002' .
if sy-subrc ne 0.
  AUTHORITY-CHECK OBJECT 'P_ORGIN' ID 'AUTHC' field 'R' ID 'INFTY' field '0003' .
  if sy-subrc ne 0.
    error message 'You're not authorized....'.
  endif.
endif.

3 REPLIES 3
Read only

Subhankar
Active Contributor
0 Likes
436

Hi,

For reading value will be 0003, for change it will be 0002 and for create 0001.

thanks

Subhankar

Read only

Former Member
0 Likes
437

As far as I know you can't define like that. But you can achive it by following the way below;


AUTHORITY-CHECK OBJECT 'P_ORGIN' ID 'AUTHC' field 'R' ID 'INFTY' field '0002' .
if sy-subrc ne 0.
  AUTHORITY-CHECK OBJECT 'P_ORGIN' ID 'AUTHC' field 'R' ID 'INFTY' field '0003' .
  if sy-subrc ne 0.
    error message 'You're not authorized....'.
  endif.
endif.

Read only

0 Likes
436

thanks

Edited by: rajcool on Apr 20, 2010 3:53 PM