Write on Production table using script

SOLVED

Are we able to write on the Production table from the Sales Order Entry UI?

I have items that based on the S/O Entry need to be put on a Production Entry so was wondering if after they are entered in the SO and the Picking Sheet is printed, I can write this items in a new Batch and set the required fields in the Production based on lines from the S/O details.

Parents
  • 0

    You can use the BM_Production_Bus object to write production entries.  However, there isn't an event that you can attach a script to in order to catch when the picking sheet is printed.  You can however attempt to replace hide the default quick print picking sheet button and put a custom button over it in which you call the oUIObj.BT_QPPicking method and followed by your code to create the production entry where you can check the value of PickingSheetPrinted$ before you create the production entry (depending on SO Options, you may need to reread the sales order in order to get the value for PickingSheetPrinted$).

Reply
  • 0

    You can use the BM_Production_Bus object to write production entries.  However, there isn't an event that you can attach a script to in order to catch when the picking sheet is printed.  You can however attempt to replace hide the default quick print picking sheet button and put a custom button over it in which you call the oUIObj.BT_QPPicking method and followed by your code to create the production entry where you can check the value of PickingSheetPrinted$ before you create the production entry (depending on SO Options, you may need to reread the sales order in order to get the value for PickingSheetPrinted$).

Children