Query to show BP, Check Num, and INVs paid

I need a query for my customer who is being audited. They need a report for the BP, ck num,
amt, date of chk, bank code, bank name, and  a list of invoices paid and the amounts for each invoice.
Does anyone have a query ?

Try this one:
SELECT T1.CardCode ,T1.CardName, T2.CheckNum,  T2.CheckSum, T2.BankCode 'Bank Code', T2.Branch, T2.AcctNum, T2.DueDate, T1.DocDate AS 'Posting Date', T0.DocEntry AS 'Invoice No.',T0.SumApplied AS 'Paid to Invoice'
FROM dbo.VPM2 T0
INNER JOIN dbo.OVPM T1 ON T1.DocNum = T0.DocNum
INNER JOIN dbo.VPM1 T2 ON T2.DocNum = T1.DocNum
WHERE T1.DocDate Between [%0\] AND [%1\] AND T1.JrnlMemo not like 'Cancel%'
Thanks,
Gordon

Similar Messages

  • Query to show relation between archive and backuppiece

    I want to query the RMAN-repository by using SQL. I am looking for a query showing me the releation between a archived logfile and a backuppiece. A bit like 'list backups' but in SQL.
    Offcourse I played around with SQL, but it is quite hard to create a query showing this information.
    Anyone out there who has a such a query? Thanks!

    Hi pvenpven,
    I hope this query answers your original question:
    SELECT d.handle , a.name
    FROM rman.rc_archived_log a,
    rman.rc_backup_redolog b,
    rman.rc_backup_set c,
    rman.rc_backup_piece d
    WHERE a.db_name = '&db_name'
    AND d.handle = '&piece_name'
    AND a.first_change# = b.first_change#
    AND b.set_stamp = c.set_stamp
    AND c.set_stamp = d.set_stamp
    GROUP BY d.handle , a.name
    ORDER BY d.handle
    (Might be you figured this out yourself.)
    Regards,
    Tycho

  • TS1398 i cannot get the wifi on my ipad to lock on to the signal it just keeps thinking but never shows the check mark and the signal strength is at full?

    My wifi will not lock onto signal? The signal is as good as it gets but it just keeps searching?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Query for SO and INV Tracking

    Hi guys.
    I have another problem now. I was asked to help to create a query that can track SO and INV independently (which means the absence of INV will not affect the presence of SO on the query). I have tried to code it out and it seems that it works perfectly fine. Just that I ain't that sure whether my code is a correct one as I doesn't want to cause my colleague to make mistakes on her report. So, I need you guys to check the code below and if possible, suggest some improvement that could be made to it.
    SELECT T0.[DocNum] as 'S/O No.', T0.[DocStatus],T0.[DocDate],  T0.[CardCode], T0.[CardName], T4.[DocNum] as 'INV No.'
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN DLN1 T2 ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
    LEFT JOIN INV1 T3 ON T2.DocEntry = T3.BaseEntry AND T2.LineNum = T3.BaseLine
    LEFT JOIN OINV T4 ON T3.DocEntry = T4.DocEntry
    ORDER BY T0.[CardName]
    The main reason I link them via LineNum is because in some of the older database, JobNo were not input into the A/R Invoice form and thus I can't directly link SO with INV. Thus, I link it via DO row level. Please advice whether this way is a correct way, or its a big mistake.
    Thanks !!!

    Hi Gordon.
    There is a problem now. The joining that we use on the code above involves SO, DO and INV. However, the piority is on INV No and SO No. There are some issue now, in which some SO were directly copied into INV without DO. Thus the linking that we use on top doesnt work for these SO or INV - it wouldnt query them out.
    I know we can join these documents via linenum or job no, but using job no is out of the question as in the past practice or even now, some of these SO and INV doesn't have any job no entered. Thus, I can only depend on linenum. I have done another query by using linenum only. 
    SELECT Distinct T0.[DocNum] as 'S/O No.', T0.[DocStatus],T0.[DocDate],  T0.[CardCode], T0.[CardName], T0.[DocTotal] as 'SO Doc Total', T3.[DocNum] as 'INV No.'
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN INV1 T2 ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
    INNER JOIN OINV T3 ON T2.DocEntry = T3.DocEntry
    ORDER BY T0.[CardName]
    It is working fine, but I afraid that this way it will overlook any SO or INV with DO ?

  • Windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    windows vista system, continuously trying to download a DRM file in Adobe Digital Editions application shows "Error check activation". I have authorized the Fire Wall and still the same.

    Since Re-activation as suggested by the link above is not working for you, Can you please confirm the following:
    The OperatorURL is reachable. ( you can find the operatorURL from the acsm file by opening it in notepad,etc)
    And Book is still available on the book-store for purchase.
    (If any of first two are not available, you might have to talk to distributor for next action item to get the book. Since you will have record of purchasing the book, (in my opinion) they should provide you the new token for downloading the book)
    And please confirm this that you used the same userID for downloading that you used when you first fulfilled/downloaded the book.
    (If it is the case, then you have to use the correct userID)
    I hope it helps.

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • SCCM 2012 QUERY THAT SHOWS SOFTWARE INSTALLED AND LAST TIME IT WAS USED OR OPENED

    Hello
    I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%adobe acrobat%pro%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
    update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
    select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    = "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
    not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%

    See me reply to your other post with the exact same details, in the CM07 forum.
    http://www.enhansoft.com/

  • When I have current shows to download, my check for available downloads tells me all items have been downloaded. I have to go to iTunes Store and then to the show's iTunes page and click download.

    When I have current shows to download, my check for available downloads tells me all items have been downloaded. I have to go to iTunes Store and then to the show's iTunes page and click download.

    Downloading past purchases from the App Store ... - Support - Apple

  • HT4539 There was an option, provided by itunes, while updating ios, saying 'download and update', 'download only', 'cancel'. I accidentaly checked 'don't show this message again'. and now i want to change my preference. How to get it back please?

    There was an option, provided by itunes, while updating ios, saying 'download and update', 'download only', 'cancel'. I accidentaly checked 'don't show this message again'. and now i want to change my preference. How to get it back please?

    hello , i did exactly the same thing , and my app store icon look like this :
    http://i.imgur.com/FIrph.png
    so can you tell me how did your friend send the app store for you? please

  • Query to show BP and discount groups where appropriate

    Hi Experts,
    I need some help in setting up a query to show me whether or not a BP has anything in special prices for business partners.
    Essentilly I just need to report the BP Code, BP Name and Y or N as to whether they have item codes in special prices for BPs.
    Thanks
    Jon

    Hi Jon,
    Try this one:
    SELECT T0.CardCode, T0.CardName, Case WHEN (T0.CardCode NOT IN (SELECT T1.CardCode FROM OSPP T1)) THEN 'N' ELSE 'Y' END AS 'Y/N'
    FROM dbo.OCRD T0
    Thanks,
    Gordon

  • MDX Query to show the latest product text again historical facts (Type 2 dimenion linking on Surrogate key and also Natural Key)

    I need to write a MDX query to show the latest product text again historical facts or a chosen product text in time. I can write this query in TSQL, but new to MDX.
    The way I do it in TSQL is joining two queries together on the Natural Key as opposed to the surrogate key.
    Can this be done in MDX. I know I could write two separate MDX queries, one which get the product text I wan and the other to get the measure with the actual product text and Natural Key, and use a lookup function in ssrs to show the two result sets I the
    same tablix by looking up the Natural Keys. But this should be able to be done in one query shouldn't it.
    In the dsv the fact knows to join to the dimension using the surrogate key.
    Thanks J

    Hi Jamster,
    According to your description, you want to write a query to show the latest product text, right?
    In MDX, we can use LastNonEmpty function to return the lastest member winth a dimension. LastNonEmpty is an aggregation function available in the Enterprise version of SQL Server. However, you can create your own with a little bit of recursive MDX. Here
    is a sample query for you reference.
    With Member Measures.LastHits as
    iif(isempty(Measures.Hits),
    ([Date].[Year Month Day].prevmember,
    Measures.LastHits
    ),Measures.Hits)
    Reference
    http://cwebbbi.wordpress.com/2011/03/24/last-ever-non-empty-a-new-fast-mdx-approach/
    http://richardlees.blogspot.com/2010/07/getting-last-non-empty-value.html
    If this is not what you want, please provide us the detail structure of your cube and the expected result, so that we can make further analysis and give you the exactly MDX query.
    Regards,
    Charlie Liao
    TechNet Community Support

  • TS1702 when i am trying to download new game from app store it showing "to check the time and date settings"?

    when i am trying to download new game from app store it showing "to check the time and date settings"?

    planb77  The OP said he has iOS 3. The Automatic in Settings>General>Time and Date was introduced in iOS 5. The OP just has to see if the time and date, included time zone, are correct.

  • After charging my iphone5 for many hours I checked it and it 100% charged but not fully charged as the sign of charging on the top of the screen is still and the sign of unblug the charging cable doesn't show up and this happened several times ...!?

    After charging my iphone5 for many hours I checked it and it 100% charged but not fully charged as the sign of charging on the top of the screen is still and the sign of unblug the charging cable doesn't show up and this happened several times ...!? What is the problem and how I fix it !? Thanks in advance :)

    Apple told you it was unrepairable.... You had it serviced by an unauthorized party. It's now no longer eligible for out of warranty replacement by Apple.
    There's really nothing else we can say about it. Find a competent 3rd party repair shop or buy a new one.

  • Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    Hi, My Lightroom CC is showing waiting for connection and the mobile sync is not working. I have tried deleteing lrsync data, disabling firewall, checked host file etc. Still no luck.

    I had the same problem. It fixed itself when I opened Internet Explorer (I don't normally use it). I was opening Support Portal to get some support help, but I'm not sure if it was the page or simply opening IE that did the trick.

  • Check price and availability shows no data

    Dear Experts,
    In the Check price and availability app, im trying to check the availability of a material on a particular date.
    Issue 1:
    The available stock quantity for material 953 is 260. There is no availability check maintained in material master(KP- no check)
    Say for eg, 29th may and quantity as 10 items for material 953, the app displays data as below. How is the estimated delivery date calculated as i ahve not maintained any planned delivery date in MMR.
    But when i check for this material 953 or 954 or 2390 or any other material for date 27th may or 29th may, it says stock is not available though the
    physical stock is listed for 260 pcs as below.
    Issue 2:
    The available stock of material 953 is only 260. when I check for 1000 quantities on 30th May, the system must say, stock is not available
    But however the app displays stock is available with the estimated delivery date. Im unable to find the cause of this output.
    Please guide me how to sort the issue.
    Please help as this issue is urgent.
    Thanks & Regards
    Dhinesh
    Message was edited by: Michael Appleby

    Hi Dhinesh
    I am Also facing this problem from long back. And we updated all the Patch level but i didnt get the solution.
    Please Share the Info if you find the Solution for this issue.
    Regards
    Prasanth SV

Maybe you are looking for