Payment against Reserved Invoice

Hi Experts,
We are creating Reserved Invoices through the DI API.  The Reserved Invoice is received in just fine.  After the Invoice is processed through the DI API, we then process a payment for the Invoice.  We are getting an error that states "The Base Document Card does not match the Target Document Card".
Orginally we were processing Sales Orders and then bringing in the payment.  Both were received into SAP with no errors.  We discovered that we could not link the Payment to the Order, so we changed to using Reserved Invoices.  Now we are getting the above mentioned error when processing the payments.
Does anyone have any suggestions has to why we could be getting this error?  What would be considered the Target Document?
here is the payment code:
SAPbobsCOM.Payments vPays = default(SAPbobsCOM.Payments);
                    vPays = (SAPbobsCOM.Payments)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
SAPbobsCOM.Documents SapInvoice = default(SAPbobsCOM.Documents);
                    SapInvoice = (SAPbobsCOM.Documents)vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
int SapOrder = GetSapInvoiceNumber(OrderNumber);
SapInvoice.GetByKey(SapOrder);
vPays.Address = SapInvoice.Address;
vPays.CardCode = SapInvoice.CardCode;
vPays.DocDate = PayDate;
vPays.DocType = SAPbobsCOM.BoRcptTypes.rCustomer;
vPays.DocObjectCode = SAPbobsCOM.BoPaymentsObjectType.bopot_IncomingPayments;
vPays.CashAccount = "23500000";
vPays.JournalRemarks = journal;
vPays.Invoices.DocEntry = SapInvoice.DocEntry;
vPays.Invoices.DocLine = 0;
vPays.Invoices.SumApplied = SapInvoice.DocTotal;
vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Receipt;
lRetCode = vPays.Add();
Thanks,
Josh
Edited by: Josh Mellette on Apr 28, 2009 5:09 PM

Dear Josh Mellette,
The invoice type should be invoice 13 but not Receipt
vPays.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;
and you need to set cash sum if you pay the invoice by cash
vPay.CashSum = SapInvoice.DocTotal;
and please check if the DocEntry of the invoice is correct by check OINV table.
Best Regards
Jane Jing
SAP Business One Forums team

Similar Messages

  • How to create Payment against the invoices in R12 using API/Interface table

    Hi Experts,
    I need your help.
    As per my requirement , we need to create the payments against the invoices using the payment information provided.
    Earlier the Payments against the invoice is done by (3rd party system) in 11i.
    But, as a part of R12 implementation,
    The requirement is like now they are going to provide us and flat file(having below payment information) and we need to create the payment with these information.
    COLUMNS PROVIDED
    SOURCE
    INVOICE INTERNAL NUMBER #
    ACCOUNTING SEGMENTS
    DEBIT/CREDIT
    AMOUNT
    CURRENCY
    BANK ACCOUNT
    PAYMENT DATE
    DUE DATE
    PAYMENT METHOD
    PAYMENT TERMS
    BATCH ID
    We need to create an inbound interface to achieve the below requirement.
    1. Create the payments in oracle R12 with the above payment information. (unable to find the way please suggest).
    2. Creating the Journal entries. -> We are having GL_INTERFACE & Journal Import program to import the journals.
    3. Finally we have to posting the same into GL.-- Interface & Import programs available.
    Is there any api or interface tables can be used to create the payment against the invoices in r12?
    Could you please help me to achive my above requirements.
    Any sample code or reference will be a great help for me.
    Waiting for your response.
    Thanks,
    Thiru.

    Hi Thiru,
    Perhaps these links can help:
    http://ccchuanblog.blogspot.in/2010/12/oracle-ap-payment-api.html
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/ap-invoice-payment-need-help-4037407
    See "Understanding Oracle Payments APIs" here:
    http://docs.oracle.com/cd/B40089_10/current/acrobat/120ibyig.pdf
    If this answers your question, please mark the post. Thanks.
    Kristofer Cruz
    Edited by: Kristofer Cruz on Sep 5, 2012 2:41 PM

  • Error whilst posting a payment against an invoice ..

    I'm trying to post a payment against an invoice but i'm getting an error saying 
    "Error -10: Base Document Card and Target Document Card do not match"
    The code is shown below
    // Post a payment against this invoice  ..
                Payments oPay = (Payments)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments);
                oPay.CardCode = form.DataSources.DBDataSources.Item("@MyFileName").GetValue("U_BPCode", 0);
                oPay.CardName = ((EditText)form.Items.Item("CardName").Specific).Value;
                oPay.Reference1 = ((EditText)form.Items.Item("DocEntry").Specific).Value;
                string workFld = ((EditText)form.Items.Item("U_Balance").Specific).Value;
                oPay.CashSum = Convert.ToDouble(workFld);
                oPay.CashAccount = "161010";
                oPay.DocType = BoRcptTypes.rCustomer;
                oPay.Invoices.DocEntry = invoice.DocNum;
                oPay.Invoices.DocLine = 0;
                oPay.Invoices.InvoiceType = BoRcptInvTypes.it_Receipt;
                oPay.Invoices.DiscountPercent = 0;
                oPay.Invoices.SumApplied = invoice.BaseAmount;
                oPay.Invoices.Add();
                int rtnCode = oPay.Add();
               Utility.handleAnError(rtnCode);
    I've checked the obvious that the invoice.DocNum does relate to the business partner in oPay.CardCode ..
    Anyone any ideas ?  The invoice is a service invoice and I don't have any Sales Order or anything for it  ..
    TIA

    Rob,
    which ?
    Robins or mine ?
    EDIT: is see Robin was right
    i place this in my "answered questions" book for other members
    regards
    David
    Edited by: David Nussböck on Jun 3, 2008 3:11 PM

  • How to do Payment against Proforma invoice with excise duty?

    Hi all
    I am using SAP B1 9.0
    I have a scenario like, I want to make a proforma invoice partially/fully for the customer order(sales order) with excise duty and I will receive payment against this invoice.
    I tried to use AR down payment request , thus I can create proforma invoice for partially/fully and I can do incoming payment also, but the problem is I can't use Excise duty(CENVAT) in down payment document. Is there a way or work around for my issue?
    Thanks in advance.
    Pravin

    Hi,
    In standard SAP B1, we can't select Excise tax code in Down payment request document and it will not allow also
    Find below the workaround solution:
    1. When you are raising Down payment request, enter DPM value including Excise Duty. i.e. If the base value is 1000 and Excise duty 120, enter 1120 in DPM value, the percentage will become 112%. In case of partial also calculate partial excise duty and add in base value and enter in DPM value.
    2. Based on Down payment request book the incoming payment
    3. Adjust Down payment request in final AR Invoice it will get adjusted in total value.
    Note: The Excise duties will book at the time of OEI booking (as per legal req). We can't book the excise at the time of Down payment. 
    Regards,
    Kiran 

  • Clear Down payment against Vendor Invoice through Automatic Payment Program

    Hi
    We have to adjust vendor invoice against down payment (Advance) made through automatic payment program (F110)
    Please guide us is there any configuration require to consider Down payment transactions during F110 to clear against Vendor Invoice
    Ex :1. Advance payment made through special GL indicator 50K.
    2. Invoice document 75K posted in vendor.
    3. Now we have to clear down payment made (50K) against 75K through F110.
    Regards
    Sreenivasulu

    Hi srinivasulu,
    First u create down payment request through F-47 and define the spl gl indicator for down payment and assign the gl account for down payment gl code..
    Regards,
    Nivas

  • Is There any API in receivables payment will made against closed invoices ?

    Hi ALL,
    i have requirement as below.
    i am doing AR Invoice Data Migration for Instance 11.5.5 (as a Source Instance) to the new instance R12 (as a target instance).
    Both open and closed invoices will have to be migrated from 11.5.5 to R12 to provide the drill down facility for audit purpose.
    To meet the above requirement all the open and closed invoice will be picked up from 11.5.5 ; and imported into R12..
    Subsequently, full payment will be made in R12 against all closed invoices in 11.5.5 to close those invoices by using any APIs?
    can some one explain is there any API in receivables payment will made against closed invoices.
    Thanks,
    VSR.

    Hi,
    Can you be clear on your question: You want any API to make payment against closed invoices?
    To me, You are making things complex. We can achieve the Migration of Closed invoices using following two procedures:
    Procedure: 1
    Ask Functional Guy to create a Transaction Type 'Closed Invoices' with Open to Receivables Flag not checked. +(You can uncheck Post to GL flag also, if required depending on your migration strategy)+. Status at Transaction Type if taken as 'Closed' it will be appropriate.
    Invoices migrated using this Transaction Type shall not be shown as Outstanding but will be useful for Audit.
    Procedure: 2
    Consider the amount due Original of Closed Invoices and migrate them with the amount as Amount due remaining.
    While migrating populate Receipt Method,Payment Method and Instruments useful for Automatic Receipts.
    Once Create Automatic Receipts Program is run, it will close all these invoices. Note: We require dummy bank here which points to a Clearing account.
    Automatic Receipts program is also an API.
    In the above 2 ways, we are acheiving the Goal by using Functional knowledge rather than Technical. And I think following Functional way is better and less time consuming.
    Please discuss with your Functional consultant if required. You can succeed.
    Regards,
    Sridhar

  • Customer payment report against sales invoice

    Dear Experts.
    My client has requirement to track customer payment against sales invoice. Actually client sometimes do partial payment also. I know we can get from bsid(open item) & bsad(cleared item) table. I unable to find actual required data.
    regards
    sanjay verma

    Dear Sanjay,
    Apart form the FBL5N,  Please check the below path for more standard reports which helps you to fulfill your requirement.  Hope its helpful.
    In SAP Easy Access screen
    Regards,
    Inthiyaz

  • Posting Cash Payments and Clearing Invoices

    Hi everybody,
    Can anybody suggest a transaction to post payments (money) and clear FI invoices.
    I am looking for a transaction where the user can pull an invoice by doing a search by invoice number, or by PO number, and to post a payment against the invoice, do clear it down.
    I tried the transaction F-28 and, apparently, I can´t search the invoice by the PO number.
    Appreciate your help!
    Thank you very much!
    Kind regards
    Drimas

    Hello,
    If I understand correctly you are trying to make payment for vendor invoice. Whereas, the transaction code F-28 relating to Customers.
    You have two option in SAP to post invoice
    1. MIRO - If you have Purchase Order details and your MM module is in place, then you can post. However, before posting MIRO, you should have Purchase Order in place ME21N and goods receipt must have been made in MIGO.
    2. If it is pure FI Invoice, then you can post the invoice through F-43 or FB60
    Now for any of the invoices 1 or 2, you would like to make the payment,
    You can make the payment by using
    F-53 - Creates Payment Document (To assign check manually use FCH5, to assign automatically use FBZ5)
    F-58 - Creates the Payment document as well as assign the check automatically.
    F110 - For Automatic Payment Program
    If you want to void the check, then FCH9
    If you want to void the check as well reverse payment document FCH8
    If you have not assigned any check so far, but would like to reverse the payment document, then use FBRA.
    Once you have reversed the payment, if you still wanted reverse invoice document, then use FB08.
    If you want to see the check register, use FCHN.
    To update the check number on assignment or reference field, you can use FCHU.
    May be some of transaction codes are irrelevant for you, but just for your future reference, I have provided additional information.
    Please let me know if you need any further information.
    Regards,
    Ravi

  • Down Payment against PO - Urgent

    Hi,
    I am MM consultant my issue
    When user entering down payment in F-47
    for a purchase oder the system is allowing the amount more than PO amount  which is logically incorrect.How can I prevent this ?
    Regards,
    Chetan.

    Hi,
    At the time of down payment system will not validate the PO amount. At the time of payment against vendor invoice system automatically set off the balance amount to the vendor account
    For Eg.: If you pay down payment more than PO amount  and you posted an invoice against a PO at the time payment run system will posts a credit memo against a Vedor
    OR
    If you have posted a down payment less than the PO amount at the time of payment run system deduct the down payment from the toal invoice amount and it creates a clearing document for the balance amount
    Hope this will helps. If it helps award me points
    Cheers
    Umakanth

  • Automaically load data in payment against invoices in payable

    Dear Experts
    My scenario is following
    Suppose I have two
    hundred invoices then I have to issue 200 checks against these invoices, Its means that
    I have to put manual entry two hundred times for two hundred checks issues, I like to avoid to put two hundred time manualy in payments
    and want to upload data automatically for two hundred checks in payments form against two hundred invoices.
    Is there any API or open API?
    Thanks

    Hi Sharma,
    suppose I have 100 invoices, they had same same supplier type with same pay order with invoice number 1..100 in
    order but supplier names are different , and want to issue 100 check for each invoice, I want to issue checks
    of the same bank and branch, so I want to upload these data of 100 invoices automaticaly in payment form, Just
    need to know any oracle built in procedure,concurrent program or api etc, If this can not help then
    I like to writhe procedure to insert data into payments form, but I need to know the correct tables to insert payments
    base on these invoices.
    I shall be very thankful of your kind help.
    once again I want to clear my logic, I want to avoid manualy entry for 100 invoices, and these invoices are with same
    pattern supplier type and are in order.
    Thanks

  • How to generate 3 payment due dates& 3 posting against single invoice?

    Hello Experts,
    Kindly provides some inputs on below requirement.
    For example :- In the Utility Bill,
    Consumption months: June, July, August
    Meter Reading taken in August
    Billing Months: September, October, November
    Bill generated in August
    Consumer receives the bill on September month
    Payment Due dates: 12 Sep 2009, 12 Oct 2009 and 12 Nov 2009
    Issues-:
    1.How to generate three posting against single invoice?
    2.How to generate three payment due dates for above postings in three consecutive months since payment due date logic is incremental in nature here, e.g.
    1st due date = posting date + 15 days
    2nd due date = 1st due date + 30 days
    3rd due date = 2nd due date + 30 days
    Requirement description:-
    The utility generates bill quarterly for domestic consumers. For such consumers, the utility takes reading from the consumers premises after end of consumption period (quarterly ) and generates bill on the 1st billing month (here 1st billing month is September).
    In the bill the utility divides total consumption into three parts (considering each part for each consumption month) and calculates all charge heads separately on each part. It however, consolidates and generates a single bill having three rows, each row showing charge heads of each consumption month and also net and gross amount to be given for each consumption month.
    Moreover, three postings have to be generated in FICA against that single bill. Also, it provides three due dates to the consumer, each date falling in each billing month, to pay the above three net amounts respectively. Dunning and other activities should be triggered if the consumer fails to pay the stipulated amount by corresponding due date.
    Looking forward for valuable suggestions
    Thanks in advance
    Regards,
    Vaseem
    Moderator note - question reposted - OP notified of violation Issue on quarterly bill
    Edited by: William Eastman on Jun 3, 2010 3:25 PM
    Edited by: William Eastman on Jun 3, 2010 5:01 PM

    Hello Experts,
    Kindly provides some inputs on below requirement.
    For example :- In the Utility Bill,
    Consumption months: June, July, August
    Meter Reading taken in August
    Billing Months: September, October, November
    Bill generated in August
    Consumer receives the bill on September month
    Payment Due dates: 12 Sep 2009, 12 Oct 2009 and 12 Nov 2009
    Issues-:
    1.How to generate three posting against single invoice?
    2.How to generate three payment due dates for above postings in three consecutive months since payment due date logic is incremental in nature here, e.g.
    1st due date = posting date + 15 days
    2nd due date = 1st due date + 30 days
    3rd due date = 2nd due date + 30 days
    Requirement description:-
    The utility generates bill quarterly for domestic consumers. For such consumers, the utility takes reading from the consumers premises after end of consumption period (quarterly ) and generates bill on the 1st billing month (here 1st billing month is September).
    In the bill the utility divides total consumption into three parts (considering each part for each consumption month) and calculates all charge heads separately on each part. It however, consolidates and generates a single bill having three rows, each row showing charge heads of each consumption month and also net and gross amount to be given for each consumption month.
    Moreover, three postings have to be generated in FICA against that single bill. Also, it provides three due dates to the consumer, each date falling in each billing month, to pay the above three net amounts respectively. Dunning and other activities should be triggered if the consumer fails to pay the stipulated amount by corresponding due date.
    Looking forward for valuable suggestions
    Thanks in advance
    Regards,
    Vaseem
    Moderator note - question reposted - OP notified of violation Issue on quarterly bill
    Edited by: William Eastman on Jun 3, 2010 3:25 PM
    Edited by: William Eastman on Jun 3, 2010 5:01 PM

  • Payment to one vendor and charge TDS for other no.of vendors against same invoice

    Is it possible to book invoice and payment to one vendor and charge TDS for other 3-4 vendors against same invoice.
    Is there any config require and any such process exist?

    Hi,
    Please go through the following process and see whether it suffice your requirement
    1. Create Vendor Invoice.
    2. Go to transaction code F-53
    Click on
    Click on
    Click on
    Click on Document - Simulate
    If entry is found O.K. Click on
    Hope, this solves your issue else revert.
    Regards,
    Tejas

  • Customer payment  against invoices

    Dear friends .
    Please suggest me that is there any report in FI for customer payment against invoices
    Customer No     Name     Company Code     Fiscal Year     Invoice No     Invoce Posting Date     Invoice Amount     DZDoc No         DZ Amount     DZDoc Posting Date     Planned Cash Discount Amount     Actual Cash Discount Amount     Short Payment     Assignment     Sales Office     Profit Centre     Clearing Document     Clearing Date     Base Line Date     Net Due Date     Days     Interest Rate     Interest Amount     Terms Of Payment
    I will be highly thank full to you all.
    Please help me .
    yours
    vivek

    sir , thanks for your valuabel suggestion but problem is there are so
    amy fileds that are based on Amount     DZ Amount  CD Amount
    and rest are missing .
    Please suggest some FI based report for the same.
    yours
    vivek

  • How to clear the down payment against the vendor invoice in the payment program?

    A down payment is made $25 Later an invoice is posted for $100 Now i want to Pay $75 to Vendor But the Automatic payment program  is not clearing the down payment against the vendor invoice. Could you please help how to clear the down payment against the vendor invoice in the payment program?

    Swathi,
    Need your help i have a strange situation
    1) F-48 and document posted with document no = 15..... in company code = L002 with payment block getting populated automatically
    2) F-48 and document posted with document no= 15..... in company code = Us11 without payment block and the screen does not even show payment block, I had to check this from BSEG table
    My question is
    a) How and where does this payment block is triggered through configured and how to process next steps.
    b) when I use F-48, how do we do the actual payment, is there a check printing and linking it to the KZ document or is check printing done outside the system and the KZ document type does not have any linkage.
    c) If I do FB60 for a higher amount how do we pay partial amount.
    Your response is appreciated.

  • Post an incoming payment ( check ) against an invoice

    Hi
    I am trying to post an incoming payment ( cheque ) against an invoice. I keep getting no matching records found ( odbc error -2028 )
    Has anyone got a simple example I could use as a comparison please ?
    Thanks
    Regards Andy

    I had a similar problem.  Just make sure you have the proper Invoice number and that everything exist in SAP
    This error means that to create your incoming payment, the SDK needs everything created prior to make an incoming payment.   Exactly as if you would do it in SAP
    So just make sure everything is there and that you refer to the right Invoice
    Good luck

Maybe you are looking for