Skip to Content
0
Former Member
Dec 20, 2007 at 11:17 PM

Trying to do production issue ....dsnt work..

22 Views

Documents ProdDoc = (Documents)company.GetBusinessObject(BoObjectTypes.oInventoryGenExit);

ProdDoc.DocDate = DateTime.Today;

//ProdDoc.Lines.SetCurrentLine(0);

ProdDoc.Lines.BaseEntry = 55619;

ProdDoc.Lines.BaseLine = 0;

ProdDoc.Lines.SerialNum = "hhhhhhhhhh";

ProdDoc.Lines.Quantity = 1;

ProdDoc.Lines.Add();

int result = ProdDoc.Add();

//check for error

This code is giving me a message "cannot add row without complete selection of serial numbers for row 1"

I have already added the serial number in the code....I have two components to add....one has the serial number and the other dsnt

Component 1 ....has a serial number....issue method is manual

Component 2....dsnt have a serial number....issue method is backflush..