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

authority_check

Former Member
0 Likes
715

Dear Friends,

In my function module i need to call the function 'authority_check' I want to know how to pass the parrameter to this function module. I have an object name 'M_MATE_MAT' and username field 'BEGRU' and value.

It is getting error M_MATE_MAT is unknown. pls tell me whether i need to declare object anywhere and if the FM returns exception is 1 i need to pass a value to parameter returncode = 0.

pls tell me how to do this

Dear Friends,

In my function module i need to call the function 'authority_check' I want to know how to pass the parrameter to this function module. I have an object name 'M_MATE_MAT' and username field 'BEGRU' and value.

It is getting error M_MATE_MAT is unknown. pls tell me whether i need to declare object anywhere and if the FM returns exception is 1 i need to pass a value to parameter returncode = 0.

pls tell me how to do this

4 REPLIES 4
Read only

Former Member
0 Likes
623

Hi

Refer this thread..

Rgds,

prakash

Read only

Former Member
0 Likes
623

Hello,

Please look into the below code

call function 'AUTHORITY_CHECK' " Jobs einplanen

exporting field1 = 'ZZDISPLAY'

field2 = 'ZZSELECT'

object = 'Z_REPORT01'

user = sy-uname

value1 = '01'

value2 = '02'

exceptions user_is_authorized = 1

others = 99.

Reward if helps.

Thanks,

krishnakumar

Read only

Former Member
Read only

Lakshmant1
Active Contributor
0 Likes
623

Hi Karthik,

Have a look at demo program DEMO_AUTHORITY_CHECK.

Hope this helps

Thanks

Lakshman