Report with unpaid invoices

Hello i need report that show invoices which was truly unpaid longer than  60 days. I'm new in sql in Sap and this sql dont work good for me ;/
SAP Business One 8.82 (8.82.071)
SELECT T2.[CardCode], T2.[CardName], T1.[DocDueDate], T2.[DocDate]  FROM
OINV  T1, ORCT T2 INNER JOIN RCT2 T3 ON T2.DocEntry = T3.DocNum WHERE DATEDIFF(day, T1.[DocDueDate], T2.[DocDate]) >= 60
AND T1.[TaxDate] > '2013-07-01 00:00:00.000'AND T1.[TaxDate] < '2014-06-30 00:00:00.000'
ORDER BY T1.[DocDueDate] ASC;
Thanks for any help!

Hi Krystian,
Try this query:
SELECT
    T0.DocNum [Invoice No.],
    T2.DocDueDate [Payment Date],
    DATEDIFF(day, T0.DocDate, T2.DocDate) [Days Count from Invoice Date to Payment Date]
FROM
    OINV T0 LEFT OUTER JOIN
    RCT2 T1 ON (T0.DocEntry = T1.DocEntry AND T0.ObjType = T1.InvType) LEFT OUTER JOIN
    ORCT T2 ON T1.DocNum = T2.DocEntry
WHERE
    T0.DocStatus = 'O' OR DATEDIFF(day, T0.DocDate, T2.DocDate) >= 60
This will also display invoices without applied payment and those with payment beyond 60 days from invoice date.
Regards,
Donald

Similar Messages

  • Possibility of getting serial report with sales invoice details

    Hi All,
    We are Telco company and there is a requirement to view the serial numbers issued to a customer along with the invoice number, invoice date and invoice value.
    Is this possible? If yes, please let me know the tables which can be used in SQVI.
    Thanks,
    Savindi

    Hi,
    Refer the below link it may help you.......
    Re: Invoice details related to Serial Numbers

  • SAP report with sales (invoices) and cost of goods sold

    Is there standard SAP report that would show list of invoices, the materials sold, and the cost of goods sold (for how much they were bought)?

    Dear sapfan22222222
    If it is a one time activity, the please do the following.
    SE11 , put the table VBRK and execute (you may use selection criteria like DATE o BILLING DATE if there is any specific data which you are trying to extract.)
    VBRK-VBELN will give you the list of invoices.
    You can download the same into spreadsheet.
    Now copy the VBELN entries from the spreadsheet and put it in SE11 of VBRP as VBELN.
    VBRP-MATNR will give you the material sold.
    Download the same into 2nd spreadsheet
    your cost of goods sold will be coming in the pricing procedure against any condition type.
    So in VBRK which you have extracted earlier, you will find VBRK-KNUMV
    Put that KNUMV in KONV table (put KSCHL= your condition type which shows the cost of goods sold).
    Download that also as a spreadsheet.
    Now you may combine these 3 spreadsheet with the help of someone who is an expert in excel and get the required data.
    (BILLING NO FROM FIRST EXCEL , MATERIAL FROM 2ND EXCEL AND COST OF GOODS SOLD FROM 3RD EXCEL)
    Check and revert back.
    Thanks & Regards,
    Hegal K Charles

  • Purchase Order report with MIRO invoice and/or FI invoice number

    Hello,
    I am searching for a standard report which will allow PO number as input and dispaly the MIRO invoice number/s and if possible the corresponding FI document numbers.
    I have exhausted all the reports I know of - ME80FN. ME2* series, FBL3N.
    These are two options I know of but want to avoid:-
    SQVI query
    Z-report
    If there are no standrad reports, can someone explain use of Flexible analysis to create such a report.
    (Must confess that I have not fully explored that option yet).
    Thanks,
    Saurav.

    Hi,
    You can get invoice number in RSEG table
    pass this invoice number in BKPF into field  AWKEY field where you will get invoice number+fiscal year and in same table you will get BELNR FI dc for same invoice number
    Regards
    Kailas ugale

  • Report with Invoice No, SO No, EQUNR...

    Dear Experts,
    I have requirement to develop report with output containing following fields
    Invoice No, Equpiment No, Material Code, Serial No, Material Descr, Sold-to Party, Ship-to Party, Sales Order Number, Sales Person ID, and Sales Person
    if anyone knows Please let me know the tables and fields and its relationships that I can take to develop this report.
    Thanks in Advance...
    BR
    Venkat

    Hi
    Table VBRP
    VBELN  Billing Document
    MATNR Material Number
    VBRK
    KUNAG Sold-to party
    Pass VBELN in VBFA to get sales order number
    Select VBELV with VBTYP_V as C. That is sales order number
    Pass MATNR in MAKT to get MAKTX - material description

  • Report with goods receipt value and invoice posting value

    Is there any standard report with goods receipt value and invoice value (the value with which invoice is posted.

    Hi
    Please check MC$4 transaction, mey be helpful.
    regards
    Srinivas

  • Invoice report with different currencies

    Dear friends,
    I need a report for invoices. I want to choose currency from selection screen. And report will calculate invoice amount with this currency. Does SAP have a standard report for this?
    How can I see invoice list with different currency?
    Thanks

    Thanks for your interest. But I am looking for invoce report. For example I have 3 PO
    PO number      Currency      Amount
    121100                EUR             100
    121101                TRY              200
    121102                USD              300
    I want to see a invoice list like below
    Selection screen :
    Report Currency : USD
    When I execute I want to see report like
    PO number      D.Currency      Amount          Report Currency (I choose USD and amount will exchange to USD)
    121100                EUR             100                       68
    121101                TRY              200                      150
    121102                USD              300                      300
    Is it possible?

  • Aging report for Open Invoice

    Hi All,
    I need to develop an Aging report for open invoice, there is no indication for open invoice or close invoice since we are using customise DS and DS from third party system. only one key flag we have is clearing date. so kindly let me know how to write the logic for this requirement.. can I use Customer exit for this? I have an Idea to do like
    first logic is
    *If Clearing date = blank than invoice is = open (by using of this logic we can get all open invoice).
    second logic
    total number of invoice = current date - document date.
    but I do not know how to implement this logic in BEx hnece kinnly advice me whether this logic can be work or suggest with different solution ples..
    Regards,

    hi,
    You can  check few default PO reports wid proper paramater in it
    or
    Can check table EKBE
    or
    Check PO history in the PO doc
    Or
    Check the ME80FN
    Regards
    Priyanka.P

  • PO Service not link with AP invoice service

    Currently usiing SBO 2007A, SP-00, PL 49.
    I have 1 PO service. Base on this PO service, I create AP Invoice service.
    The account no. use in PO service is different from account no. use in AP Invoice service. Since account no. have been overwrite in AP Invoice.
    PO service is missing link with AP Invoice.
    When we open again the PO we couldn't find target document.
    Also same when we open AP Invoice, we couldn't find base document, which is actually the PO.
    Only in AP Invoice's remark we can find the PO no.
    Also in the database, in AP Invoice table base document no. is blank.
    Also it cause the PO not automatically close.
    Previous PL, this error not exist.
    Any one can help.
    Thanks in advance,
    Surya

    Hi,
    Please check Note No. : [ 1334491|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1334491] which explains the reported issue.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Purchase order report with basic price and Excise duty values

    Hi All,
    Is there any standard report in SAP to get the Purchase order basic price / qty and its Excise duty values ? Since we are including Excise duties for non - codified items (w/o material master and with cost center 'K') Purchase order and the ed values are added to the cost and the requirement is to see the split up (Basic priceEdEcs+Hcs)for these Purchase orders for the vendors. If there is no std report then please let me know how to link Purchase order table with this Condition value table in query to get the desired report.
    Thanks in advance
    Benny

    Hi,
    there is no standert report to fullfill this requierment
    you have to create this report with the help of abaer
    for that which tax code you are using its importnat thing
    for po table EKPO
    1. A524 (Normal supply point / Material) it will return condition record number for condition type.
    2. KONP (Conditions (Item)) .
    3. J_1IMTCHID (Combination of Material Number and Chapter ID).
    4. J_1IEXCTAX (Tax calc. - Excise tax rates
    5 get the IR no. from RBKP and RSEG, and get the relevant FI doc no. and goto BSET table
    for IR number  to get from table apply logic for doc type RE ,you will get fi number nad in refernce field you will get invoice number + fiscal year
    Map this by refernig on po for which grn and invoice happen
    Regards
    Kailas Ugale

  • Report for Partial Invoice and pendinf Invoices

    Hi all,
    We need a report for Partial Invoices /Pending Invoices done w.r.t. Purchase Orders with PO document type as one of the selection option.
    We have tried ME80FN, please suggest if there is any other report available.
    thanks,
    Prashant Rathore

    hi,
    check ME2N or ME2M with proper selection paramter value...
    and get results...
    or
    check PO history EKBE table...
    Regards
    Priyanka.P

  • Report of Pending invoices

    Hi Friends
    Can you please tell me how to get a report of pending invoices for which GR s were done (also for partially done GR s).
    This should be based on Purchase Org, Purch. group, vendor wise.
    Standard reports MB5S and ME2N will not provide all the details.
    The report should include the following:
    Purch. Grooup
    Vendor     
    Vendor Name            
    Purch.Doc.   
    Item     
    Mat. Document Number       
    DC Number                  
    DC Date                     
    mat Doc. Qty.     
    OUn                     
    GR value     
    Quantit y invoiced       
    Invoice amount LC     
    Crcy
    Early reply is appreciated, as it is very urgent
    Regards
    Manthini

    Hi
    Yes. Standard reports will not give you inputs.
    It's not easy to link material documents with invoice either.
    If you are using GR based invoice verification, then fine.
    Did you check MR11 ? However, you have to be careful not to do any postings here.
    This will have PO, material document etc. But DC no--no;
    Copy this report, remove posting related code and add code to get DC no etc from MKPF for the given material document.
    Best regards
    Ramki

  • Sales order report with order attachments

    Hi All
    I am writing a program for a 2 part report that gives a list of sales orders with attachment flags and a list of invoices that do not have the output processed due to the presence of attachment flag.
    Firstly i need help regarding few queries in the process of writing this program.
    1. How can i distinguish between a sales order with attachement and one without an attachment.
    2. What is the related field for attachment in sales header/sales item table(s) or any other sales related table which will contain information of the attachment in the sales order.
    3. If I have an attachment in sales order, will it have an effect in the output being processed for the invoice for that order.
    Thanks in Advance
    --Mike

    Hello Erik,
    is there a sales order report with the complete line-item pricing
    breakdown. For example, In VA05 I'm only able to get the Net
    Price and Net Value as an output. I would also like to view the
    breakdown of the conditions (e.g. disounts, tax, etc.)
    Is there another report in SAP that will show this? Or a backend
    table I can pull this information from to create a query?
    The best way to handle your requirement is to create a Custom report using the standard table for Sales Order i.e. VBAK and you can pick up the Document Condition Number. You can pass this number to table KONV and pull up all the values for the active contion type which was responsible for Sales Order price calculation. Please reach out to a ABAPer to develop this sort of a custom report.
    Just FYI, if you want to check out all the value for a specific condition type, then you can use the standard report i.e. V/LD.
    Please update your post after carrying out this exercise.
    Regards,
    Sarthak

  • Need a report with po,gr,ir values in LC and FC

    Dear experts,
    How can I develop this custom report  with po,gr,ir values in LC and FC with the following fields
    is their any standard sap report .Please advise
    PO NO
    PO DATE
    GRNO
    GR DT
    IR NO
    IR DATE
    VENDOR
    GR VALUE
    IR VALUE
    GR VALUE IN FC
    IR VALUE IN FC
    STATUS
    Rgds
    Naresh

    After joining the tables, or in the info set screen where you join the tables, you will see 'Extras'.  Click on it and use the create tab to set up ZGR_MENGE (Goods Receipt) and ZIR_MENGE (Invoice Receipt). 
    Define long texts and header descriptions.  Under format, enter 'P' for type, '007' for output length and '03' for decimals.  Enter EKBE-MENGE for LIKE Reference.  Sequence for code '1'.
    For Invoice Receipt, enter 017 for output length.
    Just to add, your abaper would have to put in a simple code based on the specifications you give him/her.
    Best of luck.
    Elias

  • Using crystal reports to generate invoices

    Post Author: samme
    CA Forum: General
    I'm writing a report for a client who wants to print multiple invoices using crystal reports.  The invoice needs to sort in date order, one date and information associated with that date on each page.  Each page has a subtotal since multiple items/services are linked ot one date.  The last page of the invoice needs to have the total and should at the bottom of the page with the last subtotal.  Not onlastrecord does not work because if the user prints multiple invoices, crystal doesn't see the "last record" until the last record of the last invoice.
    The client wants the normal invoice information on the first page of the invoice:  Company Logo, Customer Address, Company Info, Invoice #, Date, etc. as well as the column headers - quantity, unit of measure, price, etc.
    On all other pages of the invoice, the client wants, the company logo, the invoice # and the column headers.
    I have the report grouped by invoice number and then by a date formula.  I cannot seem to get where I need to be with this invoice and have been working on it for some time.  Can anyone give me some direction please..... 
    Thanks in advance!

    On Sat, 15 Mar 2003 16:46:48 GMT, "Bill Bradley"
    <[email protected]> wrote:
    >I know. We thought that the Report Builder would be the way to go,
    since
    >ART didn't do too much for us. You guys poorly document it, and,
    show no
    >examples of using it to build a report. In addition, it'd be nice if
    >SOMEONE would come up with a list of what tables show what. While
    Novell
    >may have a detailed list of things in the ZFD docs, it's pretty much
    so
    >detailed and complex that, it's next to useless. I've resorted to
    doing
    >huge dumps of things to a csv, then, using CR or Excel to generate
    some kind
    >of report.
    >
    >The whole process is not as easy as it should be, seeing that we paid
    money
    >to get a reporting vehicle.
    >
    >As comparison, SMS isn't any easier, but, there's more documentation
    on it,
    >so, when you're forced to roll your own report, it's a clearer
    path...
    I do understand, I'm not a programmer either :-(
    the company who wrote report builder is Digital Metaphors, they have a
    very good
    training application and additional detailed information of how to
    write
    reports.
    The CIM schema is I agree Cr** (well not easy) and without the detail
    that
    Novell provide it doesn't work.
    I hope that a friend of mine is going to provide the compromise that
    you and I
    are looking for. Namely the ability to create the SQL queries that
    ART can
    make, with a simple report system. Keep an eye on caledonia.net for
    an
    announcement for ART4 (Derived from but unrelated to Salford
    Software's
    product) :-)
    Tim
    No Direct e-Mail Please!
    Tim Heywood
    Independent Consultant
    Scotland
    Novell Support Connection SYSOP
    In theory, practice and theory are the same,
    In practice they are different!

Maybe you are looking for

  • Problem with iTunes and sync'n Contacts

    I'm a new user to the iPod and iTunes in general. Unfortunately I've encountered a few problems with putting contacts on my iPod. I have the new video 5th generation iPod and Microsoft Outlook 2003, however when I try and sync the contacts to the iPo

  • In general, how do I put code into a loop?

    I have access to a procedure that takes a parameter and spits out a single result. I need to figure out how to use that procedure and spit out many results. This example should clear things up. VARIABLE enum NUMBER; EXEC :enum := 7566; -- my procedur

  • Could anyone help me fix it?

    @implementation SecondViewController -(IBAction) pushLowLevelQuestionView: (id) sender {           [self.navigationController pushViewController:lowLevelQController animated:YES]; There is a warning saying that "Incompatible Objective-C types 'struct

  • N80: pc suite cant find tracks on my pc ?

    im running windows xp,ive just downloaded the pc suite today,and im connected by usb cable.i have certain tracks on my pc that the audio manager cant find.they are all m3u tracks.ive checked/unchecked the box under options/settings etc i have no trou

  • How to add a field that is not part of existing page attributes

    Hi Experts, Can someone give step by step procedure for adding a field that is not part of IC web view page attributes. I mean the field that I want to add is in BOL entity BTSaleset which is linked to BTAdminH through BTHeadersaleset relation. I hav