Hi,
i have create a dataport to import Purchase Invoice .
i start and think it should be work but i does not happens anything.
i insert the code in the onbeforeimportrecord and nav do not create a new invoice and dont insert the vendornumber.
what i have do wrong that i does not work.
thanks for helping
CLEAR(PurchHeader);
PurchHeader."No." := '';
PurchHeader.INIT;
PurchHeader."Document Type" := PurchHeader."Document Type" :: Invoice;
PurchHeader.VALIDATE("Buy-from Vendor No.",VEN);
PurchHeader.INSERT(TRUE);
Answers
here is the correct code