MM Net invoice payment via BAPI

Example: customer creates a purchase order with a cost line of £10.00 and a corresponding return line -£5.00.  The return line represents income contributed to the cost of the service from a third party.  In the MIRO transaction, the invoice is posted against both  purchase order lines for the net value of £5.00.  One accounting document is created.  We wish to permit this scenario with a custom version of the MIRO transaction but the BAPI treats the lines as individual transactions and posts two accounting docs in FI, an invoice for £10.00 and a credit memo for £5.00.  Can we make the BAPI post a single document for the net value?

Hi experts,
any suggestions?
Regards,
Elena

Similar Messages

  • Exchange Rate posting to P&L vs B/S during netting, invoice payment and app

    Our Netherland company has local currency EUR and group currency USD.  We also have a US company where local and group are USD.  We consolidate and report in group currency USD.
    In NL company, we would like all exchange differences to go to f/x P&L account (both group and local) when the transaction currency is in anything but EUR.  However, when the transaction currency is in EUR, we would like the difference in group currency to go to CTA account.  How can we acheive that since there is only 1 account that we can use for a group currency?
    Thanks

    Hi,
    Then you need to change the exchange rate based on your LIV posting date.
    Check in OB08 with exchange rate type "M" , as when ever the difference in PO and Invoice you need to ask the finance team to change exchange rate  as per date on which you receive the Invoice so the posting is done as per the vendor invoice exchange rate.
    Do refer the below KBA which explains you in detail how the exchange rate works during MIRO.
    KBA: 1700942 - Exchange rate cannot be changed as changing the posting date during logistics invoice verification

  • 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 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.

  • ERS Invoices via BAPI

    When a Purchase Order is marked as ERS relevant (self billing or self invoice), is it possible to post the incoming invoice using BAPI_INCOMINGINVOICE_CREATE? If so, how.
    I notice when I post an invoice with the BAPI on such a PO document, an invoice is created but the ERS relevant table EKRS is not updated. This means the system stil thinks the purchase order was not invoiced, because when I run tcode MRRL, another invoice is posted by the standard application on the PO document.

    Thank you.
    But I could not understand the note fully.
    It says PLN_PCKG and PLN_LINE of ENTRYSHEET SERVICES should correspond exactly to ESLL-PACKNO and ESLL-INTROW
    But ESLL-PACKNOand ESLL-INTROW will be created after service entry creation.
    1.Which number I should put in PLN_PCKG and PLN_LINe of ENTRYSHEET SERVICES?
    2. Also suppose XI got 10 for creating different service entries in one file.
    Now for each entry if PCKG_NO in ENTRYSHEETSERVICES is 1and SUBPCKG_NO is 2 ,then wil it create any problem?
    Means for 10 entries should I need to give PCKG_NO 1, 2,3 etc
    Please advice.

  • Invoice Payment Block (RBKP-ZLSPR / BSEG-ZLSPR) Update

    Hi ABAP Gurus,
    Good day.
    Basically, I need to update Invoice Payment Block from "W" to "R".  I have tried BAPI_INCOMINGINVOICE_CHANGE but could not change the Payment from "W" to "R".  I believe that this is part of the said FM's restriction.  As per documentation, "it is not possible to change invoice documents flagged for invoice verification in background using this method".  Payment Block "W" is basically Invoice Verification via Workflow.
    On the other hand, I have also tried to use FM FI_DOCUMENT_CHANGE without any success. I keep on getting no document found.  I have played around with the parameters being passed but without any luck.
    Can you kindly provide a solution for this?  Thanks in advance for your help.
    Best regards.
    Brando Braganza

    Hi,
    You want to release a blocked invoice.You can use following BAPI
    'BAPI_INCOMINGINVOICE_RELEASE'
    For sample code
    goto>SWO1>Enter BUS2081
    Method-->Releasesingle
    Thanks
    Nabheet

  • A/P F110 Payment via company code in a different country

    The client is a service organization where the Vendor data is managed in the US company code (US01) and the Customer data in managed in a Swiss company code (CH02). Many of the customers could also provide services and the invoices are posted to vendor accounts in the US01 company code.
    In the case where the vendor amount exceeds the customer amount, the customer/vendor has agreed that the client will pay the net amount and clear the net to the customer account.
    Clearing between the customer and vendor in company codes in the same country and with the bank account managed in the same country works as expected.
    The CH02 company code does not have a bank account of its own and therefore cannot make its own payments.
    The problem that we encounter is that I cannot define (for F110 configuration) sending and paying company codes where the country assigned are different, e.g.;
       - Sending company code: CH02
       - Paying Company code:  US01
    When this is entered into the IMG configuration for "Automatic payments > Set Up All Company Codes for Payment Transactions" the error "Company code US90 is not permitted as the paying company code" (error code F3063) is issued. The detailed error description is:
    "The paying company code and the company code on whose behalf the payment is being made must be in the same country, have the same local currency, and display the same currencies managed in parallel. The setting regarding extended withholding tax functions (active or not active) must also be identical for both company codes."
    The initial design was to have the A/P and A/R in the CH02 company code but the payment via the US01 company code would not work. Having the vendor only in the US01 company code is a solution to this using an inter-company invoice posting. Using a work-around to clear the customer balance to the vendor account is not acceptable to the client.
    The easy way out of this is to assign the CH02 company code to country code 'US', but this is not correct.
    Is there a solution to making payments from company code US01 (as the paying company code) but including the customer items from a foreign company in the payment?

    Hi Martin,
    Welcome SDN!!!
    The standard SAP doesnot provide payment via company code in a  different country.If you still feel that it is fit case,please contact SAP.SAP may consider this a special requirement and may cover your case under SAP Note 357732.(pls have a look once).
    Thanks
    Aravind

  • Error when trying to Cancel an invoice document via MR8M Transaction

    Greetings Everyone,
    l am having an issue when trying to cancel an invoice document via MR8M transaction. It gives me the following error message;
    SYSTEM ERROR: error in routine MRM_DRSEG_CR_CREATE
    Message no.M8008
    Procedure:
    Contact your system administrator.
    This invoice was related to a check payment. The check has been voided already and there is no clearing document for the accounting document. So, the item remains open. However when l try to reverse, it display the error message above.
    Thanks in advance

    read notes 449277 and 750455, your solution is probably there.

  • AR Invoice + Payment won't allow negative

    When using AR Invoice + Payment the screen calls Payment Means (moneybag) when you save the Invoice. The Payment Means window is only configured for Incoming Payments, and rejects a negative (ie Outgoing) value.
    Some user companies have POS software that posts transactions to B1 from tills in a shop.
    When a customers buys an item for, say, £19.25 using a £20 Gift Voucher, and expects £0.75 change, the POS software attempts to post the transaction to B1 and generates an error - causing the whole batch posting to fail.
    To make this work requires replicating the transaction manually using a vanilla AR Invoice for the item at £19.25 and qty -1 of Gift Voucher at £20 to generate an AR Invoice with a net value of £-0.75. Then you can do a customer Outgoing Payment of £0.75 to reconcile.
    Can the Payment Means offered in AR Invoice + Payment be enhanced to include Outgoing (-ve) too, and the functionality be incorporated to accept such transactions from POS software?
    Regards,
    Mike Burmeister

    As far as I know, your registered location and your credit card information must match... but,
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Retention Payments via FI and/or MM

    Hi,
    I am looking at retention payments via FI and MM. I managed to understand the steps on FI creating a special GL and map it to my vendor reconciliation account to be able to have a list of retention payments. I also created a Instalment Payment term and assign it to the vendor.
    but ..
    Is it possible to pay the vendors via MM using MIRO, with special GL's? If so? How do I do this.
    Annelize

    Hi
    Payments are not possible with MIRO transaction. Using MIRO we only post invoices that can be paid to the vendor using other finance transactions like F110.
    Thanks & Regards
    Kishore

  • Create A/R Invoice + Payment

    Hi,
    My customer is using a our POS (point of sale) system to made order and invoice (payment is done immediate). I want to import these transaction information to SAP B1. I will also use B1 to maintain my stock inventory and Journal entry. I think what I need is similar to the "A/R Invoice + Payment". Instead of creating these invoice with the B1 front-end, I would like to develop a console program in VB .NET (2008) with the B1 SDK.
    I have reference the SDK help on invoice and try the following code.
               'Create the Documents object
                Dim vInvoice As SAPbobsCOM.Documents
                vInvoice = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
                'Set values to the fields
                vInvoice.Series = 0
                vInvoice.CardCode = "C99998"
                vInvoice.HandWritten = BoYesNoEnum.tNO
                vInvoice.PaymentGroupCode = "-1"
                vInvoice.DocDate = Today
                vInvoice.DocTotal = 5733
                'Invoice Lines - Set values to the first line
                vInvoice.Lines.ItemCode = "A00001"
                vInvoice.Lines.ItemDescription = "IBM Infoprint 1312 喷墨打印机"
                vInvoice.Lines.PriceAfterVAT = 4095
                vInvoice.Lines.Quantity = 5
                vInvoice.Lines.Currency = "RMB"
                vInvoice.Lines.DiscountPercent = 0
                'Invoice Lines - Set values to the second line
                vInvoice.Lines.Add()
                vInvoice.Lines.ItemCode = " A00002"
                vInvoice.Lines.ItemDescription = "IBM Infoprint 1222 喷墨打印机"
                vInvoice.Lines.PriceAfterVAT = 2047.5
                vInvoice.Lines.Quantity = 5
                vInvoice.Lines.Currency = "RMB"
                vInvoice.Lines.DiscountPercent = 0
                'Add the Invoice
                lRetCode = vInvoice.Add
    However, the vInvoice.Add always return below errors.
    -2028 No matching records found (ODBC -2028)
    Can you give me some advise?
    Besides, I think I only need to create the invoice and payment objects so as to pretend as A/R Invoices + payment? I don't need to create an order object, isn't it?
    I think it may be easier if I can load the invoice object from an XML file. Can I use the GetBusinessObjectFromXML method on invoice and payment object? Can you share with me some code samples?
    Thank you very much!
    Yvonne

    I'm not sure about this but give it a Try to remove the line which set the series. ( remove/comment that line )
    I have same error message regarding with UDO series ( which is working fine in 2005 )
    ref note : 1328973

  • Net invoice reciept

    my scenerio is
    po created of 100 pc @ 10rs/pc
    GR of 40 pc @ 10rs/pc
    invoice reciept 40pc @ 10rs/pc
    tax is 10%
    tcode MIRO
    document type  : NET INVOICE RE.
    terms of payment  : due immideatly
    invoice verified with refrence to delivery note of above case
    in balance area : 440 rs (before giving cash discount)
    cash discount : 40 rs
    still in balance area :440rs
    my question is why??
    evevn though after giving the cash discount system does not reduce the amount in invoice although in simulate  option
    account movements are
    type   g/l         descp.
    k  cr   160000   vendor
    s dr  191100  GR/IR
    m cr  310000   material
    s dr   154000   input tax
    s dr   193000          suplier cash
    clearing
    cr stands for credit
    dr for debit

    The price to be invoiced of PO is net price. The calculation schema of  Your PO decide the price. I think your cash discount is from payment term. That money is got by FI. If you apply cash discount of supplier ( your vendor? right?) in pricing procedure you can reduce the new price of PO such as RL01.
    By MIRO we can do ruducing invoice, subsequent Debit/Credit.

  • Partial payments via F110

    Hi
    Does anyone know, how to make a partial payment via F110? That is when there is a vendor invoice existing and needs to pay only part of it?
    Thanks
    Nadini

    Hi,
    You can make partial payment through F110.
    Let say you owe Rs 100 to the Vendor A. But you want make only 70 Rs payment.
    Create a payment request to that extent (Rs70) in t.code F-59 for that document number, and block the original line item (Rs100) from being paid in APP.
    Finally ensure that you are adding special transaction type P in your APP.
    Then run the program.
    APP picks payment request (special tran type P) for Rs 70 and make payment.
    Thank you,
    Ramesh.

  • Gross and Net invoice

    How does the net invoice differs from gross invoice?
    How the  exchange rates are maintained and where they are maintained?
    Edited by: Ashutosh Kul on Jan 13, 2008 9:04 PM

    Dear Ashutosh,
    Gross Posting:
    If you post the gross amount of an invoice, the system ignores the cash discount when you enter invoice;it post the cash discount amount to "cash discount" account at the time of payment.
    Net posting: If you post the net amount of an invoice,the system pst the cash discount clearing account to the stock or cost account.This means the system only post the amount reduced by the cash discount amount to stock account/cost account.The cost account is cleared at the time of payment.
    Whether an invoice is posted gross or net depends on the DOCUMENT TYPE.
    In price determination subtotal is used if you want to make a total of various pricing conditions for Ex to calculate Net Price  a subtotal of Gross Price + Discount + Surcharge will be done & Net Effective price will be Net price + Delivery cost + tax for ex.
    Currency setting:
    To enter an invoice in foreign currency you must do following setting in the system
    1. You must define the currency you are using to enter the invoice.
    2. You must configure an exchange rate for the given currency & the local currency in customizing.Ypu can define diffrent exchange rate for diffrent time period.
    I hope this will give you idea on both terms.
    Reward if useful,
    Vivek Maitra

  • Invoice payment status will update in SRM

    Dear Experts,
    I  have done the invoice in SRM and invoice created in ECC and the same invoice number has been updated in SRM with status 'posted in the backend'.
    for thi invoice, i have completed the payment. I would like to know whehter these status will be updated in SRM or not?
    Thanks
    Ravi

    Hi
    It is not possible to see, but there is a way.  You need to check in ECC in FBL1N for this invoice for the invoice payment. and if you are confirm that no further invoice you need to tick final invoice posted in PO.
    With this tick you can confirm the status of the payment.
    regards
    Satish

Maybe you are looking for

  • Accounting Document not generated in J1IEX

    HI, Accounting Document is not generated when we post J1IEX even if we maintain G/L accounts for trxn GRPO.. the same error is coming. Pls suggest a solution as soon as possbile. Regards, Bala

  • Data service (DB adapter) returns XML with missing collection's content

    Hello. I am facing problem with DB adapter connected to MySQL database. When I use select from 1-2 tables (connected by master-detail relationship) adapter works fine. When I use more than 2 tables adapter returns only master table and empty detail c

  • Getting runtime error R6030

    After running project for over a year with no problem I'm getting a Run time library now the on dbg.exe file error R6030 - CRT not initialized. How do I find the CRT and initialize it also why now?

  • Form appears whacky in Safari

    In Firefox and IE the site looks good, but when viewed in Safari the form at the top right with the username and password boxes appears off kilter, how can I fix? Is it an easy fix? http://www.hungry4web.net/zac_test/webinar.shtml Gracias! - Christin

  • Empty camera names in Flash Player with Google Chrome

    So, it seems we got another problem with devices (cameras and microphones) in Flash Player integrated with Google Chrome (PPAPI). Many Flash developers can remember clickjacking problem and ugly fix for this issue implemented in Google Chrome. For no