Skip to Content
avatar image
Former Member

Incoming Payment Lines in DI Addon

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()



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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

    Add comment
    10|10000 characters needed characters exceeded