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

Badi/exit while saving Material document in MIGO

Hello all,

I want to restrict before material document get generated in MIGO transaction.

I searched Badi and exits but they are allowing to post the document.

I found badi MB_DOCUMENT_BADI but it is not allowing to put error messagess.

It is giving message type 'X' dump.

Thanks,

Paresh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 18, 2010 at 06:19 AM

    Hi,

    Check the badi MB_MIGO_BADI or Enhancement :MB_CF001.

    Regards

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Mean while you can try to find a suitable BADI.

      Befor clicking on 'SAVE' just put break point in the below class.

      Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for u2018CL_EXITHANDLER=>GET_INSTANCEu2019.

      Make sure the radio button u201CIn main programu201D is checked. A list of all the programs with call to the BADIu2019s will be listed.

      The export parameter u2018EXIT_NAMEu2019 for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter u2018INSTANCEu2019 will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.

      I think the enhancement should work:MB_CF001

      See it's documentatyion in smod.:

      The enhancement MB_CF001 includes a function module that is called up

      immediately before the COMMIT WORK when a goods movement is posted.

      --

      Reddy

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2010 at 06:49 AM

    Hi check these badis

    MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables

    MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Document

    MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF

    MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (SAP Internal)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2011 at 01:26 PM

    have you tried to block creation of consecutive FI document with BTE 00001025 Function module SAMPLE_INTERFACE_00001025 documentation. If you raise a type 'E' message in this BTE this will rollback both FI and MM document and forbid posting of MM document :!

    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.