cancel
Showing results for 
Search instead for 
Did you mean: 

SAP API Error 1470000368 - The quantity allocated to bin locations must be positive

levinefinger
Explorer
0 Kudos
215

Hello experts,

I would like to carry out an "issue for production". If the item is not batched, everything works.

However, if the item is batched, I get the following error message:

    SAPbobsCOM.Documents IssueProdOrd;
                IssueProdOrd = (SAPbobsCOM.Documents)(connection.GetCompany().GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit));


                IssueProdOrd.Lines.BaseEntry = 2503;
                IssueProdOrd.Lines.BaseLine = 0;
                IssueProdOrd.Lines.BaseType = 202; 
                IssueProdOrd.Lines.Quantity = 5;
                IssueProdOrd.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
                IssueProdOrd.Lines.BatchNumbers.BatchNumber = "123456";
                //IssueProdOrd.Lines.SetCurrentLine(0);
                IssueProdOrd.Lines.BatchNumbers.Quantity = 5;
                //IssueProdOrd.Lines.BatchNumbers.BaseLineNumber = 0;
                //IssueProdOrd.Lines.BatchNumbers.Location = "01";
                IssueProdOrd.Lines.BatchNumbers.Add();



                IssueProdOrd.Lines.Add();
                int redCode = IssueProdOrd.Add();
                string errMsg;
                if (redCode != 0)
                {
                    connection.GetCompany().GetLastError(out redCode, out errMsg);
                }<br>

I get the following error:

"1470000368 - Die Lagerplätzen zugeordnete Menge muss positiv sein"

in english:

"1470000368 - The quantity allocated to bin locations must be positive"

The "issue for production" in SAP itself works.

I am aware that a similar post already exists. However, the solution did not work for me

Does someone has any idea?

Thank you very much for your help!

Best regards

Levin

Accepted Solutions (0)

Answers (0)