Need a query to run Open AP Invoices by "As Of" Date

Need the "As Of" Date criteria for the query.  I would like to run a list of Open AP Invoices by a specific date:
AP Invoices that were OPEN as of the inputted date. (ex. Open invoices as of March 31, 2015 - may have been paid after March 31, 2015 but were open as of March 31, 2015.
Thank you!

HI
i used bellow Query
SELECT T0.[DocNum],T0.[DocDate] "Posting Date",T0.[DocDueDate] "Due Date", T0.[TaxDate] "Document Date",T0.[CardName],(T0.[DocTotal]-T0.[PaidToDate]) "Balance",T0.[Project] FROM OPCH T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode INNER JOIN OCRG T2 ON T1.GroupCode = T2.GroupCode WHERE T0.[TaxDate] > =[%0] and  T0.[TaxDate] <=[%1] and  T2.[GroupName] =[%2] and T0.[DocStatus] ='O'
please update the status after checked
Thanks& regards
AndakondaRamudu

Similar Messages

  • Query to identify Open AP invoices

    HI
    How do you identify open AP invoices?
    I've gone through the discussions and noted two answers marked as correct that are yielding different results.
    1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
    2. Use the payment_status_flag in ('N','P') and cancelled_date in not NULL
    Which of the two gives an accurate representation of open AP_invoices and where do Invoices with Amount = 0 fall? should I exclude them from the query?

    I dont see any using in using below approach :
    1. You should use the invoice_amount and amount_paid columns in ap_invoices_all
    This would highlight all open/unpaid invoices

  • I done erase data and setting now what i need to do to run my i phon, i done erase data and setting now what i need to do to run my i phon

    i done erase data and setting . now what i need to do to start my i phon

    i done erase data and setting now what i need to do to start my i phon

  • Source table has an xml column that I need to query before splitting into 2 tables.

    Hi
    I have a source table with an xml column that I need to query on the nodes and then depending on what data is in the node then to split it into 2 different tables. I don't think I can use conditional split so I am looking at just a straight Execute SQL Task.
    Has anyone got any ideas on any other way of doing this?
    Thanks for the help in advance.
    Dave

    Hi TheDish,
    Your goal arguably can me accomplished using pure T-SQL only encompassing XPath or XQuery.
    E.g. the XQuery would retrieve the nodes as explained in http://sqljudo.wordpress.com/2013/12/02/xpath-for-the-sql-server-dba/
    And then you may want to use the WHERE clause to extract - insert the nodes that go to one or another table.
    I don't see why SSIS is necessary, but you can run the same queries in two Data Sources, or Execute SQL Tasks (that capture a resultset).
    Arthur
    MyBlog
    Twitter

  • Opening a website PDF yields "Adobe Reader needs your permission to run." ???

    Opening a website PDF yields "Adobe Reader needs your permission to run." ???

    Are you running Chrome?  Here is the Chrome documentation on blocked plug-ins:  Blocked plug-ins - Chrome Help

  • Query to determine which customer invoices are subjected to apply payment

    Hi you all experts.
    I have two tables (OINV and a custom made named DEPOSITS) the first one as you know keeps the record of all customer invoices. The second one keeps record of last payment from customers (this table is filled before applying payments and it consists in only two fields: ClientID and Amount.
    I will upload incoming payments through DTW, but since I only have the amount of the payment and not the invoices to where this money will be posted; I come to you for advice.
    For instance, my Customer1 just pay 5,000USD and has following invoices (in order of DueDate):
    - InvoiceA: 1,000
    - InvoiceB: 700
    - InvoiceF: 3,000
    - InvoiceD: 5,000
    - InvoiceC: 10,000
    I need to create a query that gaves me wich Invoice (with the higher due date) can be cover with the amount given, and if cannot be covered completely, to apply the remaining balance of the Deposit and keep the invoice open as partial paid.
    The expected result from this would be:
    - Invoice A: 1,000 PAYED. Remaining balance of payment 4,000USD.
    - Invoice B: 700 PAYED. Remaining balance of payment 3,300USD (4000-700)
    - InvoiceF: 3,000 PAYED. Remaining balance of payment 300USD (3300-3000)
    - InvoiceD: 300 PARTIALLY PAYED. Remaining balance of payment 0USD (300-300)
    Thanks a lot,
    Israel.

    Hi Israel,
    Query may only do calculation column wise easily. How about just create left part. The calculation between lines can be done by Excel formula after export the query result.
    Thanks,
    Gordon

  • How can i import Customer/Vendor  Opening Balances - Invoice wise

    I am going on a parallel run from next week onwards and the Client want to import all Customer/Vendor Opening Balances invoice wise , so that they can get the Aging Analysis report the no of days Outstanding as well as they can enter payment invoice wise.

    Sanjay,
    To import BP Opening Invoices or Credit Memo's,
    Use the template inside DTW folder
    \Templates\oInvoices for AR Invoices
    \Templates\oPurchaseInvoices for AP Invoices
    and so on
    I presume you would want to import them as Service Invoice so
    In the Document template
    Set
    DocNum....................................DocType......................HandWritten
    original Invoice number...............dDocument_Service..............tYes
    Document_lines
    AccountCode
    Opening Balance Account Code (Opening Balance Account is generally created in the Equity drawer and is used purely for all Opening trasactions and will balance out to zero (0) once all opening data from legacy system has been brought over)
    Let me know if you need further direction
    Suda

  • "Open Interface Invoices" Form takes time to open!

    Hi Guys,
    In our production system, it takes 3 minutes to open "Open Interface Invoices" form (AP Manager>Invoices>Entry>Open Interface Invoices). So what should we do so as to avoid this.
    I was thinking to delete data from two tables (AP_INVOICES_INTERFACE & AP_INVOICE_LINES_INTERFACE) based on certain crieterions. Like all the records which have been successfully imported i.e. with status='PROCESSED' can be deleted. So, I can achieve this using two methods:
    1. Manually using SQL Delete statement. i.e.
    DELETE FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED';
    DELETE FROM AP_INVOICE_LINES_INTERFACE
    WHERE invoice_id IN (SELECT invoice_id FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED');
    2. Or I can use "Payables Open Interface Purge" Program.
    I ran this program for my specific source, and checked the count from tables but the result is the same. This means this program has not deleted any of the processed records from these two tables for the particular source.
    What can be the reason for this? Please suggest me on this.
    Thanks a lot!
    Regards,
    Sumir Chawla

    So I tested it out on Windows Pro Reader X 3GB and it opened right away. Then I put it down to 1GB and it took over a minute! Best bet is to get a faster machine! (or at least a memory upgrade)
    In the mean time, I had a look at your form and there were a lot of objects and subforms that didn't need to be there, so I cleaned it up and made one repeatable subform. It works a lot faster now even on a 1GB.
    You can edit the title of each entry in the scripting object myLists.
    Here you go:
    http://www.fieldeffecttechnologies.com/AdobeForums/PAR_v3.pdf
    Kyle

  • Need help in R12 to reassign AR invoices to different operating unit

    Hi all,
    We need to inactivate certain operating unit A but there are open AR invoices under the oper unit. There are no receipts these AR invoices and they are not in GL yet. We need a way to reassign these invoices to a different operating unit B. Any suggestions on how to do that?
    Thanks!
    Mike

    Hi all,
    We need to inactivate certain operating unit A but there are open AR invoices under the oper unit. There are no receipts these AR invoices and they are not in GL yet. We need a way to reassign these invoices to a different operating unit B. Any suggestions on how to do that?
    Thanks!
    Mike

  • AP Open Interface Invoice

    Hi,
    This is my question.....
    Some items from AP Open Interface Invoice Lines table in Prd were deleted that would be normally imported to AP.
    This is the Invoice dated in March for Feb activity. We will need this information reprocessed and put in the interface table as soon as possible.
    Also, it appears that a step is missing in our normal process to remove processed invoices from this Open Interface Invoice table, would it be possible to review that and have it added in the automatic process?
    Any Help is very much appreciated ....Thx in advance
    Thanks & Regards
    JDev

    If I understand your requirement correctly, you want to purge the PROCESSED invoices from the interface tables. May be you can create a Request Set for the:
    1.Invoice Open Interface Import and
    2. Purge Program for the interface tables.
    Thanks

  • Discoverer need a long time to open a workbook

    Hi,
    we have 2 workbooks with over 60 calculations/workbook
    and the discoverer need over 2 min to open the parameter window.
    looks that the discoverer check all calculations if they are valid or not before display the parameter window.
    we had no problems with this 2 workbooks until our DBA's move our DB-Server to a other destination. (time for open 25 sec/workbook)
    now, the network to the new destination is not so fast like the old one.
    a trace gave us the follow information.
    the discoverer send round 50,000 small packages to the DB
    to the old Destination: 1ms/package
    to the new Destination: 10ms/package
    is there a way to disable the check function (Registry?) or know anyone what do the discoverer between "open workbook" and display the parameter window?
    This 2 Workbooks are our most used query's in the company.
    I would greatly appreciate any suggestion you may have which can help in addressing this issue.
    Thanks,
    Maurice

    Maurice,
    Have you discussed this issue with your network administrator? Another place is to check with the DBA if the new DB lacation's storage and memory. To tune the discoverer report itself, you may try to create a materilized view, or have a custom folder for each workbook.

  • Query  for report to show Invoices, Payments and Discounts

    Hi All
    I am hoping someone can help me with this query.
    What the customer needs is the invoices for a specific date range, the payments applied to the invoices and the discount amount
    Eg...
    Invoice    payment   discount
    100         90              10   
    This would be easy to get from the ORCT and RCT2 tables.
    However, sometime the users add the payment on account and reconciles the invoices and a manual journal for the discounts.
    So it would be best to look at the OITR and ITR1 tables?
    This is what I have so far and it almost balances...
    I am using this query to create the report in crystal,
    To create the discount amount from the incoming payment window i said (T0.ReconSum - T3.TrsfrSum)
    I also took out the vat amount within that formula.
    With the amounts from the manual journal, i just took the amount as is.
    select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
    from ITR1 T0
                 inner join OCRD T2 on T0.Shortname = T2.CardCode
                 left outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs  and T3.CardCode = T0.ShortName
                 inner join OITR T4 on T4.ReconNum = T0.ReconNum
                 left outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjAbs and T0.ShortName = T5.ShortName
                 inner join OCTG T6 on T6.GroupNum = T2.GroupNum
                where T3.DocDate <= getdate() or T5.ContraAct = '1127331'
    the account 1127331 is the Discount GL account.
    Based on the example the Payment + discount = Invoices
    however not all the customers are balancing..
    any ideas? it looks like my query is getting only the invoices where a payment has been done. The amounts just dont seem to match.
    Thank you
    Jerusha

    hi
    I think your join with OJDT is wrong in this part : T5.ObjType = T0.SrcObjAbs
    you should write
    T5.ObjType = T0.SrcObjTyp
    (I think you don't need this part at all )
    try this:
    select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
    from
    ITR1 T0
    inner
    join OITR T4 on T4.ReconNum = T0.ReconNum
    inner
    join OCRD T2 on T0.Shortname = T2.CardCode
    left
    outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs and T3.CardCode = T0.ShortName
    left
    outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjTyp and T0.ShortName = T5.ShortName
    inner
    join OCTG T6 on T6.GroupNum = T2.GroupNum
    where
    T3.DocDate <= getdate() or T5.ContraAct =
    '1127331'
    please let me know if it works now
    shachar

  • After running Software update, I can no longer run, open, sync or use iTunes in any way. PLEASE what happened??

    I was running the newest version of Snow Leopard, and after running Software update, I can no longer run, open, sync or use iTunes in any way. PLEASE what happened?
    I really regret that I said "OK" to Software Update message... after Software Update of these updates on 7-26-11:
    Migration Assistant Update for Mac
    Mac OSX 10.6.8 Supplemental Update
    Safari
    iTunes
    Remote Desktop Client Update
    Now I get a message:
    iTunes cannot be opened because of a problem
    Check with developer to make sure iTunes works with this version of Mac OSX. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OSX.
    Process:         iTunes [5092]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         ??? (???)
    Build Info:      iTunes-10315501~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [111]
    Date/Time:       2011-07-26 12:08:18.568 -0500
    OS Version:      Mac OS X 10.6.8 (10K540)
    Report Version:  6
    Interval Since Last Report:          504736 sec
    Crashes Since Last Report:           20
    Per-App Crashes Since Last Report:   13
    Anonymous UUID:                      B8B5EE28-970A-4E79-949B-EA2DD6E6DAA2
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: @loader_path/libgnsdk_musicid.1.8.2.dylib
      Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
    Model: Macmini3,1, BootROM MM31.00AD.B00, 2 processors, Intel Core 2 Duo, 2.26 GHz, 2 GB, SMC 1.35f1
    Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.42.4)
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: Hitachi HTS543216L9SA02, 149.05 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x0704, 0x24100000 / 2
    USB Device: Hub, 0x0424  (SMSC), 0x2507, 0x26400000 / 2
    USB Device: iMic USB audio system, 0x077d, 0x07af, 0x26440000 / 4
    USB Device: Hub, 0x0424  (SMSC), 0x2502, 0x26470000 / 3
    USB Device: Deskjet D4300 series, 0x03f0  (Hewlett Packard), 0x1f04, 0x26471000 / 5
    USB Device: GD-0608-U, 0x056a  (WACOM Co., Ltd.), 0x0021, 0x04700000 / 4
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000 / 3
    USB Device: Hub in Apple Pro Keyboard, 0x05ac  (Apple Inc.), 0x1003, 0x04300000 / 2
    USB Device: Apple Optical USB Mouse, 0x05ac  (Apple Inc.), 0x0307, 0x04310000 / 6
    USB Device: Apple Pro Keyboard, 0x05ac  (Apple Inc.), 0x020b, 0x04330000 / 5
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8216, 0x06110000 / 5
    FireWire Device: unknown_device, Unknown
    FireWire Device: d2 DVDRW FW, LaCie, Up to 400 Mb/sec

    Same thing happened to me and I get the same error message. These are the programs that don't work
    mail
    keynote
    pages
    all Office 2011 programs
    safari

  • Payment Wizard not selecting open AP invoices

    Hi,
           I am having a problem with the payment wizard outgoing check run picking up open AP invoices.  I am using the OEC Computers test company and input an AP invoice for Far East Imports and one for Acme Associates.  Both invoices have docdates of 2/2/09 and due dates of 3/4/09. 
    When running the payment wizard I selected payment type of outgoing and payment means of check.  Selected due date of 3/1/09 and posting date of 1/1/09 thru 3/5/09.  At the next window I marked the "Outgoing Checks" option.  However, on step 6 (Recommendation Report) the grid is empty showing neither of my 2 AP invoices.   
    I checked and both vendors have the outgoing payment method of "Outgoing Checks" assigned to them.
    Why aren't my open AP invoices showing up for selection in the payment wizard process?

    Hi,
    Check the Tolerance days in the payment run defaults. Take the days as zero and run the payment wizard.
    In 2005 version available under following path :
    Banking Module > Payment Wizard > Payment Run Default > Tolerance days.
    In 2007 version :
    Administration > Setup > Banking > Payment Run Defaults.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Open AR Invoice-Drafts via UI-Api

    Hy All!
    Im loocking for a way to open the window of a AR Invoice-DRAFT using the UI.
    I need to open a specific Draft that i added bevore via DI, so i know the DocEntry aso. of my Drafts.
    I can't open the invoice-form, set it to "Search" mode and search for the Draft that i added bevore.
    Does somebody knows a way to do this ?
    Thanks!
    Regards Andreas

    Add an edittext and a link arrow object to a form.
    The link arrow should be linked to the edittext, and have a linkedobject of type lf_Drafts (112)
    You can then use UI code to put the DocEntry into the edittext, and then call the click method of the link arrow.  This will result in the Draft Invoice window (or other window depending on the type of draft document) opening with your record displayed.
    If you don't want to see the link arrow and editext, simply position them off the visible part of the screen.
    John.

Maybe you are looking for