Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member208398
Active Contributor

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.

REPORT  ZMD04.

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.

Effects:

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

Thanks!

1 Comment
Labels in this area