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 creation

Former Member
0 Likes
591

Hi experts,

i created the authorization class called zloc in this class i created the authorization object callod zlockobj with field ACTVT and value '02'.Now i used this object in the program but i am getting sy-subrc = 12.please tell me what ihave to do to remove this error.i know that we will get this error when object does not exist in the list.

Thanx in advance.

Giri

4 REPLIES 4
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
562

Hi,

You need to include this authorization object in the users authorization profile.

Regards,

Sesh

Read only

Former Member
0 Likes
562

Hi Giri,

You said, created the authorization object 'Zlockobj' with field ACTVT. That is fine but for this i think you have to ceate one more entry to this object for the any field to which you want this object to be applied.

EX :

  • Authority check for company code

AUTHORITY-CHECK OBJECT 'V_KNA1_VKO'

ID 'ACTVT' FIELD '03'

ID 'BUKRS' FIELD p_BUKRS.

Regards,

Satya

Read only

Former Member
0 Likes
562

hi

good

did you debug your report, did you check what is the why the value of sy-subrc become 0, try to check your select statement , wheather it is getting the data properly or not. if not change the select query so the the sy-subrc value would be 0, so that you ll get the correct result.

thanks

mrutyun^

Read only

0 Likes
562

Yes i checked it in the Debug mode.There only found that sy-subrc = 12.please help me.