Skip to Content

Incoming Payment Lines in DI Addon

Jan 17, 2017 at 04:54 PM


avatar image
Former Member

Dear experts ,

I am trying to create an incoming payment with journal entry in lines but cannot find a solution.The code with invoices works fine.The code is the below :

Dim oPymt As SAPbobsCOM.Payments
            Dim totalPayment As Double
            oPymt = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
            oPymt.DocDate = DateTime.Now
            oPymt.CardCode = "1102"
            oPymt.CashSum = "10"
            oPymt.CashAccount = "38.00000"

            oPymt.Invoices.DocEntry = "82533"

            lretcode = oPymt.Add()



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER Jan 17, 2017 at 06:35 PM

Hi Ifigeneia,

In your object oPymt.Invoices you need set more two fields for your incoming payment:

oPymt.Invoices.InvoiceType = BoRcptInvTypes.it_JournalEntry;
oPymt.Invoices.DocLine = 0;

InvoiceType = Specifie that you want receive a Journal Entry.

DocLine = Specifie what line of your Journal entry you will receive in this incoming payment.

Hope it helps.

Kind Regards,

Diego Lother

10 |10000 characters needed characters left characters exceeded