Skip to Content
Author's profile photo Rajen Madan

MD04 Access in Display Mode

Introduction:

This document is more of technical nature. It is very easy to implement and use.

It is sometimes required to give some users access to the MD04, but only in display mode. The requirement is to provide them the data of MD04, the period grouping reports etc. but the organization does not want to make them  able to change anything from MD04 stock requirement list.

Background:

It all started from this thread in SCN:

http://scn.sap.com/thread/3376609

and applied this to solve issues, for example:

http://scn.sap.com/thread/3410639

Development Details:

To make the MD04 list in display mode, thus we need to set the value of AM61R-ANMOD value as ‘X’ before calling the transaction MD04.

Steps:

Need to develop a Z t-code and a Z-program to achieve the same.

1. Go to SE38

2. Give a program name ZMD04.

3. Click on ‘create’.

4. The following piece of code does the trick, the process is same as followed in CM02 transaction.

CM02 path to access MD04, which is in display mode in standard.

1.JPG

REPORT  ZMD04.

TABLES : AM61R.

AM61RANMOD = ‘X’.

EXPORT AM61RANMOD TO MEMORY ID ‘MD04_ANMOD’.

CALL TRANSACTION ‘MD04’.

5. Finally, we assign this program to a custom t-code ZMD04 in SE93.

Effects:

In ZMD04, the change button is grayed out; whereas the change element button disappears for corresponding MRP elements.

1.JPG

Thanks!

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Laura Calvel
      Laura Calvel

      Thanks Rajen for the info. What I do not understand is in which scenario this would be necessary. I mean that if one user doesn't have authorization to for example ME22N, although the change button appears, you cannot access that transaction from MD04, a message appears.  The same with CO02 o ME52N Regards.