Default field bpm

Epicor version 9.05.701

I thought i was getting better at these default fields!..Im having trouble defaulting this field to the Shipping warehouse.

The field is: ShipDtl.WarehouseCode
I believe the bpm method is: CustShip.GetNewShipDtl
Method type: Post processing

From previous tickets I’ve opened, I’ve learnt that you have account for the Code and the description when the field is a dropdown box…so i wrote this ABL code, but it doesn’t seem to work.


For each ttShipDtl where ttShipDtl.Rowmod = ‘A’ no-lock.

If ttShipDtl.PartNum <> “blah” Then Do:

/* Set ShipDtl Warehouse Code Defaults */

Assign ttShipDtl.WarehouseCode = “Shipping”.
Assign ttShipDtl.WarehouseCodeDescription = “Shipping”.

End.
End.


I don’t believe you can update tt fields in a post-processing BPM. The tt fields belong to temporary tables; when you do a post-processing BPM it’s too late to change values on tt fields. Try updating ShipDtl rather than ttShipDtl fields.

Sue