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

Using FM authority_check

Former Member
0 Likes
1,211

Dear all,

I have a requirement where user can only view the Purchase Requsition ( in my java application ) which are releasable by them. I am using a customized FM which call the standard FM BAPI_REQUISITION_GETDETAIL. I was told by the MM consultant that i can use this authorization object "M_EINK_FRG ". From wat i've found, this M_EINK_FRG need is having 2 fields, release group and release code. I am abit confusing bout this..what shd i pass in for this 2 fields if i call the FM 'AUTHORITY_CHECK' ?

I suppose each user is having diff release group and release code? how does it actually works...thank you.

Regards,

Joan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
829

Hi,

You need to paas the release group and code of the perticular PO which teh user is trying to Open.

Then system will cross check this (PO rel group and rel code ) agains the one's asiigned or authorized to the user. and the system will given result sy-subrc = 0 if the user has the authority for the PO's relase group and code.

Regards,

Prakash Pandey

Edited by: Prakash Pandey on Feb 25, 2009 11:09 AM

4 REPLIES 4
Read only

Former Member
0 Likes
830

Hi,

You need to paas the release group and code of the perticular PO which teh user is trying to Open.

Then system will cross check this (PO rel group and rel code ) agains the one's asiigned or authorized to the user. and the system will given result sy-subrc = 0 if the user has the authority for the PO's relase group and code.

Regards,

Prakash Pandey

Edited by: Prakash Pandey on Feb 25, 2009 11:09 AM

Read only

0 Likes
829

Hi Prakash Pandey,

thank you for ur explanation.Do you have any idea where i can check about the release group and release code being assigned to the user? thank you.

*points awarded

Read only

0 Likes
829

Hi,

the authority objects are assigned to the user through Roles create in Tcode PFCG.

1st go to tcode SU01 and check which all roles are assigned to your user. Then check individually in all the roles whether the object M_EINK_FRG is included in the role or not. You will see the respective values there.

Regards,

Prakash Pandey

Read only

0 Likes
829

Thank you!!