Payment reconciliation with A/R Invoice + close Invoice

Hi Again,
I am doing a Payment directly from A/R Invoice; but the A/R Invoice is still Open and there is no reconciliation between the Payment and the A/R Invoice.
Any code sample you can give me to close A/R Invoice with reconciliation of the Payment, and if half paid I assume the A/R Invoice is still open and the A/R Invoice is reconciliated with the payment?
See my code below which is missing the reconciliation.
Thank you
Rune
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
                    oPayments.CardCode = vmp_CardCode_string;
                    oPayments.DocDate = DateTime.Now;
                    oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
                    oPayments.TaxDate = DateTime.Now;
                    SAPbobsCOM.Recordset oRecordset_BankAccount = null;
                    oRecordset_BankAccount = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
                    oRecordset_BankAccount.DoQuery("SELECT * FROM [dbo].[@PAY_TYPE] WHERE [U_PayMethod] = '01'");
                    oRecordset_BankAccount.MoveFirst();
                    if (oRecordset_BankAccount.EoF == true) // No Records
                    else
                        vmp_BankAccount_string = Convert.ToString(oRecordset_BankAccount.Fields.Item("U_BankAccount").Value);
                    oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343"; //"1010140-001";
                    oPayments.TransferDate = DateTime.Now;
                    oPayments.TransferReference = vmp_CardCode_string;
                    oPayments.TransferSum = vmp_Amount_double;
                    vc_Message_Result_Int32 = oPayments.Add();

Hi,
I assume I have to add following code to my payment to close the invoice; see below.
But I get following error:
Invalid total  [(----) 131-44]
Thank you,
Rune
oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
oPayments.Invoices.AppliedFC = 0;
oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
oPayments.Invoices.DocLine = 0;
oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
oPayments.Invoices.SumApplied = vmp_Amount_double;
oPayments.Invoices.Add();
oPayments.CardCode = vmp_CardCode_string;
oPayments.DocDate = DateTime.Now;
oPayments.JournalRemarks = "Incoming - Payment Cash";
oPayments.TaxDate = DateTime.Now;
oPayments.CashAccount = vm_CachAccountNumber_string;    //"_SYS00000000342"
oPayments.CashSum = vmp_Amount_double;
vc_Message_Result_Int32 = oPayments.Add();
if (vc_Message_Result_Int32 != 0)          // Check the result

Similar Messages

  • Can one incoming payment matches with few BP code's invoices?

    Hi,
    My scenario is the HQ paying for the branch offices in one cheque but the branch offices having their own business partner code in the database. Can user make one incoming payment and select the invoices to match from few different business partner?
    I realised this can be done if we use the Consolidate BP function in BP master but this will make the statement of accounts to be consolidated as well. Anyway that if this function is activated but statement of accounts does not combined? Kindly advise, thanks.
    Regards,
    MH

    Hi,
    What i mean is that can all those BP's statement is not consolidated into one statement instead of separate?
    Current setting is once consolidate BP function is activated, all related BP's statement will be consolidated. Any workaround to separate the statement?
    Thanks.

  • How to reconcile AR down payment Request with AR Invoice?

    Dear All,
    SAP B1 2007A SP01 PL07 version.
    I have created one AR down payment Request with total amount 1000.00, and then post incoming payment to paid the AR down payment Request, and the AR downpayment request then closed.
    Then, I add one AR Invoice with amount 1000.00.
    After that, I want to add incoming payment , then I select both (AR downpayment request & AR invoice), but cannot add the incoming payment because the total amount is zero (1000.00 - 1000.00=0.00).
    How can I solve this problem?
    Thanks in advance for any help.

    Hi Kerstin,
    Thank you for you reply.
    I did test your solution, but its only work for SAP 8.8. But now i'm working in SAP 2007A version. For 2007A version, downpayment request cannot be drawn to invoice.
    Anyway, i find out one way. If I add the payment together with another invoice, thats mean the total payment is not zero, then its work. The solution is, make sure the total payment is not zero then it should be ok.
    Thanks to everybody for your fast reply. Thank you so much and really appreciate your help.
    Regards,
    Mat

  • Invoice is payment bolck with indctor  'R'

    HI ALL,
    I'm trying to post the invoice it is having price differnce .It have bolck payment indicator with "W"but last invocies are block indicator with 'R'
    When 'R' is trigger and when 'w' is trigger
    And how to block payment indictor with 'R'
    Thanks
    HAppy

    Hi
    Pl. go through
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm

  • Partial Payment posting in AR and clearing of invoice on fifo basis

    Dear Gurus,
    It is related to partial incoming payment in AR and clearing of invoices on FIFO basis, let me clarify my requiremnt through an Example
    Assume there an ivoice of PKR 100,000 in customer Account XYZ
    Company received partial PAyment of PKR 50,000 on specific date
    Data entry clerk enters payment in F-28 in partial payment tab and assign it to invoice (please note that at present payment is not being assigned and both item invoice and payment remains open without any assignment with each other)
    assume next payment which data entry clerk tries to enter with this refernce is PKR 60,000 while reamining amount with this invoice refernce is PKR 50,000 ,system should not allow to enter excess amount with partial paid invoice i.e. user has to be restricted to enter PKR 50,000 against this invoice
    As data entry clerk enter partial payment and there is any other open invoice, system should not allow to enter payment till clearance of first open invoice
    means specific requirement is
    in case of partial payment  with refernce to invoice, at the time of data entry system should chekc that no any other invoice is open in AR ledger
    as partial payment document is entered system assign this document to Invoice
    if data entry clerk tries to enter acess amount with refernce to invoice, system should not allow means Invoice amount = Payment amount
    please advice procedure to meet this requirement
    BR
    sajida

    Hi,
    For posting partial Invoice, At the time you received 50000, post it through F-28 only as a partial knockoff against a particular Invoice and at the time you enter second part of the Payment in excess of 50000, the system will not accept as the remaining amount of the Invoice is 50000 only.
    For Fifo Invoice Clearing -
    At the time of Posting F-28, click on "Distribute by age" the system will automatically clear the value on FIFO Basis.
    Regards,
    Prashant

  • Are there any payment gateways that will display the BC invoice number in transaction info?

    MI've been told by BC suppor that this functionality is not available for Paypal, and am wondering if any Payment gateways would support this. My client wants to see the invoice number (from BC) in each transaction in Paypal to be able to easily reconcile orders and payments. Other pamynet info shows up, and it would be great if the invoice number would come through as well.
    Any help?

    Just have a follow up question about this. My client's accounting dept is having some issues with how the funds are deposited into the bank account without any identification to describe where it is coming from. When you say that "BC sends an order number to the gateways," do you mean that once someone places an order the order number is passed to the payment gateway with all the rest of the payment info? So that order number could be seen in PayPal, for example, but once the client deposits those funds into their bank account, that information would not necessarily be submitted along with it, correct? Thanks.

  • Invoice Close

    Hi,
    I need some details about 'Invoice Close' that comes under the Purchasing Options. I just know that it is a tolerance value, but I want to know the relevance of 'Invoice close=100', 'Invoice close=0' and 'Invoice Close= number between 0-100.
    I also wanted to know what closed_code = 'Closed for Invoice' in a PO means.
    Please help me out with this issue
    Thanks,
    Divya

    Welcome to the forums !
    This forums is dedicated to discussions about Oracle Documentation.
    Pl re-post your question in a more appropriate EBS forum at http://forums.oracle.com/forums/category.jspa?categoryID=3
    You may find your answers at https://etrm.oracle.com or the EBS docs for your release at http://www.oracle.com/technetwork/documentation/applications-089559.html
    HTH
    Srini

  • Dunning letters printing with zero balance and no invoice listing

    How to trouble shoot 'Dunning letters printing with zero balance and no invoice listing' problem

    As per my understanding it could be due to OB22 settings.
    refer following SAP notes
    335608,191927,
    373296

  • How to Restrict Return Sales Order with reference to a cancelled invoice

    SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
    Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
    Kindly share your possible solutions.

    Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
    Kindly go through at Copy Controls
    T.CODE:VTAF
    in that some body might have maintained between S1 invoice to RE Sales Document.
    Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
    Rewards if Usefull
    B.Shyam Sunder
    SAP SD Consultant

  • Reserve Invoice closes Source PO or SO - But Credit Memo does not open it

    Hi All,
    I try to reopen SO or PO in 8.82 using Reserve Invoice.
    If I use Delivery or GRPO after order - all it's ok.
    1. Create SO or PO.
    2. Create Delivery or GRPO
    3. Create Return or Goods Return - SO or PO opened
    If I use Reserve Invoice after orded - nothing pannened.
    1. Create SO or PO.
    2. Create Reserve Invoice
    3. Create Credit Memo - SO or PO doesn't opened
    At the Administration -> System Initialisation -> Document Settings -> Per document -> Purchase Order (and Sales Order)
    checkbox alredy ticked 'Reopen Doc. by creating returns/Goods Returns/Credit Notes Based in It'.
    Is it normal for reserve  invoice?
    Thank you for your help.
    P.S. Already see A/P Reserve Invoice closes Source PO - But A/P Credit Memo does not open it
    And there both variant  worked

    Hi
    I post to support about my problem.
    The problem is in the standard process. You must create a Delivery after Reserve Invoice. And only after that all it is working.
    Thank you for your replay. This post is closed.
    Regards
    Konstantin

  • ARE-1 creation with reference to multiple excise invoice

    Dear All,
    Please tell me how to create ARE-1 document with reference to multiple excise invoices which are having same sold to party and ship to party.
    Regards,
    Sagar Wairagade

    Hi,
    In J1IA101 enter the first excise invoice in the releavnt field  and hit enter and once this excise invoice is updated in the tab,excise invoice summary enter the next excise invoice in the same field as before and hit enter.In this manner you can enter as long as the sold to party and Export type are the same.

  • Report with goods receipt value and invoice posting value

    Is there any standard report with goods receipt value and invoice value (the value with which invoice is posted.

    Hi
    Please check MC$4 transaction, mey be helpful.
    regards
    Srinivas

  • Invoice Reduction Invoice Payment Terms - Due Date

    Hi gurus,
    At the time we apply invoice reduction in MIRO screen, both invoices (regular and reduction) take vendor payemnt terms (for ex Due in 30 dyas). Is it possible to assign the invoice reduction invoice a fix payment term "Due Immediately" via configuration?
    Thanks in advance

    Hi there,
    Im afraid there is no setting that will have the system post different payment terms in the invoice reduction
    than what is in the invoice. In MIRO, if you use PO reference to create the IV document, the payment terms are copied from the PO and not from the vendor master. The business reason is, that the PO represents the contract between vendor and customer including the terms of payment. Also check out note 322430 as this gives a good description of the proposal logic for the terms of payment.
    I hope this helps,
    Best regards,
    Adam.

  • Payment Method not in F110 for MIRO invoices

    Good day all
    One of our company codes are experiencing the following problem.
    1. The payment method is maintained in the vendor master.
    2. When doing a FB60 (sundry invoice) and the F110 (automatic payment) the payment program picks up the invoice for payment and all 100%.
    3. When doing a MIRO (LIV invoice) and then F110, the payment program issues error that no valid payment method is found for the MIRO invoice.
    4. This is happening on the same vendor account.
    What can the reason be that the payment program picks up the payment method for the sundry invoice but not for the MIRO invoice?
    Any advice or ideas?
    Thank you all.
    Lu.

    Hi Reema,
    I also faced similar problem earlier. Following could be the reasons:(These worked for me)
    1. The vendor is already picked up in an earlier run and that run is not fully processed.
    2. The amount is not yet due
    3. Sometimes, if the address in the vendor master is not fully updated, it fails to pick it up. This usually happens if you have enabled jurisdiction codes etc
    Hope this helps
    Regards,

  • Payment to Vendor, clearing document and relative invoice

    Hi experts.
    I have this doubt: if i have a payment in BSAK table that clear different invoices.
    So which field on BSAK table for a payment permit to derive uniquely each invoice?
    Thanks a lot.
    Regards.
    Andrea

    Sorry,
    perhaps i am not clear.
    So , i have an payment in BSAK
    blnr buzei AUGBL  
    50     1       50
    50     2       50
    So , if the field REBZG is blank, how can i link each payment uniquely to an invoices? So, in this scenario , the clearing document isn't sufficient because the relative invoice have the same clearing document.

Maybe you are looking for

  • Unable to start the Universal Connection Pool error

    Hi, I am trying to deploy two instances of one and the same web application on Tomcat 6. I have application test.war, I have copied and renamed it to test2.war and moved both wars in Tomcat' webapps folder. One of those (which Tomcat decides to start

  • Classic in OS 10.5.8

    Can I access files form OS 9 by using Classic with OS 10.5.8 ?

  • HTTP SOAP Client

    Hi guys, I'm very new to web service technology & need your help writing a simple soap client to call a web service. the soap request should be : POST /lightboxedit/LBEDataService.asmx HTTP/1.1 Host: abourne.dyndns.org Content-Type: application/soap+

  • Billing;what is customer service contact number for billing

    Is there a customer service contact for billing for Adobe send

  • Requirement Tracking number used in WM modules

    Dear all, What are the different Requirement Tracking number used in WM modules. Like we use 632 for auto TO creation for outbound delivery. please suggest me Regards, Rock