How MRP will checks Sales order
We have done enhancement for sales order release & its working fine. But what client wants that unreleased sales order should not take part in MRP Run.we followed Badi MD_CHANGE_MRP_DATA , METHOD: CHANGE_MDPSX_VBBE . But its not working .Is their any other option ?
I advise you to use the user status of sales order to control the demand whether is in the MD04. The default status is ‘1.0’, sales order will be not in MD04, If release the sales order , the user status is changed as ‘2.0’ ,it displays in MD04 , then run MRP.
You can create a status profile for the sales order.
Did you activate the MRP optimizations for HANA? If so, this BAdI will not be called. You can use MD_ADD_ELEMENTS instead.
If you are not using this MRP optimizations for HANA, then the BAdI MD_CHANGE_MRP_DATA should work. This blog shows an example of how to use this BAdI: https://blogs.sap.com/2014/10/01/making-an-element-not-relevant-to-mrp-using-badi-mdchangemrpdata/