Debit Note query

Hello everyone,
Yes I know once again with a query related problem/question...
We've migrated to SBO 8.8 and have started having problems with the sales analysis report, As You know, in Mexico's taxes increased 1% in 2010 we had to create debit notes for that 1% for all 2009 unpayed invoices, it's those debit notes I'm trying to find.
I did get the query to give me the info I need, the only problem is that if I click on the link/arrow to the document number, SAP opens the INVOICE 56 (for example, it happens with all the results) instead of DEBIT NOTE 56, even though the results have been filtered to show only Debit Notes.
Here's the query I created
SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T1.TaxCode, T0.VatSum, T0.DocSubType
FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.DocType = 'S' AND T0.DocSubType = 'DN' AND  T1.TaxCode = 'AI'
GROUP BY T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T1.TaxCode, T0.VatSum, T0.DocSubType
I do realize that both Invoices and Debit Notes are related to the OINV table, in this case the T0.DocSubType helped me filter to ger only Debit Notes as a result, but what do I have to do so make the link/arrow direct me to the DEBIT NOTE X, instead of INVOICE X?
Thanks in advance
Hugo

Hello Hugo,
Try this one:
SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T0.VatSum, T0.DocSubType
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry AND T1.TaxCode = 'AI'
WHERE T0.DocType = 'S' AND T0.DocSubType = 'DN'
FOR BROWSE
Thanks,
Gordon

Similar Messages

  • Debit Note against stock transfer to sale depot

    It is required to raise a debit note in favour of sale depot of our company. Only excise values should be effected not quantity. can we set material value during stock transfer. is their any provision to do this work. if so kindly elaborate the solution.
    thanx in advance.

    I want to discuss my requirement in details
    From our plant material are sent to sale depot from where despatches are done.
    after some days when it require debit note are issued to customers who get material thru sale depot due to price diff.
    supplementary invoice need to be generated in favour of sale depot against stock transfer in which only excise value need to effected neither sale value nor stock inventory. against this supplementary invoice,  debit note will be raised to customers.
    i need to make supplementary invoice with same quantity as per previous invoice (actual invoice) but there should not be any stock movement . if it exist double stock will be transfer against single invoice.
    i have made a solution but it will not show actual quantity, which i need.
    i hope u will understand my query. if there is any solution, kindly provide. thanks in advance.
    manjit

  • Handle with return debit note

    Hi all,
    is there a process for handle with return debi notes?
    A AR invoice for an customer is payed made by direct debit (Lastschrift)
    for any reason the direct debit comes some days later back on the bank account
    but now the AR invoice ist marked as Payed (with the direct debit with the payment wizard)
    and the Bookings of the bank account are
    debit and credit on different days.
    ist there a way to handle this process to get the old invoice open?
    Kind regards
    Gerhard Bienen

    hi gerahard,
    if u want to change the status of AR invoice from closed to open u can do it with the help of the query is this what u wanted to know
    samle query to change the status of the ar invoice when banking module kas been met and i revesed teh payment thus openinging the banking module option
    SELECT   oinv.docnum, oinv.docstatus
    FROM         OINV INNER JOIN
                          INV1 ON OINV.DocEntry = INV1.DocEntry
    where oinv.docnum='29'LECT   oinv.docnum, oinv.docstatus
    regards,
    Manish

  • 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

  • FI Debit Note (interest on arrears) printed immediately

    Hello all.
    We've activated interest calculation on arrears. We use t-code FINT.
    The system automatically posts a debit note and prints interest calculation detail.
    What we would like was the following: while running fint we'd like to obtain simultaneously debit note print and interest calculation detail. At the moment we can only print debit note later through F.65.
    Best regards
    Joana Trigo

    Dear Nikhil,
    Thank you again for your suggestion. At first, I was thinking of two independent forms because we're already printing debit notes, they've been developed in sapscript and i did not intended to create a new form in smart forms. So, that was the reason i wanted to obtain the prints through two different transactions - we print debit notes through f.62.
    I've already talked to our programmer to see if he could change the smart form in order to obtain simultaneously debit note and interest doc detail. We just have to be sure that all the information is there.
    It is a great tip and we'll try that way.
    Best regards and thank you very much for your time and help.
    Joana

  • Difference between invoice and debit note

    Hi,
    what is the difference between invoice and a debit note.
    If I underinvoice a customer, should I raise a additional invoice for the difference or shud i raise a debit note. if  i need to raise debit note, then why not invoice or if i need to raise an invoice, then why not a debit note
    regards
    sachin

    Debit note is generally used to issue an invoice for already sold goods w/o physical goods movement involved.
    If raw material prices increases which are utilized in production of Finished goods. then the business will submit the relevant documents as proof at customer.
                  Once Customer is accepted, then price increase effective date will be finalized , Then business issues debit note request for the required material & its converted into debit note. ( all this will be done, based on agreement with the Customer). Generally this scenario is most widely used in Manufacturing / Automobile industry.
    where as, If invoice is created with less price than actual, you dont need to create debit note, instead you can either Cancel this invoice or create Invoice Correction request.
    hope it adds info

  • Debit Note to be raised in A/P Invoice, How?

    Dear Experts,
    My requirement might look strange to you all. I explain my business flow.
    It is connected with Service PO. We issue N kgs of Raw Materials to a Service Provider. He confirms to perform the service to a Rate of Rs. R per Kg. If he returns the whole quantity of Finished Goods i.e N Kgs - Acceptable Process loss and charges a service bill for the confirmed Rs. R or less, I do not have any problem. I could generate A/P invoice without disturbing the flow.
    But there are cases, in which the service provider would return Finished Quantity less than N Kgs-Acceptable Process Loss and/or charges more price higher than the confirmed Rate of Rs. R per kg.
    In such situations, I need to pass the bill, but I must raise a debit note either for Balance Raw Material that he retains or for the Excess amount he charged.
    I need this to happen, when I raise A/P invoice. How to accomplish this?
    Please help.
    Thanks for sparing your time to understand my business flow.
    Thanks in adv.
    Regards
    Anand

    Hi Anand,
    If your are talking about the second flow that is reduce in KGs of finished good in that case you have to make the entry as Goods Issue towards the production loss and print the good issue as the Debit Note for this you have to customize some more information that is the Vendor code ghas to be linked and the P.O number (work order/ Job Work Number has to link here) so that you can print the customer name and other details in the debit note.
    if you talk about the excess amount codeed by the vendor you can incorporate the things in A/p Invoice itself.
    Regards
    Chidambaram

  • Excise invoice w.r.t. a Debit Note

    Hi
    Is it possible to create Excise invoice w.r.t. a Debit Note. If Yes , then what are the settings that needs to be maintained and where?
    Thanks in Advance !!!!!

    Hi sagar,
    Pls have a look at this link
    J1IIN against Debit Note

  • 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

  • Credit and Debit notes in reference to Repairing invoice or Repair request

    Hi Experts!
    I create a Sales order ("RA") for repairing. My flow is complete and also billing documents are generated.
    The fixed price defined in the Repair request is copied into the invoice, and can not be modified (we block the change).
    If the price is lower or upper than the real costs. It would like to create a credit or a debit note in reference to the billing document.
    Is it a standard way to work because SAP blocks it in Standard.
    Or there is no link between a billing document and a credit memo?
    I have an alternative, to use "Purchase order N°" with Sales order, but this field is a free text.
    Thanks for your help.
    Stéphane

    Who/what is "it" in "it would like to create"? What does SAP "block"? What exactly is an issue?

  • Intercompany Billing Credit & Debit Note

    Dear All,
    I have configured intercompany billing. Now i can able to create invoice for Supplying part to Ordering Party. This invoice creation without sales order na. So, if i want to create credit & Debite memo for supplying party to Ordering party how to create. Because here we are creating invoice wioth out sales order and creating with reference of delivery note. In this process sales order creation belongs to ordering party to customer. So where we can maintain Credit & Debit note for Supplying party to ordering party. I think when we create invoice can we maintain billing type as credit note? please suggest me to maintain Cr. & Dr Memo In Intercompany billing between Supplying company to Ordering company.
    Thanks & Regards,
    Anj

    Hithere,
    For intercompany stock transfer if you want to implement credit & debit memo in intercompany you need to reference credit & debit memo requests CR & DR or the returns order with delivery NL. You will define them in the sales area of the supplying plant. Then you maintain the copy controls from RE to G2 / D2 or CR / DR to G2 / D2.
    For intercompany sales, the customer returns the goods to the ordering plant. Not the supplying plant. Coz customer doesnot know from where the ordering plant brought the goods from. So in that case customer to ordering plant is standard returns process. Returns between the ordering & supplying plant is again like mentioned above.
    Regards,
    Sivanand

  • Goods Return ---Debit Note

    Dear Experts
    Whenever we r making Goods return Invoice after creating Debit Note material Document system will allow us to make Multiple
    Invoice through one material Document (debit note) in J1is.
    it would be happen , how to control  over the message which will Pop up Error screen.
    Rgds
    Pankaj Agarwal

    Hi
    Go to-Spro-Logistics General-Tax on goods movemnet-India-Tools-Message Control-
    Change the status of Message No. 8I 595 as Error Message.
    After doing this system will not allow  to make Multiple Invoice through one material Document (debit note) in J1is.
    Regards,
    Satpal Mujawar

  • Line items join in debit note preview

    Hi gurus!
    Hope you can guide me to solve this issue.
    A user in Sales is creating a Debit Note with two items, those items have the same price but a slightly different description and for some reason when we preview the document what we get is just 1 item description with a quantity of 2 and the total amount equals the price of both items.
    So far I've checked the materials configuration and everything seems to be alright, what else can I do?
    What I would like to see in the document is both items with its proper description and price. We are using ERP version 4.6C.
    Thanks in advance.

    Hi,
    check the program which is assigned to the output type,
    T-code NACE,
    where the application is EF for the PO output,
    click on output types (F5), select output type NEU ( if you are using the standard output type ),
    whre you can get the program name under processing routines,
    check with your ABAP team for the program.
    regards
    chenna

  • How to raise debit note in SAP.

    How to raise debit note in SAP.
    Please tell in step by step instruction.

    Hi,
    1. In OVAZ assign Sale Order type DR to your sales area
    2. In OVKK  Check if the Pricing Procedure determination  is available with Document pricng procedure "A"
    3. In VA01 Select the document type DR and maintain other details and save.
    4. In VA02 remove Billing Block
    5. In VF01 enter the DMR number and process. Save.
    Hope this helps,
    Regards,
    Sharan

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

Maybe you are looking for

  • How to switch off the pop-up message in rspcm

    Hi there, Does anyone know how to switch off the pop-up message in rspcm? The monitoring user shouldn't get the pop-up below anymore: „Statusänderung des Requests – Sollen Folge-Events ausgelöst werden?“ The pop-up in english might be “status change

  • Completely unable to use iTunes in Windows 7 ultimate 32-bit

    hello, i have a grave situation here: i've installed iTunes on my laptop HP 6735b running under microsoft Windows 7 ultimate 32-bit after trying to use program nothing happens in reliability monitor i get "program stopped" next to iTunes and quicktim

  • Multiple Account assignment with cost distribution value error

    Hello Experts, We are facing the below issue, We are trying to create Limit SC with MAA cost center with cost distribution "By Value". we distribute the total value to 5 cost centers. when we try to order the SC, system is not allowing us to order, w

  • Office apps as pivot charts??

    Hey Did any one try using an office app for example  gauge or chart for excel with powe pivot model and then publish it to sharepoint gallary?? Should we wate for the new html5 version of power view for this matter? I am using the latest 2013 softwar

  • Did elationship fields in entity bean with CMP same as foreign key in table

    did elationship fields in entity bean with CMP same as foreign key in table database.so we don't have to make some foreign key column in table database. did Container handle that both. I need some answer thank's