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

Similar Messages

  • 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

  • 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 while posting Incoming Payment.

    Hi
    I Got this error while posting Incoming Payment. What do this Error Mean. How to solve it.
    Error:
    SBO_Application_ItemEventAP Object reference not set to an instance of an object
    Thank You

    Hi Gayathri,
    Try to disconnect the add-ons if any and then add the incoming payment.
    Regards,
    Vijay kumar

  • Error while posting Down Payment

    Hi,
    I got error while posting down payment in F-48. the error was "Special G/L Indicator P is not defined for down payment".
    Thanks,

    Hello,
    "Special G/L Indicator P is not defined for down payment" because you have not maintained this indicator in your system. For maintain this you go to TC: OBYR, dbl down payment indicator P, , give your chart of accounts and press enter. Here you have to give normal Recon A/c and Alternative Recon A/c and save it. Now, go to TC: F-48 and you will able to post it now.
    Thanks
    Para

  • 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

  • Error Message Posting a Non-PO Vendor Invoice

    The instance is ECC 6.0.
    While trying to post a non-PO vendor invoice, I am getting the below error message:
    "RKEAK-FIELD(12) is not an input field
    Parked document could not be posted 00 S 347 RKEAK-FIELD"
    Does anyone ever bumped into the same error message or have an idea what is generating the error?
    The issue started happening after one of the accounts in posting (Vendor Discounts) which is a CE was changed to post to Profitability Segment in OKB9. This error was not faced earlier when the account was posting to Cost Centers.
    We are using new GL and Doc Splitting functionality.

    Thanks for your reply.
    I checked the note and it says the affected release are 3.0 D to 3.1G. But we are on ECC 6.0. Moreover, as per the note this is an issue with Tcode FB01, but I am using tcode FB60 for creating the non-PO invoice...
    Please let me know your thoughts...

  • 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

  • Error while posting Incoming payments from customers

    Hi Experts,
                      when i am trying to post Incoming payments from customers in F-28,The payment difference amount is Rs 5.
    while simulating the following error 
    "TAX CODE C2 FOR COUNTRY IN HAS BEEN DELETED OR INCORRECTLY CHANGED"
    MESSAGE NO.FS201

    Hi,
    OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
    You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
    Regards,
    SDNer

  • HU Error-While posting the PGI against the Outbound Delivery

    Hello,
    I am facing the issue,when posting one PGI against the outbound delivery.The error is as below:-
    " Negative stock: 8,000 material: 51238495FA on HU 00233034307019924815"
    The error message detail is :-L9-604"
    Could you please let me know,how we can overcome this issue.
    An earliest response would be appreciable.
    Thanks
    JP

    Have you completed TO and ITs confirmation process for the outbound DElivery ?.If yes then if you are using warehouse managed material then check the stock in LS26  it should be 916 location and then check the handling unit stock.
    Check the Handling unit status is 01 status or  some other status.If it is 01 then definatly sytem will allow you PGI.Check your HU history is your delivery is final document or not .It seems some mismatch with delivery qty and handling qty in your case.

  • Post incoming payments based on Invoice number.

    Hello,
    I would appreciate your help on the following question. POINTS AVAILABLE. <b>Is there a way for us to post an incoming partial payment from a customer based only on the invoice number?</b>
    For example, a customer has several open invoices and want to make a partial payment on 1 of the invoices. <b>I know we can do it using F-28 (Partial Payments tab), however, is there any other way to post a payment to a particular invoice without entering a customer number?</b> Using F-28 brings up all the invoices and pmts for the customer.
    Thanks in advance!

    <b>This is the documentation about the program:</b>
    <b>F.13</b>
    This program clears open items from customer, vendor and G/L accounts (in particular, GR/IR clearing accounts) automatically.
    It selects all accounts specified in the value sets that have debit and credit postings.
    The following items are not cleared:
    Noted items
    Statistical postings and special G/L transactions of the type bill of exchange
    Items with withholding tax postings
    Down payments can only be cleared if down payment clearing for the same amount has been posted
    The remaining open items are grouped according to fixed system criteria:
    Company code
    Account type
    Account number
    Reconciliation account number
    Currency key
    BSID-WAERS for customers
    BSIK-WAERS for vendors
    BSIS-PSWSL for G/L accounts
    Special G/L indicator
    The program also groups items according to a maximum of five user criteria. Note that the trading partner number and the business area are no longer fixed system criteria (in comparison to the former clearing programs SAPF123 and SAPF123W). Therefore, if you want to group by business area or trading partner number, you have to enter these as user criteria.
    Clearing takes place when, for the group of line items selected according to the above criteria, the balance in document currency (for customers and vendors) or in update currency (for G/L accounts) is zero. The date for clearing is the clearing date according to your selection specifications. In an update run, if the clearing transaction is successful, the clearing document number is specified.
    During the program run, all accounts in which clearing can be performed are blocked. They are then unblocked again after the clearing transaction. Accounts that are blocked by other transactions or that are intended for the automatic payment run are not considered in automatic clearing
    <b>OB74</b>
    Prepare Automatic Clearing
    In this activity you enter the criteria for grouping an account's open items for automatic clearing. The clearing program clears the open items that are grouped together if their total balance equals zero in local and foreign currency.
    You must enter the following standard criteria:
    account type
    account number or a number interval
    You can also enter a further five criteria.
    You select these five additional criteria from the fields in table
    BSEG or BKPF. If possible, you should choose fields that are also
    contained in table BSIS (G/L accounts), BSID (customers), or BSIK
    (vendors). You can determine the field names by displaying the tables
    in the Data Dictionary, which you reach by choosing
    Tools -> ABAP Workbench and then Dictionary.

  • Error when posting Down payment with reference to down payment request

    Hi Experts,
    In October of 2010 we upgraded from version SAP 4.7 to version 604 SAPKH60406.  
    With this upgrade we decided to select the following FM setting:
    "Flag to activate down payment request update to PO history"
    If this flag is set, down payment requests are updated to the purchase order history. In addition, when you create a down payment referencing this down payment request , the down payment request is cleared by the down payment.
    Use- Set this flag if you want to see the down payment requests  in the purchase order history.
    So, since October 2010, the Down payment requests have been updated to the PO history (note - no update of the down payment request was made to the PO status tab) and the down payments (made with reference to the down payment request) have been clearing the DP requests.
    Today we have applied packages SAPKH60407 - SAPKH60409 and we are in the process of testing. 
    Now we are experiencing errors when processing down payments:
    1. create the down payment request (F-47) - this is OK
    2. create the down payment (F-48) with reference to the down payment request - ERROR MESSAGE F5373 - "Order value will be exceeded"
    Can anyone please explain why this is happening?  We would like to keep the "Flag to activate DPR update to PO history" ON
    as it has been since October 2010.
    Thanks,
    Michelle

    Hi,
    Please find the below link it will help full for you,........
    Order Value will be exceeded Msg No. F5373
    Naresh

  • Error while posting the IDoc for Customer Invoice.

    hi,
    I m posting Customer Invoice through LSMW using IDocs.
    Basic type is FIDCCP02 and message is FIDCC2.
    While posting the Idoc I m getting error as:
    'Document or line item does not exist for invoice reference'.
    I m not getting the error why it is asking for invoice reference because
    in FB01 it is not asking for any reference or anything.
    Even in f-22 also it is not asking for the same.
    In Idoc all the item level values are coming prorperly.
    If anybody worked on such issues then please reply.
    -Thanx.
    -Umesh

    Hi,
    Where you able to resolve your issue, I would appreciate if you can share the solution.
    Thanks

  • 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

Maybe you are looking for

  • TS1702 My book that I downloaded just says error what should I do

    I have iBooks and was reading the book. Now it just says error. What can I do to get the book back?

  • Setup Problem in Measure 2.0 with USB-6009

    I purchased a USB-6009 for my laptop (running XP Pro), and installed the NiDAQmx vers. 7.5 that came with the unit. I opened NI explorer, and tested the unit in there (using Test Panel). It worked nicely there, though the indicator light on the DAQ b

  • Procedure entry point not located on loading

    When I try to load Contribute 3 I get a screen that says The procedure entry point Getprocessimagesfilename w could not be located in dynamic link library psapi.dll The loading process is then aborted.

  • Transform XML into Oracle

    Can anyone tell me how to transform data from XML file into Oracle DB without using any tool. I have not done it before. TIA, Geegee

  • Embed tag and validation

    I am using Dreamweaver to place .swf into my page. It generates an embed tag which never passes W3C validation. How do I place a .swf and still be compliant with the standards?