Skip to Content
0

ME51n/ME52n/ ME54n - To Make non-editable field (PR Closed) for few users

Nov 01, 2017 at 12:38 PM

145

avatar image
Former Member

Our business requirement is to allow only two users to close or unclose , (PR closed checkbox in me51n /me52n /me54n) . Other than two users when they open the PR , this field should be non-editable in any t-code. Please help us and give us the steps to achieve this in ABAP through EXIT / BADI or other approach if any. Thanks in advance.

request.jpg (112.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Tammy Powlas
Nov 01, 2017 at 12:41 PM
0

Before looking at code, why not limit this to SAP security authorizations? You can run an STAUTHTRACE and see which objects this is using.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for the suggestion.

After run the trace the following result I got but could not understand how to catch the field PR Closed (check box indicator) and its object name.

request.jpg (246.6 kB)
0

Unfortunately, looking at this thread, https://archive.sap.com/discussions/thread/1979417 - it is not possible. Another option is to look at custom security authorizations, but I am not sure.

0
Dibyendu Patra Nov 01, 2017 at 02:46 PM
0

It is possible without any enhancement. You need to use the parameter EFB for users. Before that, you need to set up OMET transaction as per your requirement. Use a different Field Selection Control for Purchase Requisition for those two users where the closed indicator will be optional and and use another Field Selection for all other users where the closed indicator will be hidden. you can check the blog https://blogs.sap.com/2015/01/19/a-brief-interpretation-and-faq-about-field-selection-and-screen-layout-used-in-mm-module/ option 6. Function Authorization for field selection

Share
10 |10000 characters needed characters left characters exceeded