Skip to Content

Authorization check on creating measuring point

Hi All,

I want to restrict users to create,change,display Measuring Points and Measurement Documents based on the maintenance plant related to the Equipment/Functional Location.

I have used User exit IMRC0005 for the same. It is triggering on change,display of MP and create,change,display MDOC but not at Measuring Point Create.

We have checked for the exit IMRC0001 but no luck.

Can anybody help me on how to restrict creation of MP based on Equi/FLOC Maintenance Plant.

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 13, 2017 at 05:49 PM

    We did implicit enhancement in FM 'DFPS_IMPT3_AUTHORITY_PROC_BADI' and implemented the code.

    Now I am able to restrict IK01 as well based on maintenance plant.

    Regards,

    Asheesh Aswal

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 09, 2017 at 08:47 AM
    • You are right. It is not working for IK01 and seems like product error. You may write to OSS.
    • IMRC0001 can not work for this because it triggers after committ, means we can not use this to stop Saving of MPt or MDoc.
    • Alternatively you can explore some Implicit Enhancement point in program SAPLIMR0 (IK01).
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 09, 2017 at 09:25 AM

    Here is solution through Implicit Enhancement . See the picture below.

    Means you need to use the Implicit Enhancement point at Line no.4 of Include LIMR0F6W .

    The sample code shown above is based on a Ztable namely ZTABL where SAP userId list is maintained who can operate IK01.

    When any User not in the list tries to run IK01 the following screen would appear and stops him/her from using IK01.

    Note:

    You can use AUTHORITY-CHECK OBJECT coding also as an alternative to Ztable with suitable Authorization Object.

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 12, 2017 at 04:09 AM

    Thanks Jogeswara,

    We tried this include but it is triggering at very beginning of IK01 (before initial screen). At this point we are not getting the equipment details.

    We need to restrict based on Equipment's Maintenance Plant. Is there any other way, we can achieve this.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded