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

Query in passing value to a function module

Former Member
0 Likes
640

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Change ur User Profile Settings to Decimal Notation And Relogin to the System.

Hope it works

4 REPLIES 4
Read only

Former Member
0 Likes
573

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!

Read only

Former Member
0 Likes
573

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

Read only

Former Member
0 Likes
574

Change ur User Profile Settings to Decimal Notation And Relogin to the System.

Hope it works

Read only

Former Member
0 Likes
573

Solved...Many thanks to all