cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide Amount in LC field for specific users in MB51?

moazzam_ali
Active Contributor
0 Kudos

Dear Experts

My requirement is to hide Amount in LC field from MB51 for specific users. If I do this from IMG it will be hidden for all users but I want to do this for specific users. Can we control this with some authorization object? I have tried with creating new authorization taking field DMBTR  in it but its not working until we include this object in Report's coding and as You know this is standard report so we cant do this.

Any solution or suggestion for this will be highly appreciated.

Remember we cannot hide this from IMG. I need user specific solution.

Accepted Solutions (1)

Accepted Solutions (1)

anna_hannon
Active Participant
0 Kudos

By standard MB51 does not have an authorization check to restrict it.

You would need a modification to implement a custom check to meet these requirements. Note 773003 provided a modification proposal for branching into MIGO so you would have develop something similar with a custom authorisation object for example.

The standard checks are exectuted below on objects 'M_MSEG_WMB' 'M_MSEG_LGO' and 'F_BKPF_BUK'

RM07DOCS -> form process_list
...
* Authorization for material documents plant level
    CHECK cl_mmim_auth=>check( i_object = 'M_MSEG_WMB'
                               i_value1 = list-werks ) IS INITIAL.
...
* Authorization for storage location
    CHECK cl_mmim_auth=>check( i_object = 'M_MSEG_LGO'
                               i_value1 = list-werks
                               i_value2 = list-lgort
                               i_value3 = list-bwart ) IS INITIAL.
...
* Authorization for posting values company code level
     READ TABLE organ WITH KEY werks = list-werks BINARY SEARCH.
ENHANCEMENT-SECTION     RM07DOCS_06 SPOTS ES_RM07DOCS.
     IF NOT cl_mmim_auth=>check(
                       i_object = 'F_BKPF_BUK'

------------------------------------------------------------------------------------------------------------------

See about an authorisation check on object F_BKPF_BUK in SU24

The inventory management uses this authorization object in SOME transactions to control the display of material prices and values per company code / user.

Answers (5)

Answers (5)

moazzam_ali
Active Contributor
0 Kudos

I have done this with the help of my ABAPER. Following screen is its solution for future reference.

moazzam_ali
Active Contributor
0 Kudos

These objects are not working in MB51. Is there some other solution or some one has tried or done this before in any standard ALV report?

moazzam_ali
Active Contributor
0 Kudos

Sorry i missed to mention it in my first post. I have already tried with SHD0 but its also not working. No pup up appear in MB51 when I try to create screen variant.

Former Member
0 Kudos

Develop Screen varient and assign it to user groups

Former Member
0 Kudos

Have you tried developing a screen variant for the transaction in SHD0 and assigning it to user groups?

/Manoj