Try to to execute AllocateByLotBin.
Looking at the models I seed
OrderAlloc
OrderAllocSupply
PartAlloc
PartAllocLot
PartAllocSerial
PartAllocTran
Do I need ALL of these?
Anybody have an example?
Thanks in advance for any help.
Try to to execute AllocateByLotBin.
Looking at the models I seed
OrderAlloc
OrderAllocSupply
PartAlloc
PartAllocLot
PartAllocSerial
PartAllocTran
Do I need ALL of these?
Anybody have an example?
Thanks in advance for any help.
Those are all tables in the OrderAllocDataSet which you pass to AllocateByLotBin. I would expect this data set to be a return value from an earlier call. You do not need to populate them all, but they will all be there.
Generate a client trace of doing the allocation manually and look at what is populated in the trace, when it’s passed to AllocateByLotBin.
Thanks, doing that now.
Ran GetListFWB OrderAllocationGetRows and GetById
Working my way through it.
Hard to find good examples.
Thanks again
Have my AllocateByLotBin working if only one line item. Done traces and think I have all the api calls in the correct order. If I process multi-lines it always removes the previous allocations and I’m left with only the last line item being allocated.
I’m using GetListFWB, GetRows. I’m using GetByID to create the PartAllocLot object. I think the problem is the PartAlloc object. I noticed in the trace the PartAlloc object contains the previous allocation. Would you happen to know what sets that object or do I need to create in manually.
Thanks in advance. Wish I could explain it better. Like I said it’s only working for me on one line items orders.
Never mind. Finally got it working. Went blind reading trace files but figured it out. Ugggg
There is a utility that is floating around here called the trace diff tool built by @josecgomez and @jgiese.wci that is great for parsing difficult trace files. Good to have both the original trace and the parsed ones side by side to get the method order right but I feel your pain
Thanks. I’ll look at that.