Find the invoices po wise and non po wise

hi guys i'm working on oracle 10g r2
my question is
i have 2 tables
ap_invoices_all
ap_invoice_lines_all
select invoice_id from ap_invoices_all where invoice_num = '1010'output is
invoice_id
100now query 2nd table
select * from ap_invoice_lines_all where invoice_id = 100output is [assum jus 2 or 3 columns]
invoice_id-----------line_type------------po_header_id
100---------------------item-----------------400
100---------------------tax------------------null
100---------------------tax-------------------nullmy question is i want to check if ap_invoice_lines_all have po_header_id in respect of invoice_id then it will be show in po_invoices categories
i have make a query like this
select * from ap_invoices_all i
where invoice_num = '1010'
and exists ( select 1 from ap_invoice_lines_all
where invoice_id = i.invoice_id and po_header_id is null)above query also shows me the records why?? because ap_invoice_lines_all have 3 lines 2 have null in po_header_id columns ..
my simple question is i want jus checked in ap_invoice_lines_all table if po_header_id is not null in corresponding invoices then it shows me INVOICES PO_WISE otherwise it cant show in
INVOICES NON-PO-WISE
my this test case shows in both ways [INVOCIES PO WISE] and [INVOICES NON-PO WISE] . i want dat record shud be show in INVOICES PO WISE only .
help

Pl do not post duplicate threads - how to find po_invoices and non-po_invoices
Srini

Similar Messages

  • How to find the PREVIOUS value of a non-DB item?

    I want to do a simple thing but found it impossible.
    I want to find the previous value of a non-DB item in a form.
    I tried creating a text item and populating it using PRE-TEXT-ITEM but that does not work.
    WHEN-VALIDATE-ITEM does not work either because WVI fires only after item value has changed.
    Any suggestions will be greatly appreciated.
    Edited by: Channa on Apr 2, 2010 4:34 AM

    Channa wrote:
    I want to do a simple thing but found it impossible.
    I want to find the previous value of a non-DB item in a form.
    I tried creating a text item and populating it using PRE-TEXT-ITEM but that does not work.
    WHEN-VALIDATE-ITEM does not work either because WVI fires only after item value has changed.
    Any suggestions will be greatly appreciated.
    Edited by: Channa on Apr 2, 2010 4:34 AMPlease make it clear what is your requirement then possibly we can provide you a better answer
    You can use Global variables for to store old values also on Post-query populate a value in separate field or Parameter

  • Find my iPhone has reset and none of my devices are listed; is this because I have an old Iphone4? And can I set all my devices back up again? And how do I set my devices back up?

    Find my iPhone has reset and none of my devices are listed; is this because I have an old Iphone4? And can I set all my devices back up again? And how do I set my devices back up?

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • How to find the Invoice available for Purchase orders

    Hi friends,
    How to find the Invoice available for PO. Please give me the tcodes also.
    Is one PO can have multiple Invoice, then what is the relation between those PO and Invoices.
    Thanks,
    Veerendra.

    Hi,
    Goto ME23N and in the line item choose the PO History tab..
      There you can check if there is any invoice created for that PO..
      Yes one PO can have multiple invoices...
      Check the table RSEG where it has references to a PO and PO line items..
    THanks,
    Naren

  • Where can I find the invoices for 2014?

    My account only lists the invoices for January and February 2015.
    So where can I find the invoices for 2014? I urgendly need the invoice for 12/2014.
    And just to make it clear: there is no button saying "Archive", "Show all" or anything like that.
    regards
    Oliver Schroth

    Hallo Oliver (ich antworte auf Deutsch, ok?)
    meine Rechnungen finde ich, wenn ich so vorgehe: adobe.com >>> https://accounts.adobe.com/ >>> https://accounts.adobe.com/account >>>
    https://accounts.adobe.com/plans/hier erscheint Deine Nummer >>> Abos & Produkte >>> Details zum Abo >>> Rechnungsverlauf.
    Üblicherweise reicht es eigentlich nur den letzten Link aufzurufen, aber die Infos von "unterwegs" sind vielleicht auch ganz interessant.
    Hans-Günter

  • I downloaded IOS6 and all my apps, including the App Store icon, disappeared. If I go to the Passport icon, there is an App Store button, but I have to search through all the apps to find the one I want  and then click on "Open" to use it.  Help!

    I downloaded IOS6 and all of my app icons, including the App Store icon disappeared. Now to use an icon, I have to go to Passport and click on the App Store button at the bottom and search through all of the apps to find the one I want and then click on Open. There doesn't seem to be a way to delete the app and start over.

    Hey PlayerPS,
    Thanks for the question, and welcome to Apple Support Communities.
    It sounds like the application you are looking for is indeed still on your iPhone. You can confirm this by searching in the Spotlight Search for this application. It may have accidentally been moved to a folder, or an additional Home screen:
    iOS: Understanding Spotlight Search
    http://support.apple.com/kb/HT3636
    via http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    Thanks,
    Matt M.

  • Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

    Is there a way to find the list of PCs and iDevices connected to my Itunes Match?

  • Whenever I go to iTunes with my iPod 5th generation 32 gb iPod Touch, running iOS 8.0.2, It tells me that the "Other" category is using up 14.59 gb of data. I have no clue why it says this and I have searched the internet for fixes and none worked.

    Whenever I go to iTunes with my iPod 5th generation 32 gb iPod Touch, running iOS 8.0.2, It tells me that the "Other" category is using up 14.59 gb of data. I have no clue why it says this and I have searched the internet for fixes and none worked. I have tried on a windows and a mac and noticed no change. I have tried restoring to a backup but that didn't help. I haven't had time to do a full restore but I will try if the problem persists.

    An "other" larger than about 1 1/2 GB indicates corrupted files.
    What is the Other on my iPhone and How to Remove It
    What is "Other" and What Can I Do About It?
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • HT1414 When I search for stuff on the internet it says safari could not open the page because the server stopped responding and non of my games work either. What do I do to fix this?

    When I search for stuff on the internet it says safari could not open the page because the server stopped responding and non of my games work either. What do I do to fix this?

    Settings → scroll down to Safari → in Safari settings, I selected both Clear History and Clear Cookies and Data.
    IF that does not work -
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Finally - if problem still present -
    Go to Settings>General>Reset
         Reset the network settings - you will need to add the password of your home WiFi in your phone once more
    The device should turn itself off & back on then go into Settings>Wifi and join your network

  • VB Script to find the last modified file and time in a directory

    Hi,
    I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get the latest file and last modifed time.

    Thanks it worked for me Get-ChildItem C:\Users\sujith.reddy.komma\Desktop\Suj1\* -recurse |?{-not $_.PsIsContainer} |Sort LastWriteTime -desc | select -first 1 now in my script i have hard coded the directory i need to run this script in different
    servers from one location i will put all the different paths in one text file and ineed to pass them to this script can you help me with this?
    Essentially you are incrementally asking us to write each line for you.  I recommend freeing yourself of this misery and leraning PowerShell.  THe answers to all of your questions are learned in the first few hours of study.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • What is the meaning of "PSEUDO" and "NONE" in v$session table.

    Hi
    What is the meaning of "PSEUDO" and "NONE" in v$session table.
    V$SESSION:
    SERVER      VARCHAR2(9)      Server type (DEDICATED| SHARED| PSEUDO| NONE)
    thanks
    siva

    PSEUDO is the server column's value of killed sessions, until they are cleaned up by PMON.
    A dedicated server session will always have DEDICATED as server value, while a shared server session has SHARED when it's active, and NONE when it's inactive.

  • How to find the Last modified date and time of a package

    Hi,
    We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
    Lets consider the following example
    Let A, B be two packages.
    Package A calls the package B. So A is dependent on B.
    When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
    Now there a modification in package B so it is compiled. There is no modification in package A.
    Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
    Regards,
    Vijayanand.C

    Here is an example:
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
    SQL> CREATE OR REPLACE PROCEDURE A AS
    2 BEGIN
    3 NULL;
    4 NULL;
    5 END;
    6 /
    Procedure created.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
    SQL> EXEC B
    PL/SQL procedure successfully completed.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
    Note that the date under the column 'created' only changes when you really create or replace the procedure.
    Hence you can use the column 'created' of 'user_objects'.

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • How to find the system default scripts and prompts in UCCX 8.0

    Hello everyone,
    I have a bit of experience in UCCX 6.0 and just began to use UCCX 8.0. There's a question that where can I find the system default scripts and prompts in 8.0? In 6.0, I can find them in installing directory, but 8.0 is linux based so I can not do that in same way.
    Thanks.

    You can Login to CLI with either root access or remote user access and get default scripts by going to
    CD /opt/cisco/uccx/Scripts/system/default
    At this point you have to connect to ftp server and move these default script to yoru FTP server.
    I hope this helps

  • Query to find the list of workbooks and worksheets assiciated to those book

    Hi Gurus,
    Could you help me with the tables / Query to fetch the list of workbooks and associated worksheets names as welll.
    Thanks in advance!!
    Rgds,
    Santosh

    Hi Santosh
    The whole point of the STATS table is to allow you to query performance, who did what and when. The database itself does not keep such statistics so if you disable Discoverer's method of capturing these you have no way of knowing who did what and when.
    Without this it is impossible to say. I would strongly recommend you enable the capturing of statistics.
    The reason you cannot directly query a WORKBOOK to determine what WORKSHEETS are associated with it is because that information is stored as binary information and not in SQL format.
    Discoverer 10g has the capability of providing detailed information on the EUL. This feature is not offered "out of the box" but can be easily enabled.
    The EUL Administrator can enable the feature by completing the following steps (see also MOS Note 556932.1):
    1. Log on to SQL*Plus as the Discoverer Administrator on the machine where Discoverer Administration Edition is installed.
    2. Execute the EUL5.SQL script found in the *$ORACLE_HOME\discoverer\util* directory. (This script will create the necessary database objects.)
    NOTE: If you are using an Oracle Applications mode EUL, you must also run the eul5_apps.sql file in the $ORACLE_HOME\discoverer\util directory.   This script must be run as the EUL owner, and not the Oracle Applications SYSADMIN user.
    4. Exit SQL*Plus and log on to the Discoverer Administration Edition product (as the EUL Administrator).
    5. From the menu bar, select File | Import.
    6. Import the EUL5.EEX file from the ORACLE_HOME\discoverer directory. Once the EUL import is complete, a new business area will be created and visible called The Discoverer V5 EUL. This is the business area that provides the details on the EUL.
    EUL Management Workbooks for Discoverer Administrators
    The EUL5.EEX file also imports four pre-built Discoverer workbooks. These workbooks are automatically saved to the database during the EEX import and can be executed in Discoverer Plus, Viewer or Desktop:
    EUL Workbook Management - shows which workbooks are shared with which users. Examine worksheets to find the folders, items, joins and conditions they depend upon.
    EUL Access - This Workbook indicates if a current EUL exists in this users schema. It also displays the EUL's in other user schemas that this user can access.
    EUL Query Statistics - Find out which workbooks and worksheets are being used by whom. Examine users ad-hoc queries.
    Lineage - Hyper Drill from Discoverer to find a folder or Items Lineage in Oracle Warehouse Builder. To enable the Hyper drill, you will first need to run the Lineage.sql script.
    The Discoverer Administrator can use the pre-built workbooks or build their own EUL management workbooks by using the Discoverer V5 EUL business area.
    Best wishes
    Michael

Maybe you are looking for

  • FTPSClient - SSL  Received fatal alert: bad_record_mac

    I am trying to connect to an out of network server using org.apache.commons.net.ftp.FTPSClient and trying to upload a file. The code works correctly when i execute it from localhost but throws the following exception from prod server. javax.net.ssl.S

  • Data retrieval from N95 8GB/Restoring NGage games ...

    Hi everything from my Nokia got deleted when I was deleting items from the LifeBlog.  I did a recovery from it using recovery software, however some items were retrieved no problems but some video files and pictures are unable to open or to view. I h

  • Windows to Mac.  File numbers don't match.

    On transferring images from Windows to Mac, the file numbers were renumbered starting with B.  Blank files are also showing with the old DSC file numbers.  Can they be synchronised?

  • Using photos in iweb media

    Originally I was able to click on "media" in iweb when posting my daily blogs and making a website. The pictures would open up on the left of the screen and I could just drag them to where I wanted them. Now the pictures won't open unless I click on

  • HT5262 CAN NOT FIND MY PICTURES ON ICLOUD

    i sync with icloud.  However, i do not see my pictures are saved.  Do i have to buy storage for this?