cancel
Showing results for 
Search instead for 
Did you mean: 

Update picklist through DI Server with batch items

0 Kudos

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 ...

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Luk,

Under the current design,the batch numbers properties for the base document is not exposed.

As a workaround,first allocate the batch numbers to sales order and then update the picklist.

SAP Note 1947547 mentions the same.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Answers (0)