Automatically apply credit notes to debit notes in AR

Hi,
I have a requirement where my client wants me to find out the customers who have credit and debit balances on their accounts that balance out to zero.
Also they want me to write a program that automatically applies the credit notes to debit notes for such customers.
Can someone please let me know the SQL/APIs that can be used to first identify such customers and then automatically apply the credit notes to debit notes.
I being a TCA/Distributions guy and being new to AR would really appreciate your help.
Thanks!
Regards,
Kamal Bhutani

Hello Kamal.
This query will identify which customers have zero balance but open debit/credit memos (for rel 11i):
select c.customer_name, c.customer_number,
nvl(sum(ps.amount_due_remaining),0)
from ra_customers c, ar_payment_schedules_all ps
where ps.customer_id = c.customer_id
and ps.org_id = <your organization id>
and ps.status = 'OP'
and ps.class in ('DM', 'CM')
group by c.customer_name, c.customer_number
having nvl(sum(ps.amount_due_remaining),0) = 0
Hope this helps,
Octavio

Similar Messages

  • Alternative for 'AR Receipt apply to Credit Note'

    we are using 11i. in the AR Receivables User Guide (115arug.pdf), we found this:
    You can apply receipts to any type of transaction except guarantees and standard credit memos.
    however, our users are requesting if they can apply the receipt to credit memos.
    Need advice on alternatives.
    Business scenarios:
    1) revise of price
    let's said we have 3 invoices,
    INV 1=$ 1000 (with 1 line, $ 100 * 10 Each), on 90 days terms.
    INV 2=$ 2000 (with 1 line, $ 100 * 20 Each), on 90 days terms.
    INV 3=$ 3000 (with 1 line, $ 100 * 30 Each), on 90 days terms.
    on day 75, we decided to revise the price to $90 (we are telco industries, handset price drop very fast).
    so user will generate a Credit Note of $10*60=$600, not related to any invoices. (CN1)
    when customer make payment of $90*$60, user create a receipt of $5400, and would like to apply to INV1, INV2, INV3, and CN1.
    but Receipt can not apply to CN1. what can we do here? (right now they apply CN1 to INV1, and Receipt to part of INV1, full INV2, INV3, which to them, look weird)
    p/s: above is simplified scenario, sometimes we have a lot of invoices/lines, which user dun want to create many CN, but wish to create a lump sum CN.
    2) RMA on paid invoices
    let's said we have 3 invoices,
    INV 1=$ 1000 (with 1 line, $ 100 * 10 Each), on 90 days terms.
    INV 2=$ 2000 (with 1 line, $ 100 * 20 Each), on 90 days terms.
    INV 3=$ 3000 (with 1 line, $ 100 * 30 Each), on 90 days terms.
    on day 34, customer make full payment of INV 1 (RCP1, $1000). so now the open balance is:
    INV 1= $ 0 (fully paid)
    INV 2= $ 2000
    INV 3= $ 3000
    on day 51, customer found the unit faulty(our customer actually is the dealer, they dun open/check the received stock immediately), request for RMA.
    So our user create RMA order, complete it, and during autoinvoice, a CN1 is created and automatically apply to INV 1. so now the balance is:
    INV 1= $ -1000 (receipt applied, credit note applied, thus become negative amount)
    INV 2= $ 2000
    INV 3= $ 3000
    on day 80, customer pay the remaining $4000 (RCP2, $4000). user wish
    1) CN1 is not automatically apply to INV 1 if INV 1 has been paid. (is this possible?)
    2) RCP2 ($4000) can be apply to INV2, INV3, and CN1.
    please advise what is the right way to handle above scenario, thanks.

    Hi,
    I also faced same issue. Please use ar_receipt_api_pub.Apply_other_account API. This should solve your problem.
    Thanks,
    AB

  • Matching credit note to a prepayment

    Hi,
    We are paying our electricity supplier by direct debit, so we enter a prepayment onto the purchase ledger. When the invoices are received, we match them against the prepayment.
    We are now facing difficulties because the amount of the payment taken is made up of both invoices and credit notes. How can I clear the prepayment if I can't apply credit notes? Does anyone have any experience of this, it must be pretty common!
    Thanks for reading!
    Karen

    Hi Karen,
    i am not having any user guide for performing the same, however i am in the process of preparing one for this scenario ..... If you can send me an test email to my email id [email protected], i would share you the material which would help in performing the scenario yourself .....
    Even though the workaround of applying Credit memo to standard invoice, and then applying standard invoice to prepayment sounds easier, it gets a bit complicated becauze of the number of steps and the sequence in which it needs to be prepared .....
    Regards,
    Ivruksha

  • Credit notes and debit notes

    What is the difference between credit notes and debit notes???

    Hi Friend,
    1. A transaction that reduces Amounts Receivable from a customer is a credit memo. For eg. The customer could return damaged goods.  A debit memo is a transaction that reduces Amounts Payable  to a vendor because, you send damaged goods back to your vendor.
    2. Credit memo request is a sales document used in complaints processing to request a credit memo for a customer. If the price calculated for the customer is too high, for example, because the wrong scale prices were used or a discount was forgotten, you can create a credit memo request. The credit memo request is blocked for further processing so that it can be checked. If the request is approved, you can remove the block. The system uses the credit memo request to create a credit memo.
    You can use credit memos in Sales and Distribution (SD) for assigning credit memo requests to the open invoices and in Financial Accounting (FI) for assigning  credit memos and payments to the open invoices and carry out clearing with them.  If you use both Financial Accounting (FI) and Sales and Distribution (SD),  there is a 1:1 relationship between the credit memo request and the credit memo item posted in Financial Accounting (FI). As soon as you bill the credit memo request together with other sales orders, or distribute the items of one credit memo request to several billing documents, the assignment is no longer valid and the system will not process it.
    For  credit memos, credit memo requests, and payments, you have the following assignment options:
    - Assignment to a single invoice
    - Assignment of a partial amount to an invoice
    - Assignment to several invoices
    When you post  credit memos, the payment programme processes them automatically. If the credit memo is specifically related to a particular open invoice item, the payment program automatically attempts to offset the credit memo against the open item. If it is not possible to completely offset the credit memo against an invoice, you can post a debit memo to the vendor, who is to reimburse the amount.  Then you can apply a multilevel dunning program. 
    3.  Debit memo request is a sales document used in complaints processing to request a debit memo for a customer. If the prices calculated for the customer were too low, for example, calculated with the wrong scaled prices, you can create a debit memo request. The debit memo request can be blocked so that it can be checked. When it has been approved, you can remove the block. It is  like a standard order. The system uses the debit memo request to create a debit memo.
    4.  As mentioned above, creating a credit or debit memo request enables you to create credit or debit memos based on a complaint. For this first create a sales document with the order type for a credit or debit memo  request. You can create the debit  or credit memo requests in the following ways: 
    – Without reference to an order
    – With reference to an existing order
    Here you enter which order the complaint refers to.
    – With reference to an invoice
    Here you enter which invoice the complaint refers to.
    In all cases, you specify the value or quantity that should be in the credit or debit memo
    5. You can block the credit or debit memo  request from being billed in Customizing. Go to Sales -> Sales Documents -> Sales document header -> Define sales document type and select the billing block field in the billing section.  This request can later be reviewed along with similar ones, - if necessary, by another department. The request for a credit or debit memo  can then be approved or rejected.

  • FSCM- Dispute cases were not closed automatically for credit disputed amounts

    Dear All,
    We are creating the dispute cases for overpayment or un-applied cash payments (that is credit document) through FDM_AUTO_CREATE. But those credit dispute cases were not closed automatically after I cleared the documents through F-26 or F-32.
    We are running FDM_PROCESS_BUFFER program through batch job for every hour. And we made correct configuration for automatic dispute case close in SPRO. Also the debit disputes were closed automatically.
    Especially we are facing this issue for credit special g/l transaction (partial/residual/charge of difference clearing) documents.
    Note : I can see two changes automatically in credit dispute cases these are, 1) Disputed amount get zero 2) Disputed objects (that is credit document) is automatically removed (Attributes => Linked Objects => Disputed Objects) in the credit dispute cases
    Can you please help me how to resolve this issue.
    Thank you in advance.
    Thanks & Regards,
    KVP

    Dear Experts,
    Can I have solution for this issue.
    Thanks & Regards,
    KVP

  • Fully Automatic credit note for customer .

    Hello Genius
    "The payment received from the customer within two days from the date of biling.Automatic Credit note to be raised when the cheque gets deposited into bank.Cash discount is payable as % of assessable value.In case the deposited cheque gets dishonored the credit note to be revered by way of debit note and thereafter the dealer does not remain eligible for further cash discounts in future".*
    Example:
    Incoming Payment 1000.00 INR , This payment comes with either through Cheque, DD,Cash.
    But it should be cleared with in 48 hrs. then only Discount is available other wise not.
    Above Operation need to Fully automatic.
    how to map this scenario in FI-SD ?
    Reliable answer gets very good point.
    Thanks
    Lee

    Hi Sanil,
    Try using BAPI      BAPI_SALESORDER_CREATEFROMDAT2
    you may to give the necessary validations & the trigger points for this
    Hope this helps
    thanks
    Prashant

  • What is posting key for debit note and credit note?

    Hi Gurus,
    May I know what is posting key for debit and credit note?
    My current sales debit and credit note having same posting key.  Where can I set this posting key?
    Sales debit note                dt      cr
    Sales credit note               dt      cr
    Customer debit note          dt      cr
    Customer credit note         dt      cr
    Vendor debit note             dt      cr
    Vendor credit note            dt      cr
    Thanks
    Moderator: Please, avoid asking basic questions. Try to search available SAP material first

    This depends on requirement.
    Generally, SAP std are followed and ought to be followed, as Std config are based on best practices world over.
    Still, if you business process requires then take an example,
    - use TCode OBYC,
    - double click on transaction BSD - Inventory posting
    - provide chart of account, if asked.
    - check the posting keys for transaction by clicking Posting Key button on the Maintain FI Configuration: Automatic Posting - Accounts screen.
    In Debit
    89 - Stock inwrd movement
    In Credit
    99 - Stock outwd movement
    Thanks & Regards
    JP

  • Automatic Credit Note generation during billing

    Hi,
    How automatic credit note is generated during billing where document type is RV ? During Billing i.e, sales invoice accounting document type become RV and accounting entries are :-
    01 Customer A/c
    50 Revenue A/c
    50 Service tax payble A/c
    50 Educatio Cess A/c
    50 HEeducess A/c
    If there is VAT/CST it become credit.
    But two invoice documents are generated as doc type RV and accounting entries are :-
    11 Customer A/c
    40 Revenue A/c
    40 Service tax payble A/c
    40 Educatio Cess A/c
    40 HEeducess A/c
    In case of Credit note we can pass this entry through doc type DG. But during billing how automatic credit note is being generated ?
    Regards,
    Anindita
    Edited by: ARoy1000 on Aug 24, 2009 3:26 PM
    Edited by: ARoy1000 on Aug 24, 2009 9:52 PM

    Hi Yadav,
    In case of Credit note we can pass entry two ways are i) From Accounts by passing manual accounting entries if there is different of amounts and ii) direct generating credit note automatically after sales order istead of billing if there is shortage of quantitiy. Here Revenue accounts will be positive and Customer negative. In my case credit note has generated automatically after sales order instead of creating billing document which has posted directly as standard RV document type. I have one doubt there is no dfference in quantity. Whatever sales order quantity is raised same quantity has raised as Sales invoice. The user who generates normal sales invoice(billing) even he is very much doubt, instead of generating billing document how credit note is generated automatically where Revenue A/c, Service Tax A/c, Education and Higher Edu cess become Dr. How it is possible ?
    Regards,
    Samrat

  • Debit and credit note - integration between mm & sd with fi

    Hi,
    How does the information flow from MM & SD to FI in the process of raising a DEBIT and CREDIT NOTES' respectively?
    (I'm aware of the fact that we need to define the document types "KG" and "DG" and raise the aforementioned by using F-41 & F-27).
    However, my doubts are:
    1. At what point do we need an FI-MM and FI-SD integration in raising the debit and credit notes'.
    2. What is the role of an MM and SD end user along with FI end user in raising the DEBIT AND CREDIT notes, i.e., how do we deal with the inventory in MM in the process of PURCHASE RETURNS and the goods and value of goods sold as far as SALES RETURNS IS concerned, i.e., once purchase returns and sales returns are booked in the relevant deparments, at what point does an accounts executive or FI end user come into picture to raise the aforementioned.
    Regards
    Sandhya

    Hi,
    How does the information flow from MM & SD to FI in the process of raising a DEBIT and CREDIT NOTES' respectively?
    (I'm aware of the fact that we need to define the document types "KG" and "DG" and raise the aforementioned by using F-41 & F-27).
    However, my doubts are:
    1. At what point do we need an FI-MM and FI-SD integration in raising the debit and credit notes'.
    2. What is the role of an MM and SD end user along with FI end user in raising the DEBIT AND CREDIT notes, i.e., how do we deal with the inventory in MM in the process of PURCHASE RETURNS and the goods and value of goods sold as far as SALES RETURNS IS concerned, i.e., once purchase returns and sales returns are booked in the relevant deparments, at what point does an accounts executive or FI end user come into picture to raise the aforementioned.
    Regards
    Sandhya

  • Debit Note & Credit Note

    Hi Guru's,
    what exactly diff between debit note and credit note? in SAP, is there any configuration? pl advice me with examples....
    scenario-1: If A purchased raw material for 5000/-. user returned some raw material worth of 1000/-. in this case who will raise the note(means debit/credit) and what is the entry in SAP?
    scenario-2: If B sells finished goods for 10000/-. user returned some goods worth of 2000/-. in this case who will raise the note(means debit/credit) and what is the entry in SAP?
    sure i will assign points...
    adv thanks

    Hi Anita,
    Debit Note: Ex: commission on sales to customer, Purchase returns etc.,
    Credit Note: Ex: Sales returns, additional discounts etc.,
    1) A raises Debit note on user?? for Rs.1000/-
    2) B raises Credit note on user?? for Rs.2000/-
    if useful to you assign points
    Vijay

  • Debit and Credit notes not to update COPA cost of sales when doing price ad

    Hi Experts,
    Please help me to fix the below issue.
    When we correct price adjustments on customer accounts we use debit and credit notes to do these price corrections. We first process a ZCR order type with reference to the original invoice to reverse the transaction and then we process a debit meme request ZDR with the correct details to invoice the customer correctly.
    These credit and Debit memo request are purley for pricing problems and do not effect cost of sales. Currently these Debit and credit memos are updating the cost of Sales value field (COS on Market Price - VV013) .
    This creates a problem since the credit and debit memo happen in subsequent months e.g. The credit memo is reversed at the old cost of sales value since SAP keeps a reference to the cost of sales at that time but the debit memo creates the cost sales at the new standard cost which is obviously not the same as the original cost of sales. We therefore sit with differences which will not equal FI since FI cost of sales was updated with the goods issue price in the month that the goods issue happened.
    We therefore need to zerorise the following value fields when doing ZDR dedit memo and billing type ZL2 and ZCR credit memo billing type ZG2.
    Gross Weight in KG VV004
    Invoiced Qty KG net VV002
    Invoiced Qty in L VV001
    Invoiced Qty in L15 VV003
    Invoiced Quantity VV005
    COS on Market Price VV013
    VV001 to VV005 are quantity fields and VV013 is Value field.
    Please help me how to fix the issue.
    Regards,
    Amar.

    Hi,
    Sorry, I probably confused things by mentioning Revenue. Your settings are correct, with Revenue defined as a revenue element (11) rather than a cost element (1).
    With respect to WIP (P&L), I would create it as a cost element, since it represents the absorption of cost centre costs and materials into the production of goods, even though the goods are not yet complete. When the goods are completed they will be credited in CO-OM and debited to stock using a similar entry. The impact of these credits (to WIP or to Stock) is to move costs out of CO-OM into the goods produced (CoGS). In CO-OM, the net result of Costs less credits to WIP/Stock, indicates the efficiency of your cost centres or the accuracy of your standards.
    I would also create the manufacturing variance accounts as Cost Elements and settle them back to your production costs centres (or possibly CO-PA if you used it), since they are also a reflection of the efficiency of your cost centres - i.e. if a Cost Centre manager is not achieving the standards, (s)he should be accountable for the variance, and if you are concerned about reconciling CO-OM and the costs in P&L, you won't reconcile if the variances aren't posted back to CO.
    Regards,
    Marc

  • F110 - credit note - No pymt possible because items with with a debit balance

    Hi All,
    we have credit note & invoice for same vendor. When doing payment run, below error message is coming.
    No pymt possible because items with with a debit balance.
    when we click on Reallocate & give payment method & house bank, below error mesage come:-
    Enter a payment method for incoming payments
    Message no. FZ010
    Diagnosis
    The balance of the items to be paid requires a payment method for incoming payments. You specified a payment method that is defined for outgoing payments.
    System Response
    The payment method is rejected.
    Procedure
    Enter a payment method for incoming payments.
    Please advise.
    Regards
    Deepak

    Hi Garg,
    In this case, one of the option  is that you can do the partial clearing or residual clearing, lets say Residual clearing, in this case system will clear the original items and open new item 700 as payable.
    You can clear credit memo 1800 against two invoices 1500 and 1000, out of 1000 you need take  300 and for clearing  (1000-300=-700) and -700 will be your payable amount, go to F-44.
    Amount 700 will be new payable amount:
    F110:
    Regards
    Javed

  • Automatic generation of Credit Note to Vendor from Sale order

    In  Export Sales we are giving Credit notes to the Agents (Vendors) for the price difference amount in Dollars.  We want to do automatic posting to Vendors from Sale Order. How we can do this?
    Regards/Amudha

    Hi Amudha
    Welcome to SDN Forum
    Your requirement can be fulfilled through EDI.Please go through this provided link which may give you some inputs
    Intercompany Billing (EDI) Automatic Posting to Vendor Account
    If it is still not possible through EDI also then you have to go with enhancement only
    Regards
    Srinath

  • Debit Note/Credit Note Issue help!

    Dear all Gurus,
    I am a bit confused with the last few steps of the return to vendor process.
    Here is the process.
    1) Return PO is created.
    2) Delivery Order created
    3) PGI
    4) Enter Credit Memo at MIRO
    Is the above process above correct?
    For the last step, if vendor requires debit note printout in order to send us the credit note(credit memo).
    - How can i setup the printing of such printout?
    - Which message type should I be using?
    - What is the process in this case then?
    Thanks.
    Regards,
    Zhulk

    hi!
    You have to go for message determination process for the suitable document type ( for ex.RE ) of LIV. Check it out in OLMR > Message determination process. Maintain condition records in MRM1.
    Reward if useful.
    Yuvi.

  • Automatic clearing of credit note with its billing document

    Hi all,
    I have a problem during the "release to accounting" of an SD credit note.
    The real problem is about the automatic clearing of the credit note with the billing document that it refers.
    I have only one clearing criteria in customizing on the field ZUONR (assignment number), and the credit note have the right value (the number of the billing document).
    The SD billing document and its FI document have the same number, and the credit note too.
    When the credit note is passed to FI (release to accounting automatically), the user wants that it is also cleared.
    How can I do it? Can I do it?
    Thanks in advance
    Alessandra

    Does it work now if you run it?
    If not you need to run the clearing in test mode and see how it proposes to do the clearing?
    Are you saying you have a billing doc for say 100 Euro and a credit for 100 Euro.
    Both the credit and the billing doc have the same value in the assignment field and f.13 for account type "D" is just set to clear against ZUONR.
    If that is the case it should work, however check for small things like discount being due on the billing document and not the credit note and therefore the net amount of the billing document may be less than the credit note.
    Please award points if this is useful.

Maybe you are looking for

  • My new mac pro tower might have died but i cannot tell. help

    Left on my mac pro tower 4-core with 3 gigs of ram on all night as I often do. I merely power down the apple 23" monitor because that's the only that heats up. Came down in the morning, turned on the monitor and all I see is a white screen. just all

  • Lost Home Screen Icons

    Afew moments after switching on my phone for first use, I think I strayed to the advanced options section and clicked something there which made the phone reboot and now I can't see any icons in the homescreen. The menu Key does not respond

  • Connector maxConnections property

    Hi, I made a connector and this is the oc4j-ra.xml, Is the connection pooling tag properly set? Thanks! <?xml version="1.0"?> <!DOCTYPE oc4j-connector-factories PUBLIC "-//Oracle//DTD Oracle Connector 1.0//EN" "http://xmlns.oracle.com/ias/dtds/oc4j-c

  • Redirect subdomain to a secure domain

    Is there any way to redirect a subdomain to a secure domain without getting certificate errors? I have my subdomain CNAME (campus.unikemia.com) redirecting to another domain which is secure (unikemia.blackboard.com)

  • Password synchronization problem

    Hi All, We have configured password synchronization in our SUN IDM Environment.Now we are facing problem with expired Passwords. Password synchronization is not working with expired passwords.Normal users are able change their password and password c