We have the following situation:
Plant A procures and sells material X, and maintains PIR for that material
Plant B sell X using drop shipment sale orders, where the shipping is from plant A. Therefore, the relevant PIR is maintained in plan A, where it will be consumed by the drop ship SOs. But occasionally, without any specific rules, shipping is done from B. In this case, B orders the material from A using STO.
In this case, the STO should consume the forecast in plant A. (We can used the standard functionality of SAP for that)
Plant C sells X and ships it from its own facility, and maintains its own PIR for that. Plant C buys the material from A using STO (a special procurement key 40 is maintained for the planning the material in plant C).
In this case, the STO should NOT consume the PIR in A, as it is already maintained and consumed in C. The demand of the STO in A should be added to the PIR in A for proper planning.
How can accommodate for this situation, as I know that the standard solution (Mixed MRP = 1 in material X/Plant A and Consumption indicator 3 in its PIR) will cause the unwanted consumption by all STOs including from plant C.
On the other hand, the BadI - MD_PIR_FLEX_CONS is not very helpful as it does not provide any information about the MRP element except the DELKZ data U1, U2 etc.
Can you think of any workaround?
Thanks in Advance.