One PO with multiple lines on different dates

I have a question: When running the planning worksheets in BC for the MRP using the demand forecast, and then accepting the action messages for creating new PO’s - the PO is created successfully but filled with different SKUs, different qty’s, and different receipt dates all in one PO (see screenshot below).
The demand forecast is created by the sales item type and not component.

How do I run the MRP with the demand forecast and create only one PO with one line, and not one PO with different dates? I need a PO for each date.

I believe this would require a modification. I somewhat recall doing something along these lines a year or so ago. If I can track down my notes from that, I’ll try to post more information here.

That would be great if you can find your notes!

Out-of-the-box there is nothing that auto-splits the POs into single line Purchase Orders.

However, if you filter your results by “Order Date” it will give you what needs to be created today or this week (depending on how you filter). This way you aren’t creating a PO for six months out and the Vendor ignores the date and ships the product early.

P.S. If you haven’t noticed, the system is generating POs with multiple Locations on the same PO, so be sure to filter by Location prior to Carrying Out Actions.

Best Regards,
Ben Baxter
Accent Software Inc

The process is fairly simple. You need to sort the requisition lines to group them my the fields on which you want to split the purchase orders. Then keep track of you “Break Field” values. Triggering a new PO when those values change.

The events you need are in Codeunit “Req. Wksh.-Make Order”

To set the sort order, subscribe to “OnBeforeSetReqLineSortingKey”

To track the field values and when they change, subscribe to “OnBeforeCheckInsertFinalizePurchaseOrderHeader”. Setting “CheckInsert” to TRUE in this subscription will trigger a new PO.

Subscribe to “OnAfterInsertPurchOrderHeader” to update fields on PO

Use “OnFinalizeOrderHeaderOnAfterSetFiltersForNonRecurringReqLine” to filter the requisition lines to be included.

Hope this is helpful.

1 Like

Thanks Ben!

I guess this is what we have to do for now - just thought BC had some settings in regards to this that we could switch on/off.

Thank you for the reply! Just asked around, and it turns out we cant do any modifications to our BC, since we don’t have any developers inhouse to do this.

Sara –

As Ben mentioned we have customers who use filters to accomplish your requirement (no modification😊)

Filter Planning Worksheet to Vendor

Unmark all lines

Mark one line at a time to – carry out action- repeat

If this happens all the time then a modification may be needed

John

~WRD0001.jpg

image657003.jpg

image897691.png

image075463.png

image561252.png

image427468.png

image830677.jpg

1 Like

Yes - thanks a lot!

We will be using this as part of the process now.