Hi Everyone,
I’m facing an contented portion moving with SAP Business One Service Layer when trying to update bin allocations for kid items successful a Sales BOM.
Here’s the scenario:
I person a Sales Order with a premix of Sales BOM (parent items) and child items (inventory-managed).
I’m creating and updating PickLists using the Service Layer.
For parent items in the Sales BOM, bin allocations are not applicable arsenic they are non-inventory items. However, for child items, I’m attempting to allocate bins.
Here’s what I’ve noticed:
I’m utilizing a JSON operation to update the PickLists, including the DocumentLinesBinAllocations array for kid items.
While immoderate bins are successfully updated, a fewer kid items neglect to bespeak the close bin allocations.
PreviouslyReleasedQuantity for each lines is correctly set, and I’ve verified the BinAbsEntry values beryllium and are progressive successful the system.
Here’s an illustration of the update JSON I’m sending:
{ "PickList": { "Absoluteentry": 107486, "ObjectType": "156", "PickListsLines": [ { "AbsoluteEntry": 107486, "LineNumber": 0, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 0, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 0, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] }, { "AbsoluteEntry": 107486, "LineNumber": 1, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 2, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 2, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] }, { "AbsoluteEntry": 107486, "LineNumber": 2, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 3, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 3, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] }, { "AbsoluteEntry": 107486, "LineNumber": 3, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 4, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 4, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] }, { "AbsoluteEntry": 107486, "LineNumber": 4, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 6, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 6, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] }, { "AbsoluteEntry": 107486, "LineNumber": 5, "BaseObjectType": "17", "OrderEntry": 82541, "OrderRowID": 7, "ReleasedQuantity": 1, "PreviouslyReleasedQuantity": 1, "PickStatus": "ps_Released", "PickedQuantity": 0, "DocumentLinesBinAllocations": [ { "BinAbsEntry": 3, "BaseLineNumber": 7, "Quantity": 1, "AllowNegativeQuantity": "tNO" } ], "SerialNumbers": [] } ], "Status": "ps_Released", "UseBaseUnits": "tNO" } }Despite this structure, the bin allocations fail for immoderate kid items. The LineNumber and BaseLineNumber mappings to the Sales Order lines person been double-checked and look correct.
Calling PickListsService_UpdateReleasedAllocation before sending the update JSON to guarantee released quantities align.
Adding and removing optional fields like AllowNegativeQuantity and SerialAndBatchNumbersBaseLine.
Verifying the bin statuses and quantities successful the OBIN table.
Has anyone encountered a akin contented where child items in a Sales BOM do not update correctly successful picklists?
Are determination immoderate circumstantial configurations oregon prerequisites I should verify for kid items successful picklists?
Could this beryllium related to however the Service Layer processes Sales BOM structures oregon the narration betwixt genitor and kid items?
Any insights oregon proposal would beryllium greatly appreciated!
Best regards,