Incoming Payment / Journal Entry

Hi people
I'm working in 2005 SP01 PL27
I'm trying to do an Incoming Payment based in a Journal Entry.
I have the follow journal entry
Account: 572000 Credit: 185.2 (line 0)
Account C00001 Debit: 185.2 (line 1)
Code is like this
lPago.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry
lPago.Invoices.DocEntry = mRS.Fields.Item("TransID").Value
lPago.Invoices.DocLine = mRS.Fields.Item("Line_ID").Value ' Value (1)
I fill CardCode and anymore mandatory fields, but and error message says me:
Base document card and target document card do not match
Any idea?
Thnx in advance

Hi Juli,
iam programing at this moment a payment tool.
i don't use Invoices.DocLine and its working fine
btw - i think i had a similar problem when i didnt use
oPay.DocType = rCustomer or rSupplier
regards

Similar Messages

  • Issue in F-26(Incoming Payments Fast Entry) Transaction

    Hi all,
    I am using f-26(Incoming Payments Fast Entry) tcode. In this for each customer with the company code and the payment term, depending on the document date, the cash discount is been calculated on the Gross amount for the line items of that customer.
    In the tcode it will calculate, But I need to do the uploading using this tcode, and need to calculate those cash discount amounts in my code.Because of lot of payment terms, it is combossum to do it in the code.
    Can anybody tell me how to handle this, is there any FM for this.?
    Plz check the tables: BSID, T052.
    payment term fieldname: BSID-ZTERM.
    cash discount fields: T052-ZPRZ1, T052-ZPRZ2.
    Plz check its very urgent, My ticket is escalting in 2 days. Plz reply me if any body has done this before.
    Kumar

    sorry kumar,
    but there seems to be no fm for your purpose
    discount is a very complex topic because of:
    tax, foreign currency, day of payment,
    booking net or gross, etc.
    -> look include MF05AFA0_AUSGLEICH_MIT_BUCHEN
    -> i guess, you've to program it by yourself
    regards Andreas

  • Error while posting Incoming payment Cancellation entry in Current date

    Hi Experts
    Scenario
    Incoming payenet created on 31-05-2009
    Cancellation to be done on current date - 02-06-2009
    Current period selected as 010609 to 300609 in general settings
    When Incoming payment is cancelled - The system shows message ' The selected period is locked, Posting will be created in Current period', Continue - ?
    When YES is clicked - 'Date deviates from permissible range - (Journal Entry - posting date) Msg - (173-11)
    Document Numbering Journal entry is for Current period. (All the Journal entries are getting posted in current date, hence Document numbering is correct for Journal entry)
    PLEASE NOTE - The cancellation entry is needed to be passed on system date (02-06-2009) and NOT original document date of incoming payment (31-05-2009)

    Hi Sundaraja
    In 2007 B this issue does not arise, working FINE
    In 2005 B, there is option to set period as Current which I have done. and Active 'YES' & Locked 'NO'. Infact I have done this for all the periods of yr 2009-10.
    Still getting the error.
    Regards,
    Sid

  • Incoming Payment Fast Entry

    Hi
    Can you tell me the easiest way that the users can process an incoming payment against a customer i.e. DR Bank CR Customer this could either be a payment on account, or be allocated to specific open items at a later date.  The users are used to entering multiple payments against customers and to actually enter one per customer and allocate them will make the process quite onerous for them.
    Your advice is much appreciated.
    Claire

    Hi Claire,
    The error "Diff too large for clearing" because of small difference amount.
    Go to OBA3 and see how you have allowed as small difference amount.
    Next questions is you want to post the payment without clear anything. Hope it is not possible except down payment.
    Because incoming or outgoing payment except down payment they might have open iteam already.
    Or do it as partial payment instead of residual payment.
    The new difference would be come as open item
    Regards,
    Sivakumar Sathiyamoorthy

  • Entering Incoming payments throught externally

    Dear All,
    One of our client wants to enter Incoming payments throught externally in SAP B1. Exact requirement is as follows.
    1. Currently User is using X customised Application.
    2. He wants to use his Application to enter Incoming payments (Receipt entry) in SAP B1 (As soon as he save X application reciept entry same transaction should generate in SAP B1 also).
    3. He dosn't want to use Migration option.
    Any one has done this kind of customisation using SAP B1 data?
    It is possible to enter such data from third party application?
    What possibilities are available ?
    Regards,
    Manish

    Hi,
    of course you can make an external program.
    just connect via DIAPI using the oCompany object and you have access to the payments object !
    regards
    David

  • After doing Incoming payment using ( F-26) cash receipt has to print (FBCJ)

    Hi all,
    After doing 'Incoming payment fast entry' using Tcode F-26, while saving cash receipt has to print from Tcode. FBCJ . any chance to print like this or it is not possible ? kindly guide me on this .
    Thanks in advance
    JK

    Quoc,
    You can use the correspondence for internal document (SAP09) for printing the document you are posting.
    In SPRO go to Financial Accounting --> AR and AP and then customer Account --> Line item and then correspondence.
    There you have to attach the form developed by the ABAPer to the correspondence SAP09. ABAPer has to copy the exiting standard foprm attached to the correspondence and do the changes and design the layout as per the requirement.
    When you post the document , you have to attach the relavent correspondence (SAP09) to the doc and then go to F.64 tcode and execute with the inputs in the selection screen such as Correspondence, doc number, fiscal year .
    Regards..

  • Process Incoming Payments for Multiple Customers

    Hi,
    I am currently using F-28 to process incoming payments.
    Is there a way to process <u>more than one customer</u> with this function using F-28?
    If not, is there another function that handles?
    I just have <b>two customers</b> to process.
    Regards,
    Ved

    Hi,
    Go to F-26 incoming payments fast entry .
    first you enter one customer incoming payments after clear that go to Menu option Edit -> select more. there u specify the another customer number and go ahead.
    If it is helpful assign points, any problem reply

  • Background Journal entry for Incoming payment

    Dear Experts,
    Would you please help me in how to get the journal entry for an incoming payment entered as "payment on account".
    The relationship map does not show this, but I can see the credit entry for the customer is passed.
    same happens for incoming payment made for specific AR invoices.
    SAP Doc says...
    Result
    An incoming payment document is created.
    A journal entry that credits the customer and the tax accounts (if tax is involved), and debits the receivable account, is created.
    The journal entries of the incoming payments and the paid invoices are reconciled.
    The paid invoices are closed; they no longer appear in the Open Items list and in the Incoming Paymentswindow as documents for payment.
    So how to check the journal entries for incoming payments.
    Regards
    Message was edited by: Suman Roy

    Hi,
    To see journal entry, drill down arrow at transaction no of incoming payment window.
    Thanks & Regards,
    Nagarajan

  • How to do an incoming payment based on journal entry whit SDK ?

    Hello
    Somebody have the code for SDK of Business One,  how  to do an  incoming payment based on journal entry?
    Tks

    Hello Julio,
    Here some example code from the SDK helpfile.
    Private Sub cmdTest_Click()
       On Error GoTo ErrorHandler
       Dim vCompany As SAPbobsCOM.Company
       'create company object
       Set vCompany = New SAPbobsCOM.Company
       'set paras for connection
       vCompany.CompanyDB = "SBODemo_US"
       vCompany.Password = "manager"
       vCompany.UserName = "manager"
       vCompany.Server = "(local)"
       'connect to database server
       If (0 <> vCompany.Connect()) Then
          MsgBox "Failed to connect"
          Exit Sub
       End If
       Dim nErr As Long
       Dim errMsg As String
       'Set the object's properties
       Dim vPay As SAPbobsCOM.Payments
       Set vPay = vCompany.GetBusinessObject(oIncomingPayments)
       vPay.Address = "622-7"
       vPay.ApplyVAT = 1
       vPay.CardCode = "D10006"
       vPay.CardName = "Card D10004"
       vPay.CashAccount = "288000"
       vPay.CashSum = 0
       'vPay.CheckAccount = "280001"
       vPay.ContactPersonCode = 1
       vPay.DocCurrency = "Eur"
       vPay.DocDate = Now
       vPay.DocRate = 0
       vPay.DocTypte = 0
       vPay.HandWritten = 0
       vPay.JournalRemarks = "Incoming - D10004"
       vPay.LocalCurrency = tYES
       vPay.Printed = 0
       vPay.Reference1 = 8
       vPay.Series = 0
       vPay.SplitTransaction = 0
       vPay.TaxDate = Now
       vPay.TransferAccount = "10100"
       vPay.TransferDate = Now
       vPay.TransferSum = 0
       vPay.Invoices.AppliedFC = 0
       vPay.Invoices.AppliedSys = 0
       vPay.Invoices.DocEntry = 8
       vPay.Invoices.DocLine = 0
       vPay.Invoices.DocRate = 0
       vPay.Invoices.InvoiceType = 13
       vPay.Invoices.LineNum = 0
       vPay.Invoices.SumApplied = 5031.2
       Call vPay.Invoices.Add
       Call vPay.Invoices.SetCurentLine(1)
       vPay.Invoices.AppliedFC = 0
       vPay.Invoices.AppliedSys = 1089.65
       vPay.Invoices.DocEntry = 11
       vPay.Invoices.DocLine = 1
       vPay.Invoices.DocRate = 0
       vPay.Invoices.InvoiceType = it_Invoice
       vPay.Invoices.LineNum = 1
       vPay.Invoices.SumApplied = 1000
       vPay.CreditCards.AdditionalPaymentSum = 0
       vPay.CreditCards.CardValidUntil = CDate("10/31/2004")
       vPay.CreditCards.CreditAcct = "295000"
       vPay.CreditCards.CreditCard = 3
       vPay.CreditCards.CreditCardNumber = "884848448"
       vPay.CreditCards.CreditCur = "EUR"
       vPay.CreditCards.CreditRate = 0
       vPay.CreditCards.CreditSum = 5031.2
       vPay.CreditCards.CreditType = 1
       vPay.CreditCards.FirstPaymentDue = CDate("11/29/2002")
       vPay.CreditCards.FirstPaymentSum = 5031.2
       vPay.CreditCards.LineNum = 0
       vPay.CreditCards.NumOfCreditPayments = 1
       vPay.CreditCards.NumOfPayments = 1
       vPay.CreditCards.OwnerIdNum = "3993939"
       vPay.CreditCards.OwnerPhone = "383838888"
       vPay.CreditCards.PaymentMethodCode = 1
       Call vPay.CreditCards.Add
       Call vPay.CreditCards.SetCurentLine(1)
       vPay.CreditCards.AdditionalPaymentSum = 0
       vPay.CreditCards.CardValidUntil = CDate("10/31/2004")
       vPay.CreditCards.CreditAcct = "295000"
       vPay.CreditCards.CreditCard = 3
       vPay.CreditCards.CreditCardNumber = "884848448"
       vPay.CreditCards.CreditCur = "EUR"
       vPay.CreditCards.CreditRate = 0
       vPay.CreditCards.CreditSum = 1000
       vPay.CreditCards.CreditType = 1
       vPay.CreditCards.FirstPaymentDue = CDate("11/29/2002")
       vPay.CreditCards.FirstPaymentSum = 1000
       vPay.CreditCards.LineNum = 1
       vPay.CreditCards.NumOfCreditPayments = 1
       vPay.CreditCards.NumOfPayments = 1
       vPay.CreditCards.OwnerIdNum = "3993939"
       vPay.CreditCards.OwnerPhone = "383838888"
       vPay.CreditCards.PaymentMethodCode = 1
       If (vPay.Add() <> 0) Then
           MsgBox ("Failed to add a payment")
       End If
       'Check Error
       Call vCompany.GetLastError(nErr, errMsg)
       If (0 <> nErr) Then
           MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
       Else
           MsgBox ("Succeed in payment.add")
       End If
       'disconnect the company object, and release resource
       Call vCompany.Disconnect
       Set vCompany = Nothing
       Exit Sub
    ErrorHandler:
       MsgBox ("Exception:" + Err.Description)
    End Sub
    HTH Regards Teun
    Edited by: Teun Aben on Aug 4, 2010 9:00 PM

  • Adding Journal Entry  throgh Incoming Payments,

    Hi Friend,
                  I need Help ....
    I need to create a journal entry using incoming payment. I have different types of deduction Accounts. All deductions need to display in  journal entry and also its reflect in Invoice.Then only invoice going to close.
    Dim junEntry As SAPbobsCOM.JournalEntries
    Ex :-
    :::::Journal Entry::::::
    *Account Code/BpName*                *AccountName*          *DR*            *CR*
    620005                                Deduction1            10      
    620006                                Deduction2           100
    620007                                Deduction3           100
    620008                                Deduction4           115
    620009                                Deduction5            10
    6200010                              Deduction6             10       
    6200011                         Cash Recived               655             1000
                                                              1000             1000 
            Dim decDebi As Decimal = 0
            Dim dtCount As Integer = dtDataTable.Rows.Count - 1
            junEntry = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
            junEntry.Memo = strBpCode
            junEntry.ReferenceDate = Now.Date
            For intLoop = 0 To dtDataTable.Rows.Count - 1
                junEntry.Lines.AccountCode = dtDataTable.Rows(intLoop)("Account").ToString()
                junEntry.Lines.Debit = dtDataTable.Rows(intLoop)("Amount").ToString()
                decDebi += CDec(dtDataTable.Rows(intLoop)("Amount").ToString())
                junEntry.Lines.Add()
            Next
            junEntry.Lines.ShortName = strBpCode.Replace("Incoming Payments", "")
            junEntry.Lines.Credit = decDebi
            junEntry.Lines.Add()
            intErrCode = junEntry.Add()
            If intErrCode <> 0 Then
                objAddOnCentral.objApplication.StatusBar.SetText("" & objAddOnCentral.objCompany.GetLastErrorCode & " " & objAddOnCentral.objCompany.GetLastErrorDescription & "", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                Return False
            End If

    Hi,
    I thing no need addon once u add incoming payment automatically invoice will close and JE also will pass.
    Regards,
    Siva

  • Query for Journal Entry as Incoming/Outgoing Payment

    Hi all,
    I need a query that returns all journal entries that are incoming/outgoing payments.
    I have not found anything in the journal entries tables that marks it as a payment.
    thanks,
    Lucas.

    Hi Lucas,
    I am afraid 2 queries could be more meaningful. That might be more convenient:
    Incoming:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Incoming Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.Credit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=24 AND
    T0.Credit > 0
    Order By T0.RefDate
    Outgoing:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Outgoing Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.debit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=46 AND
    T0.debit > 0
    Order By T0.RefDate
    Thanks,
    Gordon

  • Include the Journal entry created in Incoming Payments PLD

    Hello Experts!!!
    Is there a way to include the journal entry created in the Incoming Payments PLD?

    hi jennifer,
    You can create query print layout designer report using query.
    SELECT
    T0.TransId, T0.BaseRef, T0.RefDate,
    T1.Account, T1.ShortName, T2.AcctName,
    T1.Debit, T1.Credit
    FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId and
    T1.TransType = 24 INNER JOIN OACT T2 ON T1.Account = T2.AcctCode
    WHERE
    T0.BaseRef = '[%0]' or  T0.RefDate = '[%1]'
    Jeyakanthan

  • Incoming payment for incoming payment, credit memo, journal entry &invoice

    The message subject is expression of my f**king confusing.
    Suppose, we received payment on account 120 Ringgit, invoice amount 210 Ringgit, JE transaction amount 10 Ringgit and credit memo amount (without copied from a certain invoice) 5 Ringgit.
    In one new incoming payment, I pay all the 4 transactions, is it correct procedure ? it means the balance of the customer will be zero, that's what we want to do. Thanks in advance
    Balaj

    First and foremost, I would like to stay that this is a Public Forum and you must refrain from using improper language.  There are people here to help you.
    If you want to adjust the JE, Payment on Account and Credit Memo aginst the Invoice and receive the balance amount, it is possible through incoming Payment.
    You will highlight the Invoice, CM, JE and check the Payment on Account box to include the On account amount, go to Payment means and in the amount column press CTRL+B to copy the balance amount and ADD the payment
    Suda

  • Bank statement Nr in journal entry and Payments

    In Notenumber 1374872 (SP 01/PL7) a change has been implemented that the number of the payment run is copied to the remarks of the payment and the journal entry. I think it will be good idea to do the same for the number of the bankstatement in bank stament processing. Hereby the text for the note 1374872. The reason why and the solution are the same.
    Regards,
    ProSigma BV
    Cees Hameete
    Symptom
    To find the number of the payment wizard run in payments and journal entries, bookkeepers currently have to open the journal entry, navigate to the payment document, and then search manually in the executed payment wizard runs to find the correct number.
    Other terms
    Incoming payment; outgoing payment; payment wizard; journal entry
    Reason and Prerequisites
    Functionality description
    Solution
    To improve usability and provide integrated journal remarks information, SAP Business One was changed as follows:
    When an incoming or outgoing payment is generated using the payment wizard, the application adds the payment wizard run number to the "Journal Remarks" field of the payment document and to the "Remarks" field in the journal entry on both header and row level.
    The values in the "Journal Remarks" and "Remarks" field have the following structure:
    Incoming Payments - [Customer Code] - [Payment Wizard Run Number]
    Outgoing Payments - [Vendor Code] - [Payment Wizard Run Number]
    SAP intends to provide a patch or patches in order to solve the problem described.
    The section Reference to Related Notes below will list the specific patches once they become available.
    The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number.
    Be aware that these references can only be set at patch release date.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.

    I completely agree with your proposal.  We have the same problem at the moment.  I hope SAP will implement a solution for this.

  • Outgoing Payment with journal Entry

    Hi guys I need your help
    I need to be able to do an outgoing payment based on a journal entry. This is my code but I get this error:
    "Base document card & target document card do not match"
    The journal is based on an incoming payment that was over paid and has a remaining balance.
    Thanks
                oOutPay.DocTypte = SAPbobsCOM.BoRcptTypes.rCustomer;
                oOutPay.CardCode = "CC0001";
               //oOutPay.Invoices.Add();
                oOutPay.Invoices.DocEntry = 106;
                oOutPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry;
                oOutPay.TransferAccount = globals.bankTrAccOP;
                oOutPay.TransferSum = 80;
                int lRetCode;
                lRetCode = oOutPay.Add();

    Hi Costas,
    In order to based the payment on Journal Entry,
    You have to set the docline of the Payment to Journal Entry Line which has the same cardcode as your payment card code like this
    oPay.Invoices.DocLine = oJE.Lines.Line_ID
    What I do is I iterate through the Journal Entry to look for the line like this :
    If .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry _
                                        Or .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_PaymentAdvice Then
        Dim oJE As SAPbobsCOM.JournalEntries
        oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
        oJE.GetByKey(.Invoices.DocEntry)
        For iLines As Integer = 0 To oJE.Lines.Count - 1
        oJE.Lines.SetCurrentLine(iLines)
        If oJE.Lines.ShortName = .CardCode Then
        'If the line card equal payment card code, then assign the docline id
              oPay.Invoices.DocLine = oJE.Lines.Line_ID
              System.Runtime.InteropServices.Marshal.ReleaseComObject(oJE)
              oJE = Nothing
              Exit For
         End If
        Next
    End If

Maybe you are looking for