Skip to Content
0
Former Member
Sep 22, 2016 at 11:49 AM

Update picklist through DI Server with batch items

195 Views

Hi,

In SAP B1 (v8.82), I create a picklist based on a salesorder. To keep it simple, the salesorder (and thus also the picklist) contains only one item.

This item a batch dependant.

I want to update the picklist with the picked quantity, providing the batchnumber.

Again, to keep it simple, only one batch is picked, so the picked quantity equals the batch quantity.

The SOAP-command to update the picklist is:

<?xml version="1.0"?>

<soap:Envelope

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

>

<soap:Header>

<MsgHeader xmlns="http://www.sap.com/SBO/DIS">

<SessionID>70AD37EF-CDCF-4776-A789-F1E53851BE85</SessionID>

<ServiceName>PickListsService</ServiceName>

</MsgHeader>

</soap:Header>

<soap:Body>

<Update xmlns="PickListsService">

<PickList xmlns="http://www.sap.com/SBO/DIS">

<Absoluteentry>5</Absoluteentry>

<PickListsLines>

<PickListsLine>

<AbsoluteEntry>5</AbsoluteEntry>

<LineNumber>0</LineNumber>

<OrderEntry>42538</OrderEntry>

<OrderRowID>0</OrderRowID>

<PickedQuantity>15</PickedQuantity>

<BaseObjectType>17</BaseObjectType>

<BatchNumbers>

<BatchNumber>

<BatchNumber>B0922-A</BatchNumber>

<BaseLineNumber>0</BaseLineNumber>

<Quantity>15</Quantity>

</BatchNumber>

</BatchNumbers>

</PickListsLine>

</PickListsLines>

</PickList>

</Update>

</soap:Body>

</soap:Envelope>

The warehouse contains 60 items of batch 'B0922-A', so stock should not be an issue.

I receive error code -4014: "Cannot add row without complete selection of batch/serial numbers"

Should the corresponding salesorder first be updated with the batch, and if that is the case, what SOAP-command has te be used ?

Or am I missing something else ...