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

Similar Messages

  • 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

  • Sql query to find all contacts for an account

    I wonder if someone wrote an sql query to find all contacts for an account number in Oracle customer master. We are on EBS 11.5.10.
    I am also looking for sql query to find all ship to addresses for an account number.
    Thanks.

    Can you also post the query for people who read this post and are also looking for an answer?
    Regards,
    Johan Louwers.

  • 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 tasks on latest published version of a project

    Hello
    Can anybody help me on the query to find all tasks under latest published version of a project?
    Thanks!!

    Do you mean  "All tasks under latest published workplan version"??

  • Query to find all relationships between tables

    Please help me wit the following
    Query to find all relationships between tables
    SAMPLE OUTPUT:
    PRIMTAB PRIMCOL FOREIGNTAB FOREIGN KEY
    DEPT DEPTNO EMP DEPTNO
    Return all records in the database.
    PLEASE HELP

    SET LINESIZE 150
    COLUMN primcol FORMAT A30
    COLUMN foreigncol FORMAT A30
    SELECT uc1.table_name AS primtab,
    ucc1.column_name AS primcol,
    uc2.table_name AS foreigntab,
    ucc2.column_name AS foreigncol
    FROM user_constraints uc1,
    user_constraints uc2,
    user_cons_columns ucc1,
    user_cons_columns ucc2
    WHERE uc1.constraint_name = uc2.r_constraint_name
    AND uc1.constraint_name = ucc1.constraint_name
    AND uc2.constraint_name = ucc2.constraint_name
    AND ucc1.position = ucc2.position
    ORDER BY uc1.table_name,
    ucc1.position
    /

  • Is there a query to find all software installed on a particular computer through the Add/Remove Programs?

    I am looking for a query to find all software on a specific computer. I have found several on a specific piece of software but I need multiple pieces of software. I have tried creating this query but it shows ALL the software on the computer. I'm looking
    for one that narrows it down to a few pieces of software i.e Office, Adobe, Snagit, IE and Chrome. Possibly using Add/Remove Software? 

    It's an asset intelligence report, do you have that enabled?
    http://technet.microsoft.com/en-us/library/gg699382.aspx
    Alternatively, take a look at the 'Products on a specific computer' report (Software - Companies and Products category) and see if that gets you what you need.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • BO SDK Query to find all folders that a user has access to

    Hi Experts
    Please help me on BO SDK Query to "find all folders that a user has access in a single query".
    I am tried trial & error using PARENTS & CHILDREN. nothing worked
    Please advice
    Thanks!
    Prasath

    Hi Aasavari
    I am checking BO Web services samples and .NET samples. Please advice me the correct files to check the user/folder rights.
    Thank you so much
    Prasath
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETWebServicesSDKSamples

  • What's the query to find all requests' name of all modules EBS R12.1.3??

    What's the query to find all requests' name of all modules EBS R12.1.3??
    Regards:
    Shahzad M. Saleem

    Dear rioman !!!
    Thanks!!
    Regards:
    Shahzad M. Saleem

  • How to change Pre-Payment invoice status (without applying)

    Hi,
    I have a paid pre-payment invoice. But i don't need to create standard invoice for it now.
    How do i change the Pre-Payment invoice status (without applying)? ......i.e. it should not be able to apply against any standard invoice.
    eg. maybe change status to 'Fully Applied'
    Thanks

    Closed due to non-response.

  • Cstomer customer invoice settlement against Incoming payment

    Dear All
    We have a problem during customer invoice settlement against incoming payment that shown for the partial payment as a new document creation. The scenario as shown below,
         Doc No      Amount
    180000001   50000.00 ;   - Invoice
    140000001   25000.00-   - Incoming Payment / partial payment  
    balance         25000.00 ; - create a new doc no ( but we need setoff to invoice no)
    i.e:
    180000001       25000.00
    any BAPI to apply over come this problem ?
    Thanks
    Madhawa

    Dear:
                  Please refer to the following link, the same question was raised by me
                  Invoice reference field in F-28
                  Regards

  • AP PRE_PAYMENTS custom concurrent program to load pre-payment invoices

    is there any concurrent program to load pre-payment invoices.if not how to create

    THanks for the suggestion MIke. I tried changing both the element name and the value to upper case, tthen I tried removing the..
      <property name="xml_tag_case" value="upper" />  ..line altogether, yet it still isn't returning any records..
    THanks
    Steven

  • Query to find patches that were applied using admrgpch

    Hi,
    I Hav a query to find what are all patches merged and applied using admrgpch.Here,From the output I am concluding that, all the bugs that were fixed during a specific time were merged and applied using admrgpch.
    Could u please suggest my approach is wrong Or any better alternative is available ??
    =========================================
    col DRIVER_FILE_NAME format a15;
    col ORIG_PATCH_NAME format a7;
    col BUG_NUMBER format a10;
    select To_char(c.creation_date,'DD-MON-YYYY HH24:MI:SS') creation_date, driver_file_name, orig_patch_name,merged_driver_flag, bug_number
    from ad_comprising_patches c, ad_patch_drivers d, ad_bugs b
    where c.patch_driver_id = d.patch_driver_id
    and c.bug_id = b.bug_id
    and c.creation_date like TO_DATE('&a','DD-MON-YYYY')
    order by c.creation_date, bug_number;
    =========================================
    BestRegards/

    Hi All,
    we submitt a concurrent request last month it compleated in 335min. Now the same request is taking 7 hours. what can i do, our production is going on live in june its the error in wrong time, we tryed it for 3 times.. every time its taking 7 to 7.20min how can i resolve it?
    1) Is there any use to increase SGA?
    2) Our queary is very much tuned . . .
    Waiting for responce...
    Thanks
    Krish.
    [email protected]

  • 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

  • Query to find all text attachments for items

    I am using the query below to try to find all active items for my org that have an attachment of type 33 (something we have defined I believe) and contain specific text. Some of the items appear to meet all criteria (active, right category, etc) but do not show up in my results. Can someone please take a look and see if there is a join missing, an outer join that should be used, or an overall easier way to do this query and get the text information?
    SELECT i.segment1 "Item Number",
    i.description "Item Description",
    u.user_name || ' (' || ppx.first_name || ' ' || ppx.last_name || ')' "Created By",
    i.creation_date "Created Date",
    to_number(r.revision) "Revision",
    to_char(r.effectivity_date, 'MM/DD/YYYY') "Effectivity Date",
    nvl(tx.short_text, '<No Drawing Info>') "Drawing Info / Attachment"
    FROM apps.mtl_system_items_b i,
    apps.mtl_item_revisions_b r,
    apps.fnd_user u,
    apps.per_people_x ppx,
    apps.fnd_attached_documents ad,
    apps.fnd_documents d,
    apps.fnd_documents_tl t,
    apps.fnd_documents_short_text tx
    WHERE i.organization_id = 90 AND -- for MBE only
    r.organization_id = 90 AND -- for MBE only
    ad.pk1_value = 90 AND -- for MBE only
    ad.entity_name = 'MTL_SYSTEM_ITEMS' AND
    (upper(tx.short_text) LIKE '%DWG%' OR
    upper(tx.short_text) LIKE '%SIZE%' OR
    upper(tx.short_text) LIKE '%DRAW%') AND
    tx.short_text != 'DWG NONE' AND
    d.document_id = t.document_id AND
    t.source_lang = 'US' AND
    t.LANGUAGE = 'E' AND
    to_number(ad.pk2_value) = i.inventory_item_id AND
    t.document_id = ad.document_id AND
    tx.media_id = t.media_id AND
    d.category_id = 33 AND
    i.inventory_item_status_code = 'Active' AND
    i.inventory_item_id = r.inventory_item_id AND
    u.employee_id = ppx.person_id AND
    u.user_id = i.created_by AND
    to_number(r.revision) =
    (SELECT MAX(to_number(r2.revision))
    FROM apps.mtl_item_revisions_b r2
    WHERE r2.inventory_item_id = i.inventory_item_id) AND
    r.effectivity_date =
    (SELECT MAX(r3.effectivity_date)
    FROM mtl_item_revisions_b r3
    WHERE r3.inventory_item_id = i.inventory_item_id)
    GROUP BY i.segment1,
    r.revision,
    i.description,
    u.user_name,
    ppx.first_name,
    ppx.last_name,
    i.creation_date,
    r.effectivity_date,
    tx.short_text
    ORDER BY i.segment1 ASC;
    Thank you!
    Message was edited by:
    matt.schutz

    There is no workbook/worksheet linkage to a business area. So you cannot search for a business area and find all the workbooks "attached" to that business area. The attachment of workbooks is at the folder level. It is actually possible, if you are sharing folders among business areas, to create a workbook with data from 2 or more business areas. I have tested that and it is indeed possible. In Discoverer Administrator you can check on folder dependencies to see what workbooks use the folder. Though in my version of Discoverer, there is a problem with Discoverer Plus, such that the workbook save in Plus is not creating this dependency information like it should. At least I have not found any way to take a business area and determine what workbooks would fall under it. Maybe someone else has found a way.
    John Dickey

Maybe you are looking for