I am trying to create a report that shows the last payment received by BP customer

I am just looking for the last payment the most current one.  I am not sure of  how to write "Last" payment only. Best Danielle

Hi,
Try
select top 1 a.DocNum, a.DocDate, a.DocDueDate, b.CardName, a.DocTotal
from ORCT a
inner join OCRD b on b.CardCode = a.CardCode
where a.CardCode = '[%0]'
order by a.DocDate desc
Regards,
Alvin

Similar Messages

  • Trying to create a report that shows all 8.1 machines missing update 1 (KB2919355)

    Currently I have a report that polls every machine that talks to our SCCM 2012 server and only displays Windows 8.1 machines.  
    I'd like to modify the code where it will only show the 8.1 machines that are missing Update 1.  That way we can go through and patch the ones that need it.  Is this possible? 
    The existing query looks like the following: 
    SELECT
    SCCM_Ext.vex_R_System.Name0
    ,vMacAddresses.MacAddresses
    ,v_GS_PC_BIOS.SerialNumber0
    ,v_GS_COMPUTER_SYSTEM.Model0
    ,SCCM_Ext.vex_R_System.Operating_System_Name_and0
    ,v_GS_COMPUTER_SYSTEM.UserName0
    FROM
    SCCM_Ext.vex_R_System
    INNER JOIN vMacAddresses
    ON SCCM_Ext.vex_R_System.ResourceID = vMacAddresses.ItemKey
    LEFT OUTER JOIN v_GS_PC_BIOS
    ON SCCM_Ext.vex_R_System.ResourceID = v_GS_PC_BIOS.ResourceID
    LEFT OUTER JOIN v_GS_COMPUTER_SYSTEM
    ON SCCM_Ext.vex_R_System.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID
    WHERE
    SCCM_Ext.vex_R_System.Operating_System_Name_and0 like '%6.3'
    ORDER BY SCCM_Ext.vex_R_System.Name0

    Here is the code I use to pull 64bit machines that don't have CU1 (BTW cu2 is now out):
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SY STEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM .Client from SMS_R_System inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceID
    = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where (SMS_G_System_SMS_ADVANCED_CLIENT_STATE.DisplayName = "CCM Framework" and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version
    != "5.00.7958.1203") and SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC"
    Minor mods to this or your code should do the trick.
    ...I see you're talking an update to the OS, rather than SCCM update. Still hopes this helps.
    Ben JohnsonWY

  • Can we create a report that show us all comments created for a specific MP

    Hi All,
    I have created documents for multiprovider.
    Now, I want to know whether we can create a report that shows all the documents created on this multiprovider or not.
    Your help will be rewarded.
    Regards,
    Haritha.

    Check out this post: http://forums.adobe.com/message/4399918#4399918
    You can use skip logic to get the desired effect. If you have problems do it just reply back.
    Randy

  • SCCM 2012 Report that shows the users with specific software installed

    Hi,
    Is there a report in SCCM 2012 that shows the users with specific software installed? The report should show username, machine name and the software name. I am looking for a report that shows the users with the following softwares installed:
    1. Adobe(all versions)
    2. Photoshop(all versions)
    3. MS Project(all versions)
    4. MS Vision(all versions)
    Regards, Lorin Davis

    Take a look at the Asset Intelligence reports in the software section. You may get a list of computers with a product installed, and you might have to use that list to find the primary users based on user device affinity.

  • Trying to create a query that shows Sales Order/Invoice Totals as well as Paid/Outstanding/Available Down Payments

    Currently working on SAP B1 v8.82
    I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
    I'm not sure what the best way to select the columns in bold above.  Invoice Total should be self-explanatory.  Amount Paid should be any down payments or applied payments on the invoice.  The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order.  If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum.  Open on Sales Order should be pretty easy.  I guess it's just the sum of everything that is still open on the Sales Order.  I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is.  Here's what my query looks like so far.
    SELECT DISTINCT T4.[DocNum] [Sales Order No],
    T0.DocNum [Invoice No],
    T4.DocTotal [Sales Order Total]
    T0.DocTotal [Amount Outstanding],
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
    INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
    INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
    WHERE T0.CardName Like '%%[%0]%%'
    GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
    I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • Report that lists the last Public Response on a ticket

    Does anyone have a report that they would share that shows all open tickets with the last Public Response made on the ticket?  A ticket might have several internal notes added to it, but I only need the last Public Response comment to show.  Thanks.
    William
    This topic first appeared in the Spiceworks Community

    Hi,
    The following thread may get you start.
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/559e8ae9-15bb-482f-8981-535e0f77b01f/sccm-queries-of-ad-groups
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Report that shows the PO and PR number for each FI doc # of invoice posting

    Hi
    I want a report in SAP for PO and PR no. for each FI doc.
    Thanks & Regards

    There is no standard report. Through development or BI.

  • In Firefox 4.0.1 (Mac), where is the arrow in the url window that shows the last few visiting sites in a given tab?

    Previous editions of Firefox had an arrow at the right side of the url window of a tab so you could see where you'd been in that tab before--where is it now?

    You can get the drop down list by either right-clicking (or control-clicking) on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker (I believe the add-on works on the Mac, but as I do not have a Mac I can not test it)

  • Error while creating a report that uses Oracle OCI JDBC connectivity

    Please let me know why my CR and LF characters are removed from my forum posting *****
    Hi,
    I was trying to create a report that uses Oracle OCI JDBC connectivity. I am using Eclipse3.4 download from "cr4e-all-in-one-win_2.0.2.zip".  I have successfully created a JDBC OCI connection.
    The connection parameters are given below:
    URL: jdbc:oracle:oci8:@xe
    Database: xe
    username: <userName>
    password: <password>
    I have tested the above connection in Data source Explorer and it works fine!!!
    But I am getting the following error when I drag-and-drop a table from the list of tables. Not sure what I am missing here?  Any help is highly appreciated.
    com.businessobjects.reports.jdbinterface.common.DBException: InvalidURLOrClassName
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
         at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
         at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
         at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
         at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2408)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:163)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:523)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Thanks
    Karthik
    Edited by: KARTHIK1 on Oct 14, 2009 9:38 PM

    Hi Ted,
    Thanks for the feedback. I was able to create a report in Creystal Reports Designer 2008 using OCI.  It is not allowing only in the Eclipse plugin. In our environment we are not allowed to user Oracle thin connections and ONLY OCI is allowed.
    1) Can you please let me know if there is a way to do this? 
    2) Will it allow data sources using native database driver?
    3) If so, can I use JRC to create these reports from a desktop java program?
    Thanks & Regards
    Karthik
    Edited by: KARTHIK1 on Oct 15, 2009 4:38 PM

  • Vendor report that shows all vendors missing tax id information

    I would like to create a report that shows all vendors that are missing the tax id information.  Please direct me on where to go.
    thx
    Trace

    Dear,
    Enter T-code MASS.
    Select Object Type LFA1 and click on execute button.
    Than click on Fields tab, Find your required field and click on execute button.
    Than enter vendor list for which you want to find out the list.
    And click on execute button.
    Regards,
    Mahesh Wagh.

  • Cost Centre report that shows all Tax Codes

    Hi there,
    We're trying to run a cost centre report that shows the tax codes relating to all expenditure, but Tax Code isn't an option in KSB1.  Is there a way that it can be imported, or another report that we can use?
    We need the tax code in order to be able to report on expenditure and tax paid / not paid for HMRC.
    Thanks,
    Michelle

    Hi,
    Cost reports KSB1 show only CO documents posted on cost centres. You can reconcile CO data with FI only for accounts which are relevant for CO, that is accounts defined as cost elements (normally, these are P&L accounts). If you want to see all CO documents, it's better to use KSB5 transaction as it shows all CO object postings, and not only cost centres. If you have some internal CO postings (manual postings, allocation, etc.), then they won't be shown in FBL3N and you have to consider this also.
    Regards,
    Eli

  • Report that shows managers and his/her Employees

    Hello All,
    Is there any standard report that shows the list of managers and his employees.
    Eg:
    Report should like below
    ManagerObjID EmployeeObjid
    When I enter a position of a manager it should give managers and employees belonging to that position.
    Thanks
    Venkat

    hi,
    u can that details from HRP1001 table.
    or u can use function module RH_STRUC_GET .

  • Creating a report that's compliant with SEC

    Does anyone have experience in creating a marketing log that's compliant with SEC. Need to generate a report that shows whichmarkting materials were sent, how they were sent (email or mail) date sent and by whom. any advice is much appreciated. i've been trying for weeks to solve this issue

    You should be able to use Activities to track the marketing log information.

  • The report cannot be displayed. (rsProcessingAborted) when trying to create a report?

    Hi,
    I was looking to create a new report, all I want to do is to run a report that shows a users activities so if they have updated a record, or created/modified notes. 
    I tried the followingbut I got an error of The report cannot be displayed. (rsProcessingAborted)

    Thanks David,
    Thanks for your help.
    I can see the following from the logs.
    Application log
    Report Server (MSSQLSERVER) cannot load the TERADATA extension.
    System log
    The Kerberos client received a KRB_AP_ERR_MODIFIED error from the server CRMAPPSVC. The target name used was HTTP/CRMSERVER. This indicates that the target server failed to decrypt the ticket provided by the client. This can occur when the target server principal
    name (SPN) is registered on an account other than the account the target service is using. Please ensure that the target SPN is registered on, and only registered on, the account used by the server. This error can also happen when the target service is using
    a different password for the target service account than what the Kerberos Key Distribution Center (KDC) has for the target service account. Please ensure that the service on the server and the KDC are both updated to use the current password. If the server
    name is not fully qualified, and the target domain (C.LOCAL) is different from the client domain (C.LOCAL), check if there are identically named server accounts in these two domains, or use the fully-qualified name to identify the server.
    Reporting Service log files
    library!WindowsService_142!1c58!02/04/2015-09:27:48:: i INFO: Call to CleanBatch()
    library!WindowsService_142!1c58!02/04/2015-09:27:48:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
    library!WindowsService_142!1c58!02/04/2015-09:27:48:: i INFO: Call to CleanBatch() ends
    processing!ReportServer_0-9!140c!02/04/2015-09:28:02:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DSMain'.
    ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Microsoft.Crm.CrmException: An unexpected error occurred.
    System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception.
    System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception.
    System.ComponentModel.Win32Exception: The target principal name is incorrect ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: An unexpected error occurred. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    A call to SSPI failed, see inner exception. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: A call to SSPI failed, see inner exception. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The
    target principal name is incorrect
       --- End of inner exception stack trace ---
       at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.CheckCompletionBeforeNextSend(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.CheckCompletionBeforeNextSend(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
       at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)
       at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.CheckCompletionBeforeNextSend(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.CheckCompletionBeforeNextSend(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessReceivedBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
       at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
       at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)
       --- End of inner exception stack trace ---
    I do believe the issue to be with authorization account so i will dig further to see if i can fix it.

  • Urgent help! trying to create basic report with prompt.

    Hi,
    I'm trying to create a report which allows a user to select a item_id value (using either a LOV or manually entering a text_id) and then too display output.
    for some reason apex does not like the '&' prompt, in the SQL.
    Any help or suggestions, would be great? this is quite straightforward so it must be something I'm doing wrong!
    sql statement below:
    select i.item_id, i.title, d.date_logged, d.details
    from tracking_issues i, tracking_details d
    where i.item_id=&item_id
    and i.item_id=d.item_id

    Smiley,
    Apex is building a JSP, so instead of you running the page and it poping up a input box that you might be familar with if you run your sql in TOAD or SQL Nav it is waiting on your input(text box/LOV) to populate the item_id field. You need to build your LOV on something like select item_id d, item_id r from items and then once you select that item in the LOV the page will(should - based on how your branch is set up) to the page you are on and your report is displayed.
    Also make sure in your branch you are setting the LOV item name to the value you select for it in the branch since the page needs re-submit.
    Your select statement for your report should look like:
    select item_id, title
    from tracking_issues
    where item_id=:p1_LOV
    --where p1_lov is the name of your LOV
    -David

Maybe you are looking for

  • Performance issue in oracle 11.1.0.7 version

    Hi , In production environment we have some cronjobs are scheduled, they will run every Saturday. One of the cronjob is taking more time to finish the job. Previous oracle version is 10.2.0.4, that time it was taking 36hrs to complete it. After upgra

  • Some fields missing from the Information interface

    On iTunes 12 I can't find the "Description" field that was in the Video page. The field still shows in the list of songs, but it doesn't appear on the new "Information" interface. And I don't think this is the only field missing compared to the previ

  • Multi touch gestures simultaneusly

    Hi all, I would like to know if it is possible to capture mltitouch gestures in mobile apps for iOS and Android. In my current tests I can do a rotation, or a scale, but not simultaneusly, the gestures recognizers are only activated one after the oth

  • Video player problem

    hi, how to make blank space in video path to make work.java fx media player doesn`t work it throws illegal character exception.

  • The rest of the village can get infinity, but I ca...

    So basically the local exchange has been enabled and the cabinet in the village has the super fast broadband sticker on it. When I put my details into the bt and openreach checker it says that infinity isn't available, it also doesn't give a cabinet