Link invoice to existing payment via DI Server?

Hi all,
I can not link invoice to existing payment via DI Server, please see following code:
        sCmd = "<?xml version=""1.0"" encoding=""UTF-16""?>"
        sCmd += "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">"
        sCmd += "<env:Header>"
        sCmd += "<SessionID>" & msSessionID & "</SessionID>"
        sCmd += "</env:Header>"
        sCmd += "<env:Body><dis:UpdateObject xmlns:dis=""http://www.sap.com/SBO/DIS"">"
        sCmd += "<BOM>"
        sCmd += "<BO>"
        sCmd += "<AdmInfo>"
        sCmd += "<Object>oIncomingPayments</Object>"
        sCmd += "</AdmInfo>"
        sCmd += "<QueryParams>"
        sCmd += "<DocEntry>468</DocEntry>"
        sCmd += "</QueryParams>"
        sCmd += "<Payments_Invoices>"
        sCmd += "<row>"
        sCmd += "<DocEntry>2558</DocEntry>"
        sCmd += "<InvoiceType>it_Invoice</InvoiceType>"
        sCmd += "<SumApplied>12.19</SumApplied>"
        sCmd += "</row>"
        sCmd += "<row>"
        sCmd += "<DocEntry>2556</DocEntry>"
        sCmd += "<InvoiceType>it_Invoice</InvoiceType>"
        sCmd += "<SumApplied>14.69</SumApplied>"
        sCmd += "</row>"
        sCmd += "</Payments_Invoices>"
        sCmd += "</BO></BOM></dis:UpdateObject></env:Body></env:Envelope>"
It does not work, return error "Cannot link invoice to existing payment via DI".
Please help!
Thanks.
John

Hi John!
You cannot update an existing payment and link it to invoices.
You can only do the link during the Add operation.
This is true for DI server, DI and to B1 Application.
Once a payment is created it cannot be changed.

Similar Messages

  • Can We enter Sales Invoice and Incoming Payment VIA SDK

    Dear Experts
    We have to develop an integration bridge with retrieve data from excel sheet and upload in SAP , i want to clear is it possible to enter sales invoices and incoming payment via SDK?. If it is possible please guide me about objects name and any reading material for SDK development.
    Thanks

    Hello,
    Yes it is possible with 2 steps:
    1. you post the invoice
    2. you post the payment
    I have already posted into the forum several examples, you may check them:
    For invoice + payment
    for payment only:
    Regards
    János

  • Link invoices to the payment

    How to Link invoices to the payment in banking?

    Hi,
    In SAP Business One,goto banking-bank statements and reconciliation-link invoices to payment.
    This function enables you to link an A/R or A/P invoice with an incoming or outgoing payment document that was not based on an invoice.
    When the amounts of the linked documents are identical, SAP Business One reconciles the journal entries related to these documents.
    Wish it helps you.
    Thanks and best regards,
    Lucy Shen
    SAP Business One Forums Team

  • Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE

    Hi Experts,
    We have configured downpayment functionality for PO's. We have below process
    Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
    But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
    Rgds,
    Harish

    Hi experts,
    any suggestions?
    Regards,
    Elena

  • Link Invoices to Payment

    Hi,
    How can i link invoices to incoming payments that have already been captured in the system through DI API ??
    I am using B1 2005A SP01
    Thanks
    Amit Jain

    Hi Adele,
    NO what i am asking is in case i capture a simple payment that has been taken on account and not against any invoice.
    But later i want to attach (link) that payment to an invoice throught DI API.
    The same can be done in B1 through the Banking -> Bank Statement and Reconciliations -> Link Invoices to Payments module.
    In case you can help that would be great
    Cheers
    Amit

  • How to apply an invoice to a payment on account using Internal Rec?

    As the link invoices to previous payments is now replaced by the new Internal Reconciliation Engine, you now need to perform a Business Partner internal reconciliation.
    This seems like quite a cumbersome process.
    The steps are:
    1. Open the Business Partner
    2. Select Internal Reconciliation
    3. Select the payment (which you made previously on account)
    4. Select the invoice which you would like to apply the payment towards
    5. If the payment and the invoice don't exactly match, you now need to create a journal. So where does the other side of the entry go? One side is automatically filled in for you, being the Business Partner, the other side goes where?
    If you put the other side as the Business Partner, the journal will post, but you get a mess when you look at the BP balance:
    There will be:
    RC - receipt on account  $50
    IN - invoice $80
    JE - Journal for the difference ($30)  (negative)
    JE - Journal for the difference $30
    None of these go away if you tick the 'Display Unreconciled Trans. Only' option.
    How do others get around this?

    Hi John......
    There are two aspects of doing internal reconciliation.
    1. you want to reconcile part Invoice amount against Payment on Account
    2. You want to reconcile part Invoice amount against payment on account and accounting for rest amount of invoice should be gone to rate difference account and which you dont want to pay to your vendor.
    So the thing you are asking about the differnce amount should go to rate difference account.
    When you do the reconciliation just select the difference amount for Journal entry where diff. amount say $30 will go to rate difference account.........
    Hope this will help you......
    Regards,
    Rahul

  • Request: option to link invoice to payment for SBO 2007A

    Hi all,
    The situation is as follows:
    A payment on account is booked. Customer wants to link an invoice to that payment afterwards. In version 2007 the transaction 'link payments to invoices' has disappeared compared to version 2005.
    It's possible to do an internal reconciliation, but then that payment is not linked to the invoice,  i.e. the payment is not listed in the payment history of the invoice.. It should be possible to link a payment on account to an invoice.
    We have logged a message with SAP but must raise a DRQ ( Development Request) as the function is not there anymore.
    Looking forward to a proper solution!
    Kind regards,
    Charlotte Jansen
    SAP Business One consultant

    The query is linked to the BP via en UDF and a FMS and is as follows:
    SELECT '' AS Type, '' AS 'CustName', NULL AS 'Doc No', NULL AS 'Doc Date', '' AS 'Curr',NULL AS 'Amount', NULL AS 'Due date',  '' AS 'Status',  '' AS 'PayCurr', 0 AS 'Paid', NULL AS 'Date paid', NULL AS 'Ref.', NULL AS 'Pay days',NULL AS Late
    UNION SELECT
    'Fact' AS Type,
    T0.CardName AS 'CustName',
    T0.DocNum AS 'Doc No',
    T0.DocDate AS 'Doc Date',
    T0.DocCur AS 'Curr',
    Amount=CASE T0.DocCur
       WHEN 'EUR' THEN T0.DocTotal ELSE  T0.DocTotalFC END, T0.DocDueDate AS 'Due date', T0.DocStatus AS 'Status', T1.DocCurr AS 'PayCurr', Paid=CASE T0.DocCur
       WHEN 'EUR' THEN T0.PaidToDate ELSE  T0.PaidFC END, T1.TrsfrDate AS 'Date paid', T0.ReceiptNum AS 'Ref.',
    DATEDIFF(dd,T0.DocDueDate,T1.TrsfrDate) AS 'Pay days', Late=CASE T0.DocStatus
       WHEN 'O' THEN DATEDIFF(dd,T0.DocDueDate,getdate())
       WHEN 'C' THEN DATEDIFF(dd,T0.DocDueDate,T1.TrsfrDate) END FROM [dbo].[OINV] T0 LEFT OUTER JOIN [dbo].[ORCT] T1 ON T1.DocNum = T0.ReceiptNum WHERE T0.CardCode=$[$-5.0.0]
    UNION SELECT
    'Cred.fact' AS Type,
    T2.CardName AS 'CustName',
    T2.DocNum AS 'Doc No',
    T2.DocDate AS 'Doc Date',
    T2.DocCur AS 'Curr',
    Amount=CASE T2.DocCur
       WHEN 'EUR' THEN T2.DocTotal-1 ELSE  T2.DocTotalFC-1 END, T2.DocDueDate AS 'Due date', T2.DocStatus AS 'Status', T3.DocCurr AS 'PayCurr', Paid=CASE T3.DocCurr
       WHEN 'EUR' THEN T3.DocTotal ELSE  T3.DocTotalFC END, T3.TrsfrDate AS 'Date paid', NULL AS 'Ref.',
    DATEDIFF(dd,T2.DocDueDate,T3.TrsfrDate) AS 'Pay days', Late=CASE T2.DocStatus
       WHEN 'O' THEN DATEDIFF(dd,T2.DocDueDate,getdate())
       WHEN 'C' THEN DATEDIFF(dd,T2.DocDueDate,T3.TrsfrDate) END FROM [dbo].[ORIN] T2 LEFT OUTER JOIN [dbo].[ORCT] T3 ON T3.DocNum = T2.ReceiptNum WHERE T2.CardCode=$[$-5.0.0]
    UNION SELECT
    'Part.Paym.' AS Type,
    T4.CardName AS 'CustName',
    T4.DocNum AS 'Doc No',
    T4.DocDate AS 'Doc Date',
    T4.DocCurr AS 'Curr',
    Amount=CASE T4.DocCurr
       WHEN 'EUR' THEN T4.DocTotal-1 ELSE  T4.DocTotalFC-1 END, NULL AS 'Due date', '*' AS 'Status', T4.DocCurr AS 'PayCurr', Paid=CASE T4.DocCurr
       WHEN 'EUR' THEN T4.DocTotal ELSE  T4.DocTotalFC END, T4.TrsfrDate AS 'Date paid', NULL AS 'Ref.', NULL AS 'Pay days', NULL AS ' Late '
    FROM [dbo].[ORCT] T4
    WHERE T4.CardCode=$[$-5.0.0] AND T4.PayNoDoc='Y'
    ORDER BY Status DESC, 'Due date' ASC, Type ASC

  • Create A/R Invoice and Its Incoming Payment using DI Server

    Hi Everyone,
    I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
    I guess the SOAP message should look like:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
      <BOM>
       <BO>
        <AdmInfo>
         <Object>oInvoices</Object>
        </AdmInfo>
        <Documents>
         <row>
          <DocDate>20040707</DocDate>
          <DocDueDate>20040707</DocDueDate>
          <CardCode>BP</CardCode>
         </row>
        </Documents>
        <Document_Lines>
         <row>
          <ItemCode>Item1</ItemCode>
          <Quantity>3</Quantity>
          <TaxCode>My Tax</TaxCode>
         </row>
        </Document_Lines>
      </BO>
      </BOM>
      </dis:AddObject>
      <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
      <BOM>
       <BO>
        <AdmInfo>
           <Object>oIncomingPayments</Object>
        </AdmInfo>
        <Payments>
           <row>
               <CardCode>BP</CardCode>
               <DocTypte>rCustomer</DocTypte>
           </row>
       <Payments>
       <Payments_Invoices>
            <row>
                 <DocEntry>???</DocEntry> <---- ???
                 <InvoiceType>it_Invoice</InvoiceType>
                <SumApplied>100</SumApplied>
            </row>
       </Payments_Invoices>
       </BO>
      </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    Any help?

    Dear Hugo Moreno,
    You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
    Please refer to SDK DI API help for this method.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Link between invoice no and payment clearing document no

    Hi sap gurus,
    in a reoprt i have to show the payment receive date against the invoice no. i can have the invoice no by customer no (KUNNR) and date range. now i am facing problem how to link invoice document no with payment clearing document no. Because while receiving payment from customer (t code F-28) we are receiving against a invoice. But i checked in BSEG,BSID BSAD but nowhere i was able to track the linkage. Please help.
    regards,
    BKR

    In billing document at header level,  you can see two fields, viz.
    a)  XBLNR   Reference Document Number  and
    b)  ZUONR   Assignment number
    These two fields you can see in FBL5N.  Whatever copy control you set in VTFL at header level for these two fields, based on that values will be populated in billing document which will then be passed on to FI just for information.
    But these two fields are not stored in any table but in structure.  However, you can check in BKPF with field XBLNR which will have link between VBRK (billing document ) and BKPF (Accounting document)
    thanks
    G. Lakshmipathi

  • Link Invoices to Payments - 2007

    I have a customer that just upgraded from 2005 to 2007.  Prior to upgrading, they had multiple customers with payments on account that represented downpayments on an invoice.  In 2005, they would use the Link Invoices to Payments to apply the payment on account to the invoice so that they could show the customer the actual balance due on the invoice.
    With 2007, it looks like this option has gone away and has been replaced with the Down Payment Invoice.  Our customer will not be able to use this functionality - they have a Job Costing add-on that generates their invoices, and it does not give them the option to apply a down payment invoice.
    I have tried the new internal reconciliation to apply the downpayment to the invoice, but it won't allow you to reconcile if the net amount of the transactions is zero.  In this case, the invoice amount is $10,000 - the downpayment is $5,000, so the balance on account is still $5,000.
    Any thoughts on how to apply the payment on account to the invoice so that the balance due on the invoice displays correctly?

    Hi Ellen,
    please have a look at the IRU landing page here:
    http://service.sap.com/~sapidb/011000358700000380562007E
    You will see that the now unified reconciliation engines are much more userfriendly & rule out any inconsistent internal reconciliation that could happen when using the 'Link invoices to payments' functionality.
    All the best,
    Kerstin

  • Link invoices to payments

    Hi Experts,
                        I have posted few incoming payments on account, When I wanted to link these on account paymnets with the A/R invoices Iam getting Error message as .................No Data [Message 131- 85].
                         Iam using SAP 2005B Version.

    You may refer to my posting on your another thread:
    Posting Periods Authorizations in SAP 2005B
    Also, link invoices to payments has been taken out from new version.  It is mainly because that function is error prone.
    Thanks,
    Gordon

  • Error in Link  Invoice to Payment

    Hi
      I have problem in Link Invoice to payment, I could not adjusted A/P Invoice with outgoing payment. In that A/P Invoice, Asset items are used.  I got this error message  "Cannot link Invoice with different control account than the BP's Main control account".

    Hi,
    This is the limitation of SAP B1, due to the asset control account mapped in the business partner master data.(under that BP Master->accounting tab ->general tab->control account->asset account)
    By default the when payment processed thorugh outgoing payment(by using payment on account option),the payment will be accounted in the sundry creditors account.
    So the link to invoice option will not be able to reconcile the sundry creditors account and the asset account which mapped in the BP master.
    Now inorder to reconcile these accounts:
    Create a manual JE,where you can change the control account for that BP.
    Db. the control account(asset account mapped in the BP master data) for the BP and Cr. the default control account(Sundry creditors account).
    Then manually reconcile the BP.
    Inorder to avoid these complexity the payment by selecting the corresponding asset AP invoice,this would automatically reconcile the accounts.
    Hope this clarifies your issue!

  • Link Invoices to payment -2007 B

    Hi all,
    How i can do link invoices to payment in SAP B1-2007B.
    the payment on account should be linked to AP Invoices and next time when i'm choosing the same party, thest invoices shouldn't appear in the outgoing payment window (it should be closed)
    Correct solutions will be highly appreciated
    Thanks & Rgds,
    Suresh Kannan

    Hi Suresh,
    the functionality of linking invoices to payment has luckily been removed in version 2007. It led to countless problems within the internal reconciliation engines.
    The entire reconciliation behavoiur has been changed & instead of linking invoices to payments you may now use the new internal reconciliation engine, which also supports partial journal entry reconciliation.
    Business Partners - > Internal Reconciliations -> Reconciliation
    Please check out the Internal Reconciliation landing page on the SMP for more info about the new reconciliation engine:
    Channel Partner Portal -> Solutions -> SAP Business One -> Hot Topics -> SAP Business One 2007 Information Center -> New Single Reconciliation Engine
    A single engine reconciles the difference and eliminates the previous reconciliation issue. More -> click on 'More'.
    All the best,
    Kerstin

  • When do Link Invoices to Payments, got error message

    Hi,
    I got a bank transfer of 4000 CAD, so I created an incoming payment, paid two invoices of 1000 CAD each and the remaining balance on the account.
    Then when I do "Link Invoices to Payments", select the invoice of 2000 CAD, which is exactly the same as the remaining balance, got the error message: "Payment amount is greater than invoice amount [Message 439-4]".
    What was the problem? How to fix this error? Please help, many thanks!

    Hi Chen,
    Check the following thread
    Re: Payment amount is greater than invoice amount
    "link invoices to payments"
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Link between Invoice and Residual payment

    Hello dear all,
    Is there any report that shows the invoice besides each incoming payment (in my case, residual payment) ?
    For example:
    Customer invoice: 1000
    Partial payment 1 : 400
    Partial payment 2 : 200
    In FBL5N, i do not have the customer invoice number besides these two incoming payment. Is there any other report ?
    Thanks

    Dear,
    This requirement can be filled with a custom report, you have to use the tables to get the required report.
    Use the tables:
    BSID-This table will list all the customer invoices
    BSAD-This will  list all your incoming payments against invoices.
    Ex: If an invoice is raise 100, then this will be available in the table BSID. But after the payment the data will be cleared in BSID and will be available in BSAD.
    But in case of residual payment, the original invoice will be cleared in BSID and will be available in BSAD. Here, a new document with the remaining balance of the invoice will be created and will be available in BSID. You can find the original invoice in invoice reference field.
    This will be feasible tell your requirement to ABAPer based on the above.

Maybe you are looking for

  • Safari doesn't open new domain name .direct without www

    When I try to open a domain like "mydomain.direct" Safari opens google search, but if I try to open "www.mydomain.direct" the website opens ok. Safari also doesn't open 3rd domains like "something.mydomain.direct" and sends me to google search.

  • Creating a new class instance in the target VM exception

    Hello, The following error appeared when i was trying to instantiate a new object by "new", After the error was thrown , everything just hanged .... [email protected](java.lang.String)+-1 in thread Thread-0 I tried creating a new instance of any clas

  • HELP! 2nd Hard drive keeps disappearing. Disk Utility can't see it either!

    I'm hoping 1 of you experts can help me out with a very annoying problem. November 17th I purchased a new hard drive for my Mac, Deskstar P7K500 500GB. I checked on 2nd Chance PC if it was compatable etc, and this was the reccommendation for the size

  • Need to print in bold and different fonts

    Hi all, I want the output of an ABAP classical report(ex. monthly Sales Report) to be printed in bold letters and font size to be increased. Thanks in advance

  • Programmed visiblity of a WD iview.

    Hi all, I have a scenario "System Alerts"in which i need to fetch the alert from Oracle DB and show it in a WD iview in the portal. An alert is a simple text that should be shown till the expiry date . Now the issue is if there are no alerts to be di