2006 Jul 18 8:00 AM
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
2006 Jul 18 8:05 AM
2006 Jul 18 8:05 AM
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
2006 Jul 18 8:24 AM
Hi,
refer the link,
http://help.sap.com/saphelp_pserv472/helpdata/en/22/0425d3488911d189490000e829fbbd/frameset.htm
Regards,
Azaz Ali.
2006 Jul 18 8:29 AM
Hi Karthik,
Have a look at demo program DEMO_AUTHORITY_CHECK.
Hope this helps
Thanks
Lakshman
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |