Here the M-order number is displayed if a M-order has been created for this stock order row. The P-order number created for this stock order row can also be displayed.
In order to be able to display the M-order number and the P-order number, the settings Linked requirement/supply planning for M-part (Lot-for-lot) and Linked requirement/supply planning for P-part (Lot-for-lot) must be activated under the heading Requirements planning under the Inventory tab in the Settings procedure. The lot sizing rule of the part must also be Lot-for-lot.
In order to get this correct, the purchase orders must be generated from the Requirement Calculation or Run Netting procedures.