Hello,
I want to create oPurchaseDeliveryNotes Documents.
oPurchDln.NumAtCard = oPurchOrdr.NumAtCard
oPurchDln.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes
oPurchDln.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
oPurchDln.DocDueDate = Now
oPurchDln.DocDate = Now
oPurchDln.PaymentGroupCode = oPurchOrdr.PaymentGroupCode
oPurchDln.CardCode = oPurchOrdr.CardCode
'oPurchDln.CardName = oPurchOrdr.CardName
oPurchDln.ShipToCode = oPurchOrdr.ShipToCode
oPurchDln.TransportationCode = oPurchOrdr.TransportationCode
oPurchDln.SalesPersonCode = oPurchOrdr.SalesPersonCode
oPurchDln.ContactPersonCode = oPurchOrdr.ContactPersonCode
oPurchDln.FederalTaxID = oPurchOrdr.FederalTaxID
oPurchDln.DocCurrency = oPurchOrdr.DocCurrency
oPurchDln.DiscountPercent = oPurchOrdr.DiscountPercent
oPurchDln.Lines.BaseType = oPurchOrdr.DocObjectCode
oPurchDln.Lines.BaseEntry = oPurchOrdr.DocEntry
oPurchDln.Lines.BaseLine = oPurchOrdr.Lines.LineNum
after the oPurchDLn.add the getlasterror message contains: "Vendor record not found"
I'm totally confused... can anybody help???
Message was edited by: Thorsten Schmitz