Query to pull all the receipts applied....

My requirement is to pull the list of all the receipts applied with the applied amount of that receipt, the unapplied amount and the on account amount on that receipt. The Applied plus Unapplied plus On-Account amounts should equal the Receipt Amount.
Please let me know if any one has a query to pull these items.
Any help would be greatly appreciated!!!
Thanks in Advance!!!

Pls find the script to find the Hold invoies for those suppliers 
select aps.VENDOR_NAME,aia.INVOICE_NUM,aia.INVOICE_AMOUNT
from ap_suppliers aps,ap_invoices_all aia,ap_holds_all aha
where aia.VENDOR_ID = aps.VENDOR_ID 
and aia.INVOICE_ID = aha.INVOICE_ID 
and aha.RELEASE_REASON is null
Thanks
Hari

Similar Messages

  • Why has iTunes seperated a album which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Why has iTunes seperated a album into indevidual songs, which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Steve MacGuire a.k.a. turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message/9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.  If they are not a multiple CD set you still need to make sure the disc number fields are set correctly or all empty.

  • Sql query to identify all the responsibilities attached to a form

    (oracle - apps) Can anyone help me by giving a sql query to identify all the responsibilities attached to a form and corresponding menu should not be in the menu exclusion.
    Thanks in advance
    Venki

    Bump

  • SQL query  which return all the NET SERVICES which are avaiable in tnsname

    hi all
    how to write a sql query which return all the net services which are avaiable in tnsname.ora
    Regards
    s

    Also, tnsnames.ora is stored on the client, and not necessarily on the server; it's possible (and quite likely) that the name I use for a database in my tnsnames.ora could be different from the name you use for the same database; conversely we might use the same name for two different databases.
    Regards Nigel

  • Query to fetch all the responsibilities for which OA page is attached

    Hi Team,
    please help me to prepare a query to fetch all the responsibilities for which OA page is attached.
    thanks in advance
    Thanks & Regards,
    Sriram T

    Hi,
    Querys which you have provided was helpful.
    But i was struck with the following issue. As the function is not excluded directly it may be excluded via a menu to the responsibility.
    Even though it is displaying the responsibility name.
    The following query is used to display the responsibility name with menu and function exclusions.
    please help me on this.
    SELECT r.RESPONSIBILITY_NAME
    FROM
    fnd_responsibility_vl r,
    fnd_form_functions f
    WHERE f.function_name = 'VSFFFRMADMN'--f.form_id =p_form_id
    AND r.menu_id IN (SELECT me.menu_id
    FROM fnd_menu_entries me
    START WITH me.function_id = f.function_id
    CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
    and r.menu_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=r.menu_id
    and frf.rule_type='M')
    and f.function_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=f.function_id
    and frf.rule_type='F')
    Thanks
    Sriram T

  • Query to find all the view name and their size in GB

    Hi,
    What is the query to find all the view name and their size in GB.I am aware of joining all_views and user_segments but this is not serving the purpose.is there any table i need to join to get the desired result
    Thanks

    You could of course be thinking of views as they are stored in other RDBMS' as some of them actually create the view as a table on the database with a copy of the data in it and maintain that data as the base tables are updated.
    As already mentioned, Oracle just stores the SQL of the View and executes that SQL when the view is queried.
    Alternatively, Oracle also has "materialized views" which are created as snapshots of the data and will have a size. This data is updated (refreshed) based on the parameters used when creating the materialized view which means that it will either be, commonly, when a commit is issued or when a refresh is explicitly requested (refresh on demand).

  • Query to find all the suppliers who has their invoices on hold

    Hi All,
    Query to find all the suppliers who has their invoices on hold (at least 1) .
    Thanks,
    Vamshi

    Pls find the script to find the Hold invoies for those suppliers 
    select aps.VENDOR_NAME,aia.INVOICE_NUM,aia.INVOICE_AMOUNT
    from ap_suppliers aps,ap_invoices_all aia,ap_holds_all aha
    where aia.VENDOR_ID = aps.VENDOR_ID 
    and aia.INVOICE_ID = aha.INVOICE_ID 
    and aha.RELEASE_REASON is null
    Thanks
    Hari

  • While creating the parameter it doesnot pull all the data of that particular column

    Post Author: pvds
    CA Forum: Data Connectivity and SQL
    Hi everyone.
    i am using a sql query with a join condition to pull data in to crystal reports. I got that data which i want in to the report. but when i was trying to create a parameter with a dropdown of all the database values to a particular column it is not showing all the data from the report.
    for example  i have a column called state
    the column has many states displayed in the report but when i select that column and select browse data it shows only 1 state. with this i am anable to create a parameter with a dropdown list of all the state. i can see different states in the report but y i am not able to see when i browse the data or create a parameter? can any one answer me?
    i already created another report with a query on same table but i never faced this problem before.

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    There is a limit to the number of Parameters that will show in a drop down... You can increase using the following.
    Check this KBase article on how to increase the number.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=19032644&stateId=1%200%2019034607

  • Query to find all standard invoices applied against pre-payment invoices

    Dear All,
    Please help me with the query which would list all the standard invoices applied against pre-payment invoices.
    Additionally they query show display the pre-payment invoices which are not yet applied.
    Example :
    Rec # Pre-payment inv # Inv-amount Standard Inv No. Amount Applied
    1 P001 100.00 S001 100.00
    2. P002 200.00 NULL NULL
    In the above example in record no. 1 for the pre payment invoice number P001 a standard invoice S001 is applied with same amount of 100.
    In the second record the pre payment invoice P002 is not yet applied and hence standard invoice number and amount applied are NULL.
    I need the output of the query in the above format.
    Please help me in this regard.

    Hi:
                Clearing document (AUGBL) generated against invoice with document type AB will be an option to use for reporting purpose. No matter invoice is partially cleared or fully exhausted system generates a clearing document against it. It stores the payment usage. System should check in BSID table with reference to AUGBL if there is anything left against invoice that is to be paid or if it is fully exhausted it will be present it BSAD along with it payment usage data. I hope this will help you in developing your report.
    Regards

  • Query to get all the data in specific range

    Dear All,
    I have a table and having 50 records. So i want to fetch the records from specified range.
    Ex:
    1. I want to fetch the records from first 1 to 10 records ( range i will pass) or i want to fetch from 20 to 30 records.
    Please help regarding that

    YKING wrote:
    Dear Thanks for replying,
    i want to display the first 10 records/display the between 20 to 30 range records (from 20 th records to 30 th records). I m using below query one is working but another is not working. pelase advise what wrong with one which is not working
    Not working :-
    select rownum , b.*
    from
    (select rownum, a.* from table_name a
    order by colum1) b
    where rownum between &a and &b
    working :-
    select *
    from (select rownum rn, a.*
    from table_name a
    order by vesl_master_num)
    where rn between &s and &q;What's wrong with the one that is not working ... ok...
    You are using "rownum" which is a psuedo column assigned to the returned rows. So if row 1 is not returned then there will never be a rows 2, 3, 4 etc. so you can't say you want e.g. rownum between 10 and 20 because rows 1 to 9 haven't been returned, so there's no such things as a row 10,11,12 etc.
    In the query that's working you've kind of captured the rownum for all the rows and then you can restrict it. However, the ordering of the data still isn't right in that last example, because the ordering takes place after the rownum is assigned.
    So what you really want is...
    select *
    from (select rownum rn, a.*
           from table_name a 
          order by vesl_master_num)
    where rn between &s and &q;which applies the ordering first, then applies the row numbers outside that, and then restricts to certain row numbers outside that.

  • Query to display all the documents

    Hi
    How to display all the document numbers (quotations, orders, invoices etc), posting dates in three columns i.e. Cust Code, Doc No , Posting Date?
    Since all the tables storing this information having the same column names do you think it is possbile? then how to write a query?
    thanks
    SV Reddy

    SV,
    what Raja said is correct. The steps are to write the query the fields you want to display in the query, so it will be as follows:
    select docnum, cardcode, doctotal, objtype from ORDR
    then use UNION ALL, the union all is used to join the other tables e.g. purchase, good receipt or good issue to the above sales order query but must have same fields.
    It will be as this follows:
    select docnum, cardcode, doctotal, objtype from ORDR
    union all
    select docnum, cardcode, doctotal, objtype from OPOR
    union all
    select docnum, cardcode, doctotal, objtype from OIGN
    union all
    select docnum, cardcode, doctotal, objtype from OIGE
    since the result objtype here is a value, I use "case when" to display objtype in the words and user can understand the document name.
    It could be mixed in all the 4th queries and will not give error result.
    Rgds,

  • Looking for a SQL query to get all the possible Alert Messages from the Rules in a Management Pack

    For reporting, I'm looking to get a SQL query of all the possible Alert Messages for Rules configured in a Management Pack (not necessarily the ones that have thrown alerts).  I can do this for Monitors, but not for Rules. 
    The configured alert messages for the Management Pack Monitors
    go like this:  ManagementPack > MonitorView> RuleModule > RuleModule.Alert Message > Localized Text
    The configured alert messages for the Management Pack Rules
    should go something like this, but there is a missing link:  ManagementPack > RuleView > RuleModule > ? Missing Link ? > Localized Text
    The Rules are tied to the Module, but I don't see a connection from the RulesModule to the Alert Message that I see in the LocalizedText. The Rule names do not always equal the Alert name. 
    Can someone provide the missing link?

    Hi,
    please try below powershell code to find the corresponding management pack for specific alert:
    $Alert = get-scomalert | where {$_.Name -like 'Agent Proxy Not Enabled*'} | select -first 1
    If ($alert.IsMonitorAlert -eq "True") {
    write-host "Ths is a monitor-generated alert"
    get-scommonitor -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    else
    write-host "This is a rule-generated alert"
    get-scomrule -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    In addition, please also refer to the below link:
    http://blogs.technet.com/b/mazenahmed/archive/2011/12/02/using-powershell-to-map-opsmgr-active-alert-to-its-corresponding-rule-monitor-and-management-pack-name.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Query should fetch all the query details in the system.

    Hi All
    We  are looking for a query which will fetch all the query details in the system along with the user names either who has created the query or who has run it atleast once.
    If any of the queries are not used for a long time then we  can delete it with the user's/owner's approval.
    Is there anyway we can desing such query .
    Thanks
    Asim

    Hi,
    Thanks for the reply.
    My requirement is that we want to create a new query which should fetch the details information of already existing queries.
    Like who has created that query, how frequently the use it etc...
    Whenever we run the new query it should give information of all other existing queries.
    Thanks and Regards
    Asim

  • SQL Query to return all the dependent objects

    Hi,
    I have a question.
    Suppose I am creating a table with a join on 10 other tables, views etc..
    And there are nested sub-queries in the CREATE statement.
    How can I get the list of all the dependent objects for that table without counting them manually.
    I know, we can right click the table/view name and check the dependent objects in Toad or SQL Developer.
    But, I want to know the SQL query for getting that information.
    Thanks
    Rajiv

    well there is no way oracle would know what query was used when the table was created.
    But here is one intuitive trick:
    Step 1: Create a procedure that will have a cursor declared on the query you want to know what tables/views are used.
    Step 2: Check USER_DEPENDENCIES to see what objects this procedure depends on
    Let say you want to create TEST_A table using the following statement:
    create table test_a
    as
    select *
    from scott.emp,
         scott.dept;
      1  create or replace procedure test_temp
      2  as
      3  cursor test_cur is
      4             select *
      5             from scott.emp,
      6                  scott.dept;
      7  begin
      8     null;
      9* end;
    SQL> /
    Procedure created.
    SQL> show errors
    No errors.
    SQL> desc user_dependencies
    Name                                      Null?    Type
    NAME                                      NOT NULL VARCHAR2(30)
    TYPE                                               VARCHAR2(17)
    REFERENCED_OWNER                                   VARCHAR2(30)
    REFERENCED_NAME                                    VARCHAR2(64)
    REFERENCED_TYPE                                    VARCHAR2(17)
    REFERENCED_LINK_NAME                               VARCHAR2(128)
    SCHEMAID                                           NUMBER
    DEPENDENCY_TYPE                                    VARCHAR2(4)
    SQL> select referenced_owner, referenced_name, referenced_type
      2  from user_dependencies
      3  where name='TEST_TEMP' and referenced_owner<>'SYS';
    REFERENCED_OWNER
    REFERENCED_NAME
    REFERENCED_TYPE
    SCOTT
    DEPT
    TABLE
    SCOTT
    EMP
    TABLE
    SQL>
    SQL> drop procedure test_temp;
    Procedure dropped.
    SQL>Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • Power Query Cannot Access all the NAV Table

    When I connect to NAD Database via PowerPrivot, I can get all the NAV table it's around 1936 tables, however when I access via Power Query it will only able to access around 1100 tables. All the important tables are not showing at the workbook Queries. Can
    anyone help please?
    Henry

    Ok, I have some more info on this. We found this bug right near the time we GA'd but it was too late to take the fix. It will be available in our next release. I don't know if we've officially announced the date but you should have it within the next month
    or so.
    There should be two workarounds until you have the fix:
    As I mentioned in the last reply, when connecting to the SQL database, instead of just typing in a server name, you can also specify the database name directly.
    If you don't specify the database, when you're viewing the list of tables in the sidepane on the right side of Excel, select any of them and click Edit near the bottom (or double click on the table name.) This will open up the wrong table in the Query Editor.
    Then you can expand the database navigator on the left side of the Query Editor and you should see all the tables in that list.
    [Oops, I see that Peter and I replied at the same time! I'll leave my note here anyway.]

Maybe you are looking for

  • Problem while starting MMC

    Dear Gurus, I have installed SAP 4.7 IDES. After installation a message came that installation is completed sucessfully. Then I restart the computer and started SAP R3 Management Console their the erroe message is coming. disp+work.exe stop. I am als

  • How to safely unmount a drive from Air?

    Hello, Now that it is possible from Air2 beta2 to detect mount/unmount of drive, I wanted to know if it was possible to unmout propertly the drive that has been mounted. I'm developping a fullscreen Kiosk, where the user can plug his USB key to downl

  • Blocked Vendor - Transaction Code

    Hello Experts- I blocked several vendors by using T-code FK05 and MK05. Now I would like to see all the blocked vendors. So is there a transaction code that I can use to display all the blocked vendors? Also, is there a transaction code that I can us

  • Mounting problem.... in Leopard o_O

    Hello, I have an external USB2 drive with two HFS+ partitions on it (one for Time Machine and the other for transfering stuff). With MacDrive 7 on my Windows partition it works great unfortunately I unplugged my disk without clicking on "Safely remov

  • How to apply a receipt to the invoice.

    Hi all, How do we apply a receipt to a invoice techinically. I mean what tables are taken into consideration how to link them.do we take customer id into consideration to know which receipt is applied to which invoice? thanks, nagender