MD04 Access in Display Mode
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.
It all started from this thread in SCN:
and applied this to solve issues, for example:
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.
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.
TABLES : AM61R.
AM61R–ANMOD = ‘X’.
EXPORT AM61R–ANMOD TO MEMORY ID ‘MD04_ANMOD’.
CALL TRANSACTION ‘MD04’.
5. Finally, we assign this program to a custom t-code ZMD04 in SE93.
In ZMD04, the change button is grayed out; whereas the change element button disappears for corresponding MRP elements.