‎2009 Mar 13 9:57 AM
Hi All ,
I have a small query in the below code about the way i have passed value into a function module :
CALL FUNCTION 'AUTHORITY_CHECK'
EXPORTING
USER = SY-UNAME
OBJECT = 'E_INVOICE'
FIELD1 = 'BEGRU'
VALUE1 = ' '
FIELD2 = 'BUKRS'
VALUE2 = '$BUKRS'
FIELD3 = 'ISU_ACTIVT'
VALUE3 = '1,2,5,6'
FIELD4 = 'VKTYP_KK'
VALUE4 = ' '
EXCEPTIONS
USER_DONT_EXIST = 1
USER_IS_AUTHORIZED = 2
USER_NOT_AUTHORIZED = 3
USER_IS_LOCKED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE 'User doesnt have sufficient authorizations' TYPE 'E'.
EXIT.
The query is on the field VALUE3 = '1,2,5,6' , is the format correct. If this is not right could someone please suggest the correct approach.
thanks
‎2009 Mar 13 10:15 AM
Change ur User Profile Settings to Decimal Notation And Relogin to the System.
Hope it works
‎2009 Mar 13 10:11 AM
Hi Balaji,
as that is parameter you can use at a time only one value..
if you check in that FM we have other parameters VALUE1 to VALUE10..
why don't you use those...
Thanks!
‎2009 Mar 13 10:15 AM
Hi Balaji,
Yes, the way you transfer parameters is correct.
You can try for yourself by going to SE37, write AUTHORITY_CHECK and press F8 (test). By inserting these parameters it should write you USER_IS_AUTHORIZED or USER_NOT_AUTHORIZED, depending on the case.
Best regards,
George
‎2009 Mar 13 10:15 AM
Change ur User Profile Settings to Decimal Notation And Relogin to the System.
Hope it works
‎2009 Mar 13 12:34 PM