‎2010 May 21 11:54 AM
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.
‎2010 May 21 11:57 AM
‎2010 May 21 12:00 PM
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""
‎2010 May 21 12:01 PM
Is that object is assigned to your profile as you have created it newly.
Please check.
Regds,
Anil.
‎2010 May 21 12:12 PM
‎2010 May 21 12:12 PM
‎2010 May 21 12:12 PM
‎2010 May 23 11:36 AM
Have you got that new authorisation object assigned to your username?
‎2010 May 23 12:49 PM
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.