I'm importing from text file in a dataport Purchase invoice header
In the aftergetrecord i wrote:
PurInv.INIT;
PurInv."Document Type" := T38."Document Type"::Invoice;
PurInv.INSERT(TRUE);
PurInv.SetHideValidationDialog(TRUE);
PurInv.VALIDATE("Buy-from Vendor No.",NoVen);
PurInv.VALIDATE("Pay-to Vendor No.",PayVen);
PurInv.MODIFY;
After read first record it execute code but second time show an error: "The Purchase Header Already exists"
Why this? I suspect series number not increment after first record.. :-k
0
Comments
Thanks