Generated by Jive on 2014-07-16+02:001 SAP ERP Manufacturing - Production Planning (SAP PP): BAdIs for MRP Posted by Caetano Almeida Aug 12, 2013 MRP is a very flexible tool with lots of customizing settings and master data settings, however, sometimes is not possible to achieve some business requirements using only standard customizing and master data settings. For that reason, some BAdIs were introduced on the standard programs, to allow the customers to use a custom logic on the standard MRP. If you are facing any problem with a BAdI implementation, take a look on note 2012620 where the frequent issues with BAdIs on MRP are described. Below you will find a list of the most important and useful BAdIs on MRP: • MD_CHANGE_MRP_DATA: In my opinion, it is the most important BAdI on MRP. It allows you to change any MRP element during the MRP or on MD04 transaction. The most common use is to make an MRP element not relevant for MRP but it can be also used for another changes, such as changes in quantities, for example. • MD_SUBCONT_LOGIC: This BAdI is used to activate the old subcontracting logic which was used until release release 3.1I. All subcontracting stocks and requirements are managed in the net segment, which means that there are no separate subcontracting segments. See also note 1927160. • MD_ADD_ELEMENTS: With this BAdI is possible to include a new user-defined MRP element. • MD_DISPLAY_ELEMENT: Allows you to change the display of an MRP element. • MD_MRP_PARAMETERS: With this BAdI is possible to change the settings from material master, customizing or even quota arrangement for an specific material, before the MRP run or in MD04, for example. • MD_ADD_COL_EZPS: With this BAdI it's possible to include additional columns on the MRP evaluation transactions (MD04, for example). • MD_PURREQ_CHANGE and MD_PLDORD_CHANGE: Can be used for fill and change fields of purchase requisitions and planned orders created, changed or deleted during the MRP run. • MD_PURREQ_POST and MD_PLDORD_POST: Can be used for additional actions after the purchase requisition and planned order changes, such as saving information on a custom table or a workflos. Should not be used for changing the order itself. • MD_MODIFY_SOURCE: This BAdi allows you to define your own logic for the source determination during the MRP run. • MD_MODIFY_PRODVERS: This BAdi allows you to define your own logic for the production version selection. • MD_PLDORD_SCHEDULING: With this BAdI you can change the scheduling parameters for planned orders before scheduling is called. • MD_STOCK_TRANSFER: This BAdI allows you to change the requirement dates of the requirements of stock transfer procurement proposal in the issuing plant. • MD_EXT_SUP: On the standard system, there is no determination of the issuing storage location for stock transfers, however, it is possible to create your own logic to select the issuing storage location for stock transfers using this BAdI. You can find more information about MD_EXT_SUP on note 1783556 and on wiki http://wiki.scn.sap.com/wiki/x/qgQbF SAP ERP Manufacturing - Production Planning (SAP PP): BAdIs for MRP Generated by Jive on 2014-07-16+02:00 2 • MD_CHANGE_CALENDAR: This BAdI can be used to use a different calendar for the safety time and the evaluations of the range of coverage data, instead of the factory calendar. • MD_EXCLUDE_MATERIAL: Can be used to show a tab with "Additional Selections" on the initial screen of transactions MD06 and MD07 where you can add your own fields to restrict the selection. • MD_LAST_LOT_EXACT: Allows you to use your own logic to calculat the last lot on a sales or project individual stocks. • MD_MRP_LIST: With this BAdI you can process data from the MRP list of a material during posting in the planning run. It allows you to evaluate the MRP data immediately after the planning run and trigger follow-up actions, however, you cannot change the MRP data. • MD_INTERACT_PLANNING: With this BAdI it's possible to control is users are allowed to change MRP elements in the results display of the planning transactions for a material (such as MD02). You must be very careful when implementing any of these BAdIs, since generally there is not check after the BAdI execution and it is possible to make deep changes on the MRP standard logic. In order to find a complete list of the BAdIs available for MRP, just look for BAdIs starting with MD on transaction SE18. It is possible to know if a BAdI is active by the indicator "BAdI Active" on transactions MD04 and MD05. You can also find the complete list of available MRP BAdIs and more information about each BAdI on SPRO, on the following path: - Production - Material Requirements Planning - Business Add-Ins for Requirements Planning SAP ERP Manufacturing - Production Planning (SAP PP): BAdIs for MRP Generated by Jive on 2014-07-16+02:00 3 BR Caetano 3528 Views Tags: badi, abap, material, mm, mrp, material_management, md04, production_planning, enterprise_resource_planning, er, md01, md02, md03, material_requirements_planning, mdbt, consumption_based_planning, sap_erp_manufacturing_production_planning Caetano Almeida in response to Vishal Sood on page 3 Dec 24, 2013 1:33 PM Thank you all for the feedback! Vishal Sood Dec 13, 2013 7:21 PM Hello Caetano, SAP ERP Manufacturing - Production Planning (SAP PP): BAdIs for MRP Generated by Jive on 2014-07-16+02:00 4 Helpful !!!! Thanks and Regards Aditya S Dec 13, 2013 3:45 PM Hello Caetano, Great compilation of MRP Related BADIs. Thanks for sharing the same to all. George Ressos Dec 13, 2013 11:06 AM Very good summazization, thank you Raphael da Silva Nov 29, 2013 6:03 PM Hi Caetano, Thanks for summarizing this important information! Best regards, Raphael Mandar Narkar Sep 17, 2013 3:23 PM Hi Almeda, It will be great if you can provide two three simple business examples on each of the BADi May be youcan write another blog with examples elaborating the same. Thanks for sharing this too. Regards, Mandar. Ritesh Dube Sep 3, 2013 9:29 AM Caetano Almeida, Good Blog, Thanks for sharing. Ritesh SAP ERP Manufacturing - Production Planning (SAP PP): BAdIs for MRP Generated by Jive on 2014-07-16+02:00 5 Sharat Sugur Aug 27, 2013 7:12 PM Good blog, this list really helps. Thank you. Saravanakumar K Aug 13, 2013 12:45 AM Thanks for sharing Caetano Almeida in response to Jelena Perfiljeva on page 5 Aug 12, 2013 11:15 PM ABAP tag added. Thaks for the tip. Jelena Perfiljeva in response to Caetano Almeida on page 5 Aug 12, 2013 11:04 PM Not BADI - ABAP. If you tag it with ABAP, it will also appear in the ABAP space on SCN. Caetano Almeida in response to Jelena Perfiljeva on page 5 Aug 12, 2013 10:59 PM Hello Jelena The BAdI tag was already included on the blog. BR Caetano Jelena Perfiljeva Aug 12, 2013 7:38 PM Please add ABAP tag, so that it shows up in the ABAP space too. Thank you!