VenEntry.GET(DetailLine."Serial No. (Entry)"); IF VenEntry."External Document No." <> '' THEN UseDocumentNo := VenEntry."External Document No." ELSE UseDocumentNo := VenEntry."Document No.";UseDocumentNo is gedefineerd als UseDocumentNo@1000000 : Code[30];