Skip to Content
author's profile photo Former Member
Former Member

Dear Abapers,

In transaction MM02, under additional data, I want to disable the fields in the document data tab without affecting other tabs.There is a table control in that tab and I want to disable it making it only to display. Also, if I try to change the document and save, an error should be displayed saying this document cannot be changed.

I tried to find the badi's to do this and was helpless. Please suggest me some alternatives.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 31, 2013 at 07:38 AM

    Hello Tharun,

    if you wants to do before save you can use this badi.


    Please elaborate your queries , that which type of data you wants to check in MM02.

    And why not you are using SE24 , to know which BADI you need, if you don't know

    the use of SE24 to find required badi, then please read the document first, then revert me.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Tharun,

      for Finding a required BADI, we use SE24 (Class Builder).

      Follow these steps for finding required BADI for your use.

      1. Go to SE24, put CL_EXITHANDLER in object type filled.

      2. Press Display button.

      3. A new screen will get opened, in this screen you will find a method named as


      4. Double click the method, you will be on next screen, there is a method named as

      CALL METHOD cl_exithandler=>get_class_name_by_interface

      put a BREAK POINT on it

      5. Run the standard transaction for which you have a requirement for finding BADI,

      Double click on right hand side of exit_name, on successive pressing F8

      you will get different BADI name for different screen for a standard transaction.

      Do as mentioned, and find the required BADI for your use.

      (While debugging you will get all BADI details)

      CALL METHOD cl_exithandler=>get_class_name_by_interface


      instance = instance


      class_name = class_name


      exit_name = exit_name. (double click here)

  • Posted on Dec 31, 2013 at 09:24 AM

    You should use method CHECK_DATA of BAdI BADI_MATERIAL_CHECK, but the error message may be raised a little late, and user will not be very happy to have wasted his time on this material reference. Nevertheless use this method which will always been called (e.g. from BAPI)

    So you could also add your own implementation in an implicit ES of one of the PAI module of initial screen of transaction (like module IS_ENHANCEMENT_02 in include LMGMMIIS) so user would immediately be informed. (Don't forget to check t130m-aktyp and ok_code to not raise unecessary messages, e.g. MM03 transaction or function code not relative to maintaining data)



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 31, 2013 at 07:40 AM

    i guess this can be achieved using configuration of field selection in material master check with the functional people...



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.