cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery Note based on order not work (error -10)

Former Member
0 Kudos

Hi all,

I have a following problem:

I´m created Delivery Notes based on Orders and the addon get a following error:

" [line: 0] , '0351000005 no puede liberarse del almacén sin selección de número de lote/serie completo'"

My code is:

oEntrega.CardCode = oPedido.CardCode
oEntrega.DocDate = Today
oEntrega.Lines.BaseEntry = baseEntry
oEntrega.Lines.BaseLine = baseLine
oEntrega.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
oEntrega.Lines.Quantity = Quantity
oEntrega.Lines.BatchNumbers.BaseLineNumber = baseLine
oEntrega.Lines.BatchNumbers.BatchNumber = batchnumcode
oEntrega.Lines.BatchNumbers.Quantity = BatchQuantity

Anyone know some idea? thanks in advanced.

Accepted Solutions (1)

Accepted Solutions (1)

rasmuswulff_jensen
Active Contributor
0 Kudos

Could you please try to translate

'0351000005 no puede liberarse del almacén sin selección de número de lote/serie completo'"

Bablefish translate it into this:

"0351000005 it cannot be freed of the warehouse without selection of number of lote/serie completed"

Most of the people don't understand spanish and therefor might not be able to help you, but so far that I can tell there is something wrong with the batch-selection...

Have you tried simulating your action in the client (that might help you find some missing step/configuration)

Also is 0351000005 the itemcode?

Former Member
0 Kudos

Hi Rasmus,

It seems the wrong is a value of lines.Baseline and BatchNumbers.Baselinenumber...

oEntrega.Lines.BaseLine = baseLine
oEntrega.Lines.BatchNumbers.BaseLineNumber = baseLine

both propertys have a same values.

I have a question: what value must be in oEntrega.Lines.BatchNumbers.BaseLineNumber ?

(because i think both values not have to be the same value)

In other words:

when i generated a Delivery Note based on Order... what value take the standar SAP for oEntrega.Lines.BatchNumbers.BaseLineNumber ? (perhaps IBT1.BaseLinNum or IBT1.LineNum??... thats important for me know the source field which fills oEntrega.Lines.BatchNumbers.BaseLineNumber )

Thanks in advanced

Answers (0)