Create a payment based on a journal entry document

Hello!
In SBO 2007A PL44 I could add an incoming payment based on journal entry, but my code doesn't work in PL46.
It's a bug?
The Code:
        Dim oPay As SAPbobsCOM.Payments = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
        oPay.DocType = SAPbobsCOM.BoRcptTypes.rCustomer
        oPay.DocDate = Today
        oPay.TaxDate = Today
        oPay.DueDate = Today
        oPay.VatDate = Today
        oPay.CardCode = "310000010"
        oPay.Invoices.DocEntry = 1882
        oPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry
        oPay.Invoices.SumApplied = 12000
        oPay.CashAccount = "38117000"
        oPay.CashSum = 12000
        oPay.DocCurrency = "Ft"
        If oPay.Add <> 0 Then
            Dim errCode As Integer = 0
            Dim errmsg As String = ""
            oCompany.GetLastError(errCode, errmsg)
        End If
I got the following error:
errCode: -10
errMsg: Cannot pay partial down payment 
Regards Csaba
Edited by: Csaba Fülöpcsei on Apr 8, 2009 4:49 PM

Dear Jane Jing!
Yes I have a issue in B1 app for this payment:
In Incoming payments windows select the customer doctype and select the customer (310000010), and the list of the invoices check the line (1882, journal entry) and type 10000 in the Total Payment column. And after 'Payment Mean' icon, I can add the payment.
The problem is still on all payments of jourlnal entries from DI API.
If I assign any value to oPay.Invoices.SumApplied field, I couldn't add the payment.
Regards Csaba

Similar Messages

  • R12 AP create account process success while no journal entries produced

    Hi,
    Enviroment:12.0.4
    in AP, the invoice validate and create account all done successfully. while to query journal entries, there isn't any produced journal entries.
    During the create account process, there is no error message, therefore i cann't find what is the problem.
    can anyone give me a guide to how to find the problem is?or what the problem is ?
    any help will be appreaciated.
    Regards,
    Chelsea

    just to give a background of this process in R12
    As we know there are two methods to create Payables Accounting in R12,
    1.Online Accounting method
    The Online Accounting method can be called from either the Invoice or Payment workbench and has the following modes:
    Draft - The accounting is only created in the XLA Subledger tables and is not transferred to the General Ledger. Draft accounting can be recreated based on changes to the transaction data or accounting rules.
    Final - The accounting is created in the XLA Subledger tables and is not transferred to the General Ledger. Accounting created in final mode can not be recreated/altered. Run the Transfer Journal Entries to GL program to transfer these entries from the XLA subledger tables to the General Ledger tables.
    Final Post - The accounting is created in the XLA Subledger tables and is also transferred and posted to the General Ledger tables.
    2)Create Accounting process.
    The Create Accounting process has similar options, you can create accounting in Final or Draft mode and if Final mode is selected, the Transfer to GL parameter can be used to automatically transfer the accounting created by the corresponding run. When the Create Accounting process transfers the journal entries to GL it only transfers the accounting created by the process that calls it. If there is accounting created by the online option = Final or a previous Create Accounting program that was not transferred, that accounting will not be transferred. The Transfer Journal Entries to GL program needs to be ran separately to transfer any accounting created online or created by a previous Create Accounting process that did not transfer the entries.
    Based on the above cases, the following are possible causes of journal entries not transferred in R12:
    1. The accounting is created in Draft mode and can not be transferred.
    2. The accounting is created in error and can not be transferred.
    3. The accounting was created by Online Accounting with Final Mode.
    4. The accounting was created by the Create Accounting process with Transfer to General Ledger = No
    Hope this makes a clear understanding and you know the root cause.

  • Create incoming payments, based on Sales Person code

    Hi all,
    is there any SAPB1 functionality to create incoming payments, for many Sales Invoices of different customers , based on a Sales Person code ?
    Thank you,
    Aris Pantelatos

    Hi Jitin and Gordon,
    Thank you both for your replies.
    Jitin, I need to create different incoming payments (one for every customer)  based on a list of invoices with a specified Sales Person on them.
    Do you know, if this is included on SAPB1 roadmap?
    Aris
    Edited by: Aris Pantelatos on Feb 8, 2012 4:04 PM

  • Journal Entry/Document  headers

    In the journal entry layout, certain fields are coming in the header portions and I want to bring it to line item level so that I can enter the data against line item.
    For example I have ' Trading partner' field. Rather than coming in document header I need the same to come in line item, so that I can enter the trading partner detail against each line item level.
    This is specific situation in regard to manual adjustment for Intercompany related transaction.
    How to handle this? Appreciate the helpful answers...

    Stepanie,
    are you talking about the text for the Journal Entry or the actual entry configuration?
    We only have been able to set the text/description for the document, not the individual line items. 
    For the BCS experts - is it possible to do that?  There is no attribute for the line item text - would we need to create a new one and maintain it?
    thanks

  • Date deviates from permissible range [journal entry - Document Date]

    Hi, i have problem to add journal entry, when i creat journal document last year with:
    Posting date: 06-02-09 (this date)
    Due date: 06-002-09
    and Document date: 20-11-08 (couse the document late to creat at the journal)
    kindly, and thx for solution..
    Regards,
    Ani

    Ani,
    Take a look at this thread
    Re: Delivery Date on Sale Order
    Suda

  • Journal Entry Document List (Including Total Dr and Cr)

    Hi,
    Is there are report that I can run to give me all journal entries for a specified period, including the following information: User, Company Code, Document No., Doc type, Reference, Document Header, doc date, posting date and dr. and cr. values?  When I run TCode FB02 I get all the info except for the dr. and cr. values.
    Regards,
    Tracy

    Dear,
    Please use the table BSEG, where you give document type and period. Remember it is a primary table if your time period is vast then i dont suggest you to use this. You can make a query with table BKPF and BSIS to get the required details.
    Transaction code : SE16 or SE16N and give the above tables and check the data, before you make a query.

  • 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

  • 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

  • Outstanding amount for a Journal Entry

    Dear all
    when we create a journal entry and do a partial outgoing payment based on that Journal entry to a perticular vendor how we an find out how much is outstanding in that journal entry in table level ?????
    Thanks & Regards
    Kanishka

    Hi Kanishka
    In 2005 the system did not cater for partial allocations at journal level. The internal Recon number field woudl only get a number if all the documents in a payment were matched 100%. If just one document at row level in a payment was paid partially, the whole journal would be treated as unmatched. To make it worse, when you open the manual reconciliation function, it displays all these transactions as open, and does not show the partial amounts or full amounts for that payment, thereby allowing you in effect to reconcile "a second time" on the same documents.
    For this reason, you will have to look at VPM2 and see what amounts were allocated against each transaction. The field to look at is SumApplied (Paid to Invoice). Just bear in mind that both invoices and credit notes show a positive value in this field. However, journal debits and credits will show as positive and negative amounts.
    So in summary, for fully paid transactions you can use IntrnMatch from JDT1 but for partial allocations you need to look at VPM2.
    Hope this all makes sense, if not upgrade to 2007. It is worth it even if just for the Internal Reconciliation function that has been added.
    Kind regards
    Peter Juby

  • How to reverse a manual Journal Entry Voucher created via Custom BO

    Hi All,
    I have created a custom BO for triggering a Journal Entry Voucher for each and every Customer Invoice created in the system.Normally all Customer Invoice will be having a corresponding Journal Entry document ,apart from the default JE document I have created an additional Journal Entry for each CI through a Custom BO because of the Business requirement.I am using the default JE as the source document for the newly created JE for the same CI.
    If a custom invoice gets cancelled only the default JE will get reversed.How to reverse the newly created JE too.I there a way to carry out this reversal process through PDI using ABSL.
    Please find below the code for details.
    Custom BO contains these lines.
    import ABSL;
    import AP.FinancialAccounting.Global;
    import AP.CustomerInvoicing.Global;
    var query;
    var selparam;
    var resultset;
    var query1;
    var selparam1;
    var resultset1;
    var query2;
    var selparam2;
    var resultset2;
    query = AccountingDocument.QueryByElements;
    selparam = query.CreateSelectionParams();
    selparam.Add(query.UUID.content, "I", "EQ", this.ZJEUUID.content);
    resultset = query.Execute(selparam).GetFirst();
    selparam.Clear();
    if (resultset.IsSet())
        var CI_ID = resultset.OriginalEntryDocumentContainingObjectReference.FormattedID;
        if (!CI_ID.IsInitial())
            query1 = CustomerInvoice.QueryByElements;
            selparam1 = query1.CreateSelectionParams();
            selparam1.Add(query1.ID.content, "I", "EQ", CI_ID);
            resultset1 = query1.Execute(selparam1).GetFirst();
            selparam1.Clear();
        if (resultset1.IsSet())
            foreach (var itemIns in resultset1.Item)
                var qty = itemIns.Quantity.content;
                var pid = itemIns.ItemProduct.ProductKey.ProductID.content;
                query2 = ZProductTax.QueryByElements;
                selparam2 = query2.CreateSelectionParams();
                selparam2.Add(query2.ZprdID.content, "I", "EQ", pid);
                resultset2 = query2.Execute(selparam2).GetFirst();
                selparam2.Clear();
                if(resultset2.IsSet())
                this.ZEnvTax.content = this.ZEnvTax.content + (qty * resultset2.ZtaxPrice.content);
                this.ZEnvTax.currencyCode = resultset2.ZtaxPrice.currencyCode;
                this.InvID = resultset.OriginalEntryDocumentContainingObjectReference.FormattedID;
    //Manual creating of Journal Voucher //
    var newJV = AccountingEntry.Create();
    newJV.CompanyID = resultset.Company.ID;
    newJV.Note.content = resultset.Note.content;
    newJV.AccountingDocumentTypeCode = "00047";
    newJV.BusinessTransactionTypeCode = "601";
    newJV.TransactionCurrencyCode = resultset.Item.GetFirst().BusinessTransactionCurrencyAmount.currencyCode;
    newJV.AccountingClosingStepCode = resultset.AccountingClosingStepCode;
    newJV.ZcustomerID.content = resultset1.BuyerParty.PartyKey.PartyID.content;
    newJV.PostingDate = resultset.PostingDate;
    var sob = newJV.SetOfBooks.Create();
    sob.SetOfBooksID.content = resultset.SetOfBooksID.content;
    //Making the Credit account of Original JE as Debit account in this JV//
    var debitAccIns = resultset.Item.Where(c => c.DebitCreditCode == "2").GetFirst();
    var debitAcc = debitAccIns.ChartOfAccountsItemCode;
    var newJVGL = newJV.Item.Create();
    newJVGL.DebitCreditCode = "1";
    newJVGL.ChartOfAccountsItemCode.content = debitAcc.content;
    newJVGL.TransactionCurrencyAmount.content = this.ZEnvTax.content;
    newJVGL.TransactionCurrencyAmount.currencyCode = this.ZEnvTax.currencyCode;
    // Posting the debited account to a new GL account//
    var newJVGL1 = newJV.Item.Create();
    newJVGL1.DebitCreditCode = "2";      
    newJVGL1.ChartOfAccountsItemCode.content = "101000";
    newJVGL1.TransactionCurrencyAmount.content = this.ZEnvTax.content;
    newJVGL1.TransactionCurrencyAmount.currencyCode = this.ZEnvTax.currencyCode;
    Please respond ASAP
    Regards,
    Navin Kandasamy

    Hello Navin,
    There is an action "Cancel" in the Accounting Entry BO. Try calling that action from ABSL whenever the CI is canceled. But to do that you should have the reference of the created JEV through code.
    Hope this helps.
    Thanks & Regards,
    Meghna

  • Pld on journal entry

    hello sap experts
    how can i track     Booking Document No.( SO & PO DOC NO's)     
                                 Document date     (SO & PO DOC date)
                                   Posting Date     (SO & PO DOC posting date)
                                 vendor name
                                 vendor address in journal entry pld  pls answer asap
    regards
    Jenny

    Hi Jenny,
    IF you need to get the SO (or) PO No, Doc Date & Posting Date(invoice based) on Journal Entry.
    Try this,
    When you add the invoice at that time
    you can add the SO (or) PO No, Doc Date & Posting Date in Journal Remarks Field in invoice.
    Journal Remark field value will be store to Remarks field on Journal Entry document.
    Table -> OJDT - Journal Entry.
    Column -> Memo - Details.
    Try this,
    ->> Open the Journal Entry(System) PLD and Save as the New PLD.
    ->> Open the New *J.E *PLD and Create Database Field then Assign the Journal Entry Remarks field.
    Table -> OJDT - Journal Entry.
    Column -> Memo - Details.
    Save the PLD and run Print Preview.
    Else,
    Try to Create QPLD
    Regards,
    Madhan.

  • Journal Entry Problem

    Hello,
               I am using SAP 2007 B  PL 15 and SAP user making a journal entry document but after 115 lines users unable to add new rows its happned more then one user
    Is there limitation for rows ? if not then how can i solve this issue please take a higher priority.
    Thanks and Regards
    Rahul

    Rahul,
    You can try to create more than 100 line of journal entry but make sure if the total debit or credit digit number are not more than 13.
    JimM

  • Cannot preview journal entry in AP Invoice

    Dear Experts,
    Good day!
    One of the users who create AP Invoice cannot preview the journal entry while adding such document. SAP B1 automatically directs it to the approval process? What would be the possible cause of this? He is a limited financial user with full authorization in AP invoice, Journal Entry etc.
    I hope you could help me with this.
    Thank you.
    Regards,
    Alven

    Hi Sir,
    Thank you for your response.
    But in my unit i can preview the journal entry before SAP activates its approval process. By the way I am using SAP v9.0 PL12 and my client use only v9.0 PL05..
    I just discovered that its a program error and such bug was fixed in PL08.
    Please see SAP Notes below.
    http://service.sap.com/sap/support/notes/1905717
    http://service.sap.com/sap/support/notes/1925757
    Regards,
    Alven

  • Manual Document Number for Journal Entry

    I tried to upload invoices via DTW. I used manual doc. series for those invoices. SAP automatically creates a journal entry for every invoice but with it's auto numbering series. How can I use manual number for journal created by system? Thank's a lot.

    Hi,
    as far as I know, there is no manual option series like in document e.g. sales order.
    you could create new series and it is intended to manual operation of journal entry. By using this way, we can manage and differentiate the journal entry document numbering. Which one is for document accounting transaction journal and memorial journal (manual journal).
    Rgds,
    (http://tech.groups.yahoo.com/group/SBO_Knowledge_Village/ )

  • Mass Printing of Journal Entries

    Good Morning.
    I'm trying to figure out how to print a large number of journal entries without having to click on each one individually, but am having difficulty figuring this out.
    I need the Journal Entry/Document print out to match how the print out would look in FB03.
    I read on a previous thread that a Query can be created to do this. Is that the only way? If so, can someone walk me through how to create a Query for this?
    I've never created a Query in SAP before and am having difficulty figuring it out.
    Thank you for your help. Let me know if I need to clarify what I'm trying to accomplish.

    Hi,
    Sir.
    As far as concern there is no Tcode or BAPI avaliable for MASS Reversal of MIRO. Instead simply you
    can write LSMW for MR8M with appropriate data in .TXT format and run once.
    LSMW for MR8M is possible solution.
    I hope this helps you.
    Regards,
    Pankaj A Bhalerao.

Maybe you are looking for

  • IPod doesn't work on the iPhone

    Hi I can't get the iPod function to work at all on my new iPhone. When the button is pressed it goes to a blank screen, appears to think about if for a moment and then reverts to the home page. The phone is recognised on iTunes and the playlists I've

  • Structure of basic type

    Hi Friends, How i can know the Structure of basic type  of the following idocs: DEBMAS05, CREMAS05, MATMAS05, ARTMAS and  INVOIC02. Any documents or link would be more helpful. Any help will be appreciated. Thank you all.

  • Servlets Problem

    hi all, i have a problem about which i search lot but didnt find any answer. i made an servlet and deploy it in tomcat. My directory structure is according to standard under midp folder. In my web.xml under WEB-INF/classes i wrote <web-app> <servlet>

  • ITunes Runaway Sound Glitch?

    I just bought a new 15" Powerbook G4, quickly loaded about 8GB of my music onto the computer and am now having a strange problem... Every once in a while the music will start skipping (playing the same short part of a song over and over) while increa

  • Indian Tax in CRm

    Dear CRM Gur I n CRM we have to calculate tax and post to GL account to according to Each Region, Billing is created in CRM we want  to posting to different GL account for different region, in tax setting system is taking by default one tax code for