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

Validation in Migo for the combination of Plant and Production order

Dear SAP Experts,

In MIGO I have to put validation on Production order i.e. for any plant no Production order which are not there in that plant should be posted . So how to put this validation . Do I need to put Coding in the enhancement Spot or there is any other way out. I also need to know if I put Plant in 'where' tab and order in 'account assignment' tab and debug it , so in which structure or table I can find this plant and order..I have tried AUFK but its not there...

Regards,

Biraj

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 21, 2012 at 11:37 AM

    You need to check the Entries in AFPO table by passing Plant and Material Combination.

    If you find the Production order then ask abaper to input no message if it doesnt exist then ask him to create a Error message.

    Use BAPI-GOODSMVT_CREATE for creating Error message.

    Thanks,

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      You can use BADI for the above requirement of yours.

      BADI Name: MB_CHECK_LINE_BADI

      In this BADI you will find the Plant & the order no. in the internal table IS_MSEG in the field IS_MSEG-WERKS & IS_MSEG-AUFNR.

      Regards

      Swapnil.

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.