Requirement:
Auto populate Buyer Group from Purchase Requisition to Purchase Order during automatic PO creation through batch job in D365FO.
Scenario:
-
BuyerGroup field added in PurchTable.
-
Purchase Requisition goes through RFQ process.
-
RFQ is accepted/rejected.
-
After requisition approval, batch job creates Purchase Order automatically.
-
Requirement is to transfer BuyerGroup value from Purchase Requisition to PurchTable during PO creation.
Analysis:
Batch class PurchReqPurchaseOrderGenerationBatch only creates release strategy batch tasks and does not directly insert PurchTable records.
The actual PurchTable preparation happens in class:
PurchAutoCreate_PurchReq
Standard method identified:
public void createPurchTable()
{
purchTable.setPriceDiscChangePolicy(PriceDiscSystemSource::PurchaseReq);
purchTable.initInvoiceAccount();
this.copyPurchReqDeliveryDateToPurchTable();
purchTable.calculateRequestedShipAndReceiptDate(
dateNull(),
purchTable.DeliveryDate,
SchedDirection::Backward);
purchTable.SkipShipReceiptDateCalculation = true;
super();
}
Question:
What is the best practice to populate custom BuyerGroup field into PurchTable during automatic PR to PO creation?
-
Should the value be assigned before
super()? -
Or should CoC extension update PurchTable after creation?
-
Has anyone implemented similar customization in PR → RFQ → PO auto generation flow?

Report
All responses (
Answers (