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

authorisation objects

dip_kumar
Explorer
0 Likes
1,156

Hi ,

I have created an authorization object for company code (BUKRS).... i have created a new class for it and inthe fields column i have entered BUKRS and ACTVT with permitted activities .....after executing the program its showing an error msg that u r not authorized for z_bspl ...

SELECT * FROM t001 WHERE bukrs IN bukreis.

AUTHORITY-CHECK OBJECT 'Z_BSPL'

ID 'BUKRS' FIELD t001-bukrs

ID 'ACTVT' FIELD '03'.

IF sy-subrc NE 0.

RAISE no_authorization.

ENDIF.

ENDSELECT.

8 REPLIES 8
Read only

Former Member
0 Likes
1,107

It's showing or not showing?

What's the error/issue?

--

Reddy

Read only

dip_kumar
Explorer
0 Likes
1,107

after entering input to the selection ...once i press F8 a blank scrren comes with an error message ""Document splitting is active for company code You are not authorized for z_bspl selected. Document splitting is not compatible with the adjustment""

Read only

Former Member
0 Likes
1,107

Is that object is assigned to your profile as you have created it newly.

Please check.

Regds,

Anil.

Read only

dip_kumar
Explorer
0 Likes
1,107

i ahve created new object for it

Read only

dip_kumar
Explorer
0 Likes
1,107

i ahve created new object for it

Read only

dip_kumar
Explorer
0 Likes
1,107

i ahve created new object for it

Read only

Former Member
0 Likes
1,107

Have you got that new authorisation object assigned to your username?

Read only

Former Member
0 Likes
1,107

Hi,

You might not have authorisation for newly created authorisation object .

why don't you use standard SAP authorisation aobject for same , you can find it in SU21.

One more suggestion do not use SELECT...ENDSELECT insatd used loop of fecthed internal table.

Ashutosh Tripathi.