Hola,
Tengo esta situación inicial en mi sistema SB1 9.0 PL08
Tablas PKL1 y PKL2
La estructura SOAP para actualizar la 1ª linea. Esta misma estructura funciona si todas las fila el campo Picking efectuado es 0
<?xml version="1.0" encoding="UTF-16"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header> <SessionID>E7436914-0D05-4E94-B431-4A5D0AF0D21D</SessionID> </env:Header> <env:Body> <dis:UpdateObject xmlns:dis="http://www.sap.com/SBO/DIS"><BOM>
<BO>
<AdmInfo>
<Object>oPickLists</Object>
</AdmInfo>
<QueryParams>
<Absoluteentry>24</Absoluteentry>
</QueryParams>
<PickLists />
<PickLists_Lines>
<row>
<PickedQuantity>25</PickedQuantity>
</row>
</PickLists_Lines>
<DocumentLinesBinAllocations>
<row>
<BinAbsEntry>2</BinAbsEntry>
<Quantity>25</Quantity>
</row>
</DocumentLinesBinAllocations>
</BO>
</BOM> </dis:UpdateObject> </env:Body></env:Envelope>
Resultado
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value><env:Subcode><env:Value>-5002</env:Value></env:Subcode></env:Code><env:Reason><env:Text xml:lang="en">1470000341 - El artículo "A00101" no está completamente asignado a la ubicación "01"</env:Text></env:Reason><env:Detail><Object>156</Object><ObjectIndex>1</ObjectIndex><Command>UpdateObject</Command><SessionID>AAFF0326-6141-46DF-9F5E-816BC620C37C</SessionID></env:Detail></env:Fault></env:Body></env:Envelope>
Como se puede actualizar todas las líneas?algunas líneas?solo una línea?
No he podido indicarle la fila y/o el artículo, en el SDK hay la propiedad OrderLine, que en el SOAP es OrderRowID
La idea seria poner algo como
<PickLists_Lines>
<row>
<OrderRowID> 0</OrderRowID>
<PickedQuantity>25</PickedQuantity>
</row>
<row>
<OrderRowID> 1</OrderRowID>
<PickedQuantity>5</PickedQuantity>
</row>
</PickLists_Lines>
Además se debería poder cambiar/indicar las ubicaciones
<DocumentLinesBinAllocations>
<row>
¿¿¿propiedad para indicar la línea/articulo???
<BinAbsEntry>2</BinAbsEntry>
¿¿¿propiedad para indicar la línea/articulo??? |
<Quantity>25</Quantity>
</row>
</DocumentLinesBinAllocations>
Alguna idea?
Gracias!