PO Import

Hi,

I am trying to import PO.Import is working fine and lines and headers are also workingproperly. But if i give valuein PurchLine.PurchQty field only in my excel that has to get imported. the data is not flowing into other fields like PurchLine.QtyOrdered and PurchLine.RemainInventoryPhysical.I tried writing a code on import criteria as follows :

NumberSeq _numberSeq;
//PurchLine purchLine;
;

if(purchLine.PurchQty)

{

purchLine.QtyOrdered = purchLine.PurchQty;
purchLine.RemainInventoryPhysical = purchLine.PurchQty;
purchLine.RemainPurchPhysical = purchLine.PurchQty;

}

// for genertaion of Lotid automatically
_numberSeq=NumberSeq::newGetNumFromCode(NumberSequenceReference::find(TypeId2ExtendedTypeId(typeid(InventTransId))).NumberSequence);
purchLine.InventTransId=_numberSeq.num();

But its giving compilation error. Plz suggest what is the mistake.