Get data through query all non validated invoices and unaccounted invoices

Hi expert,
I could not find flag in ap_invoices_all to find such invoice which are not accounted yet or such invoices which are not validated.
please tell me column name used for both condition or give me query to find such records.
Thanks

Hi,
If it's 11i, you can do this by linking with ap_invoice_distribution table . Checking match_staus_flag for validation and accounting date for accounted invoices ..
Regards
Muthu

Similar Messages

  • CRR: Need script for Validated, unpaid and unhold invoices

    Hello Friends,
    Kindly give me report to prepare Cash Requirment Report. Which should have validated, unpaid and unhold invoices in the output.
    Thanks in advance.
    Regards,
    Raj
    Below is the my query -- Getting wrong data
    select decode(ia.set_of_books_id ,224,'TGB Australia - Primary SOB'
    ,225,'TGB Australia - Reporting SOB'
    ,446,'TGB Belgium - Primary SOB'
    ,447,'TGB Belgium - Reporting SOB'
    ,324,'TGB Bermuda GBRM SOB'
    ,364,'TGB Bermuda Holding Limited SOB'
    ,306,'TGB Bermuda International Holding SOB'
    ,284,'TGB Bermuda SOB'
    ,45, 'TGB Canada - Primary SOB'
    ,44, 'TGB Canada - Reporting SOB'
    ,244,'TGB Consolidation SOB'
    ,84, 'TGB France - Primary SOB'
    ,85, 'TGB France - Reporting SOB'
    ,70, 'TGB Germany - Primary SOB'
    ,71, 'TGB Germany - Reporting SOB'
    ,168,'TGB Hong Kong - Primary SOB'
    ,169,'TGB Hong Kong - Reporting SOB'
    ,72, 'TGB Italy - Primary SOB'
    ,73, 'TGB Italy - Reporting SOB'
    ,409,'ITXC Corp. - Primary SOB'
    ,408,'ITXC Global SOB'
    ,404,'ITXC Hold - Primary SOB'
    ,405,'ITXC Hold - Reporting SOB'
    ,406,'ITXC Hold 2 - Primary SOB'
    ,407,'ITXC Hold 2 - Reporting SOB'
    ,424,'ITXC IPCO SOB'
    ,170,'TGB Japan - Primary SOB'
    ,171,'TGB Japan - Reporting SOB'
    ,285,'TGB Luxembourg - Primary SOB'
    ,286,'TGB Luxembourg - Reporting SOB'
    ,287,'TGB Luxembourg Holding - Primary SOB'
    ,288,'TGB Luxembourg Holding - Reporting SOB'
    ,289,'TGB Netherlands BV - Primary SOB'
    ,290,'TGB Netherlands BV - Reporting SOB'
    ,304,'TGB Netherlands Holding BV - Primary SOB'
    ,305,'TGB Netherlands Holding BV - Reporting SOB'
    ,172,'TGB Norway - Primary SOB'
    ,173,'TGB Norway - Reporting SOB'
    ,444,'TGB Poland - Primary SOB'
    ,445,'TGB Poland - Reporting SOB'
    ,344,'TGB Puerto Rico SOB'
    ,384,'TGB Singapore - Primary SOB'
    ,385,'TGB Singapore - Reporting SOB'
    ,68, 'TGB Spain - Primary SOB'
    ,69, 'TGB Spain - Reporting SOB'
    ,465,'TVC Teleglobe-VSNL Consolidation'
    ,164,'TGB United Kingdom - Primary SOB'
    ,165,'TGB United Kingdom - Reporting SOB'
    ,265,'TGB USA SOB'
    ,484,'VSNL International SOB (301)'
    ,485,'VSNL America SOB (302)'
    ,486,'VSNL Bermuda SOB'
    ,487,'VSNL Guam SOB'
    ,504,'VSNL Japan Primary SOB'
    ,505,'VSNL Japan Reporting SOB'
    ,506,'VSNL Singapore SOB'
    ,508,'VSNL Hong Kong SOB'
    ,509,'VSNL UK TEL - Primary SOB'
    ,510,'VSNL UK TEL - Reporting SOB'
    ,511,'VSNL France - Primary SOB'
    ,512,'VSNL France - Reporting SOB'
    ,513,'VSNL Netherlands - Primary SOB'
    ,514,'VSNL Netherlands - Reporting SOB'
    ,515,'VSNL Germany - Primary SOB'
    ,516,'VSNL Germany - Reporting SOB'
    ,517,'VSNL Belgium - Primary SOB'
    ,518,'VSNL Belgium - Reporting SOB'
    ,519,'VSNL UK LTD - Primary SOB'
    ,520,'VSNL UK LTD - Reporting SOB'
    ,521,'VSNL Spain - Primary SOB'
    ,522,'VSNL Spain - Reporting SOB'
    ,523,'VSNL Portugal INS - Primary SOB'
    ,524,'VSNL Portugal INS - Reporting SOB'
    ,525,'VSNL Portugal UNI - Primary SOB'
    ,526,'VSNL Portugal UNI - Reporting SOB') Sob_Name
    ,decode(tl.due_days,NULL,to_char(tl.fixed_date,'DD-MON-YYYY')
    ,to_char((inv.due_date),'DD-MON-YYYY')) Due_Date
    ,ib.batch_name
    ,v.segment1 Vendor_Number
    ,v.vendor_name
    ,ia.invoice_num
    ,to_char(ia.invoice_date,'DD-MON-YYYY') Invoice_Date
    ,ia.invoice_currency_code
    ,pos.po_number PO_Number
    ,(inv.amount_remaining) Currency_Invoice_Amount
    ,ia.exchange_rate
    ,round(inv.amount_remaining * nvl(ia.exchange_rate,1),2) USD_Invoice_Amount
    ,ia.description
    ,ia.pay_group_lookup_code
    ,decode(hld.holds_count,NULL,'Yes'
    ,hld.holds_count) Approved
    from (select invoice_id
    ,count(invoice_id) Holds_Count
    from ap_holds_all
    where release_lookup_code is null
    group by invoice_id) hld
    ,(select psa.invoice_id
    ,psa.due_date
    ,psa.gross_amount
    ,psa.amount_remaining
    ,psa.payment_method_lookup_code
    ,psa.payment_status_flag
    from ap_payment_schedules_all psa
    where psa.payment_status_flag in ('N','P')
    and amount_remaining is not null) inv
    ,(select ida.invoice_id
    ,max(po.segment1) po_number
    from po_headers_all po
    ,po_distributions_all pd
    ,ap_invoice_distributions_all ida
    where ida.po_distribution_id = pd.po_distribution_id
    and pd.po_header_id = po.po_header_id
    and ida.po_distribution_id is not null
    group by ida.invoice_id) pos
    ,ap_Terms_Lines tl
    ,ap_terms t
    ,po_vendor_sites_all vsa
    ,ap_batches_all ib
    ,ap_invoices_all ia
    ,po_vendors v
    where ia.vendor_id = v.vendor_id
    and ia.invoice_id = hld.invoice_id
    and ia.terms_id = t.term_id
    and t.term_id = tl.term_id
    and ia.vendor_id = vsa.vendor_id
    and ia.vendor_site_id = vsa.vendor_site_id
    and ia.batch_id = ib.batch_id(+)
    and ia.invoice_id = inv.invoice_id
    and ia.invoice_id = pos.invoice_id(+)
    and ia.invoice_id = decode(vsa.hold_future_payments_flag,'N',decode(vsa.hold_all_payments_flag,'N',inv.invoice_id))
    and inv.amount_remaining != 0
    and (inv.due_date <= &<name="Pay Through Date"
    hint="Please enter a Pay Through Date (eg: 31-MAY-2007)"
    type="string"
    required="yes">
    or tl.fixed_date <= &<name="Pay Through Date"
    hint="Please enter a Pay Through Date (eg: 31-MAY-2007)"
    type="string"
    required="yes">)
    order by (inv.due_date)

    Hello Friends,
    Kindly give me report to prepare Cash Requirment Report. Which should have validated, unpaid and unhold invoices in the output.
    Thanks in advance.
    Regards,
    Raj
    Below is the my query -- Getting wrong data
    select decode(ia.set_of_books_id ,224,'TGB Australia - Primary SOB'
    ,225,'TGB Australia - Reporting SOB'
    ,446,'TGB Belgium - Primary SOB'
    ,447,'TGB Belgium - Reporting SOB'
    ,324,'TGB Bermuda GBRM SOB'
    ,364,'TGB Bermuda Holding Limited SOB'
    ,306,'TGB Bermuda International Holding SOB'
    ,284,'TGB Bermuda SOB'
    ,45, 'TGB Canada - Primary SOB'
    ,44, 'TGB Canada - Reporting SOB'
    ,244,'TGB Consolidation SOB'
    ,84, 'TGB France - Primary SOB'
    ,85, 'TGB France - Reporting SOB'
    ,70, 'TGB Germany - Primary SOB'
    ,71, 'TGB Germany - Reporting SOB'
    ,168,'TGB Hong Kong - Primary SOB'
    ,169,'TGB Hong Kong - Reporting SOB'
    ,72, 'TGB Italy - Primary SOB'
    ,73, 'TGB Italy - Reporting SOB'
    ,409,'ITXC Corp. - Primary SOB'
    ,408,'ITXC Global SOB'
    ,404,'ITXC Hold - Primary SOB'
    ,405,'ITXC Hold - Reporting SOB'
    ,406,'ITXC Hold 2 - Primary SOB'
    ,407,'ITXC Hold 2 - Reporting SOB'
    ,424,'ITXC IPCO SOB'
    ,170,'TGB Japan - Primary SOB'
    ,171,'TGB Japan - Reporting SOB'
    ,285,'TGB Luxembourg - Primary SOB'
    ,286,'TGB Luxembourg - Reporting SOB'
    ,287,'TGB Luxembourg Holding - Primary SOB'
    ,288,'TGB Luxembourg Holding - Reporting SOB'
    ,289,'TGB Netherlands BV - Primary SOB'
    ,290,'TGB Netherlands BV - Reporting SOB'
    ,304,'TGB Netherlands Holding BV - Primary SOB'
    ,305,'TGB Netherlands Holding BV - Reporting SOB'
    ,172,'TGB Norway - Primary SOB'
    ,173,'TGB Norway - Reporting SOB'
    ,444,'TGB Poland - Primary SOB'
    ,445,'TGB Poland - Reporting SOB'
    ,344,'TGB Puerto Rico SOB'
    ,384,'TGB Singapore - Primary SOB'
    ,385,'TGB Singapore - Reporting SOB'
    ,68, 'TGB Spain - Primary SOB'
    ,69, 'TGB Spain - Reporting SOB'
    ,465,'TVC Teleglobe-VSNL Consolidation'
    ,164,'TGB United Kingdom - Primary SOB'
    ,165,'TGB United Kingdom - Reporting SOB'
    ,265,'TGB USA SOB'
    ,484,'VSNL International SOB (301)'
    ,485,'VSNL America SOB (302)'
    ,486,'VSNL Bermuda SOB'
    ,487,'VSNL Guam SOB'
    ,504,'VSNL Japan Primary SOB'
    ,505,'VSNL Japan Reporting SOB'
    ,506,'VSNL Singapore SOB'
    ,508,'VSNL Hong Kong SOB'
    ,509,'VSNL UK TEL - Primary SOB'
    ,510,'VSNL UK TEL - Reporting SOB'
    ,511,'VSNL France - Primary SOB'
    ,512,'VSNL France - Reporting SOB'
    ,513,'VSNL Netherlands - Primary SOB'
    ,514,'VSNL Netherlands - Reporting SOB'
    ,515,'VSNL Germany - Primary SOB'
    ,516,'VSNL Germany - Reporting SOB'
    ,517,'VSNL Belgium - Primary SOB'
    ,518,'VSNL Belgium - Reporting SOB'
    ,519,'VSNL UK LTD - Primary SOB'
    ,520,'VSNL UK LTD - Reporting SOB'
    ,521,'VSNL Spain - Primary SOB'
    ,522,'VSNL Spain - Reporting SOB'
    ,523,'VSNL Portugal INS - Primary SOB'
    ,524,'VSNL Portugal INS - Reporting SOB'
    ,525,'VSNL Portugal UNI - Primary SOB'
    ,526,'VSNL Portugal UNI - Reporting SOB') Sob_Name
    ,decode(tl.due_days,NULL,to_char(tl.fixed_date,'DD-MON-YYYY')
    ,to_char((inv.due_date),'DD-MON-YYYY')) Due_Date
    ,ib.batch_name
    ,v.segment1 Vendor_Number
    ,v.vendor_name
    ,ia.invoice_num
    ,to_char(ia.invoice_date,'DD-MON-YYYY') Invoice_Date
    ,ia.invoice_currency_code
    ,pos.po_number PO_Number
    ,(inv.amount_remaining) Currency_Invoice_Amount
    ,ia.exchange_rate
    ,round(inv.amount_remaining * nvl(ia.exchange_rate,1),2) USD_Invoice_Amount
    ,ia.description
    ,ia.pay_group_lookup_code
    ,decode(hld.holds_count,NULL,'Yes'
    ,hld.holds_count) Approved
    from (select invoice_id
    ,count(invoice_id) Holds_Count
    from ap_holds_all
    where release_lookup_code is null
    group by invoice_id) hld
    ,(select psa.invoice_id
    ,psa.due_date
    ,psa.gross_amount
    ,psa.amount_remaining
    ,psa.payment_method_lookup_code
    ,psa.payment_status_flag
    from ap_payment_schedules_all psa
    where psa.payment_status_flag in ('N','P')
    and amount_remaining is not null) inv
    ,(select ida.invoice_id
    ,max(po.segment1) po_number
    from po_headers_all po
    ,po_distributions_all pd
    ,ap_invoice_distributions_all ida
    where ida.po_distribution_id = pd.po_distribution_id
    and pd.po_header_id = po.po_header_id
    and ida.po_distribution_id is not null
    group by ida.invoice_id) pos
    ,ap_Terms_Lines tl
    ,ap_terms t
    ,po_vendor_sites_all vsa
    ,ap_batches_all ib
    ,ap_invoices_all ia
    ,po_vendors v
    where ia.vendor_id = v.vendor_id
    and ia.invoice_id = hld.invoice_id
    and ia.terms_id = t.term_id
    and t.term_id = tl.term_id
    and ia.vendor_id = vsa.vendor_id
    and ia.vendor_site_id = vsa.vendor_site_id
    and ia.batch_id = ib.batch_id(+)
    and ia.invoice_id = inv.invoice_id
    and ia.invoice_id = pos.invoice_id(+)
    and ia.invoice_id = decode(vsa.hold_future_payments_flag,'N',decode(vsa.hold_all_payments_flag,'N',inv.invoice_id))
    and inv.amount_remaining != 0
    and (inv.due_date <= &<name="Pay Through Date"
    hint="Please enter a Pay Through Date (eg: 31-MAY-2007)"
    type="string"
    required="yes">
    or tl.fixed_date <= &<name="Pay Through Date"
    hint="Please enter a Pay Through Date (eg: 31-MAY-2007)"
    type="string"
    required="yes">)
    order by (inv.due_date)

  • How can I get data in flat file from Pool table and cluster table ?

    Hi,
    I am working in one Achiving project. My requirement is to get data into flat file from Cluster table and pool table.
    Is there any tool avilable to download data into flat file from pool table and cluster table ?
    if table name given in the selection screen then data will be downloaded into flat file.
    waiting for quick response.
    Best Regards,
    Bansidhar

    Data cannot be retrived directly form the cluster table
    as the Cluster results are stored in Cluster Key say for example PCLkey
    and form that Key we need to fetch the data
    these clustes are not the part of PNP or PNPCE tables
    for ur info kindly check

  • Keep getting message that I have a valid id and password but not a valid account

    keep getting message that I have a valid id and password but not a valid account

    You waited 10 minutes for an answer and then decided to go away?
    Good luck with your Galaxy.

  • IDOC Invoices and EDI Invoices

    Hi Gurus,
    Please help me in understanding the flow of IDOC Invoices and EDI Invoices.
    What is the purpose of using IDOC and EDI? How it works?
    Please revert asap.
    Thank You

    HI Verma,
    You can post the invoices in SAP system through IDOCs.
    Mostly, this activity is performed/triggered, when the invoice data is with third party.
    Third party will have the invoice data base and sends a file to SAP.
    SAP XI will map/convert the file(sent by third party) to fields in SAP and posting of invoice happens.
    Please refer the below links for EDI Invoices
    EDI invoices
    Creating EDI Invoices
    Hope this will help you in understanding IDOC invoices and EDI Invoices.
    Regards,
    Praisty
    Edited by: Praisty on Dec 22, 2009 1:20 PM

  • Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice

    Hi,
    In Sales Invoice, Exchange Rate is maintained as 7.75132
    Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
    But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
    In Cancelled Sales Invoice, Amount posted is  558095.04 in GL Sales Account which is correct.
    Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
    Regards,
    Debashri Dutta

    Hi Ankur,
    Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
    Please help.
    Regards,
    Praveen

  • Difference between shipping invoice and fiscal invoice?

    Helo.
    Can anyone tell me the difference between Shipping Invoice and Fiscal Invoice?
    Regards
    Points are assured

    Hi Kulkarni,
    Invoice Processing
    Process
    You can use this business process to display and process invoices both in SAP Enterprise Buyer (SAP EBP) and SAP Supplier Self-Services (SAP SUS).
    As supplier or service provider, all invoices that you enter or process in SAP Enterprise Buyer must be approved by a responsible internal employee. For goods and services with a low purchase value, invoices and credit memos can also be created without a purchase order reference. Moreover, it is also possible to create express invoices in the check status application.
    In SAP Supplier Self-Services (SAP SUS) invoices can be entered with reference to a purchase order, shipping notification, or contact person before they are sent to the customer.
    If, following a purchase order, the goods supplied or the service provided turn out to be defective or the price charged is too high, you as an internal employee, supplier, or service provider, can enter and process credit memos or subsequent debits/credits in SAP Enterprise Buyer
    i think the invoice generated during a particular fiscal year is fiscal invoice.
    thanks
    sekjar

  • Creation of Delivery, Commercial Invoice and Excise Invoice in PS Cycle.

    Hi,
    Pls explain how can we create deliveries, Commercial Invoice and Excise Invoices through PS cycle.
    Thanks and Regards
    Sriram Tumuluri

    Assuming that the requirement is to differentiate only in print out, it is better to maintain the pricing condition in Euro itself instead of INR.  With the help of ABAPer, you can fetch the value as per the requirement.
    Moreover, even if you change the customer master currency or document currency, it will not fetch the exact net value.
    thanks
    G. Lakshmipathi

  • Relation between Ap down payment invoice and Ap invoice

    Hi sap members
    pls help in this scenario what is the query relation for ap down payment invoice and ap invoice  solution given vilbe appreciated
    regards
    Jenny
    Edited by: Jennifer Anderson on May 3, 2010 11:02 AM

    hi Gordon
    can u write a query and send regarding this relation i need fields like
    SELECT Distinct T0.[DocNum][Invoice No ], T0.[CardName], T0.[DocTotal], T1.[DocNum][Ap Down Payment No],T1.[CardName], T1.[DocTotal]
    FROM OPCH T0 , ODPO T1
    WHERE T0.[CardName] = T1.[CardName]
    and T0.[DpmAmnt] =  T1.[DocTotal]
    GROUP BY T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocNum],
    T1.[CardName], T1.[DocTotal]
    in Ap invoice Query i need Ap down payment Docnum
    Regards
    Jenny

  • Diff between Commercial Invoice and Excise Invoice

    Hi all,
    What are the differences between commercial invoice and excise invoice?
    Which one is more related to SD?
    Regards,
    Ajit

    Hi,
    Commercial Invoice contains information more specific to customer (Pricing, Tax, Payment terms), which becomes a part of recievables.
    For Commercial Invoice, there is no need for advance declaration of the Number Ranges for the Document.
    Excise Invoice contains information related to excise duties which has to be payed to the Excise authorities and also other statutory requirements .
    For Excise Invoices, every manufacturing company has to declare the Number ranges (Per Excise Group/Series Group) to the excise authorities beginining of the year.
    Nowadays most of the buinesses are directing toward common (Commercial *** Excise Invoice) printout , though in SAP its still a separate transaction for posting.
    I hope this clears your doubt.
    Reward points if thie helps.
    Regards,
    Harsh

  • Who can explain the 'Legal Invoice' and 'Custom Invoice'?

    Hi,
    Why after PGI, the 'Legal Invoice' and 'Custom Invoice' will be printed out??
    Could you tell me what useage of them??
    As i read an document metioned that 'Legal invoice for Export'..'Custom Invoice for import'...
    What's the meaning??
    Thanks!!

    Hi, Yathish,
    Could you make an example to this?
    For example..
    If we ship products from US->UK.
    When the products is out from US, we submit the Legal Invoice to US Custom and End Customer in UK?
    When this products is shipped into UK, the Custom Inovice...
    Sorry, i still didnt get it.....
    Hope could get help on this....
    Thanks!!!!

  • Like between prepayment invoice and standard invoice

    link between prepayment invoice and standard invoice in AP
    and link between credit memo and standard invoice in ap

    Hi,
    Did you go through [Applications Electronic Technical Reference Manuals (eTRM)|http://etrm.oracle.com] link?
    Regards,
    Hussein

  • Pre invoice and Post invoice

    Hi All,
      What is the difference between Pre Invoice and Post Invoice?
    regards
    shashikanth naram

    Hi,
    When 'GR-based IV' is flagged in PO, Now when GR posted with reference to PO item serves as reference document for follow-on postings. This Ref Doc-LFBNR is linked to invoice posting,This assignment between GR and invoices can be seen PO history tab -GR/IR assign
    when GR based IV is not ticked then the LFBNR is blank, hence it will not propose any value in Miro
    Please also refer following note
    1827732 - Valuation when GR-Based IV (EKPO-WEBRE) is set in the PO item.

  • Maintaining difference currency in commercial invoice and Excise Invoice

    Dear Exparts,
    My client's requirement is, for export process, net value of Delivery *** Excise pro-forma invoice and excise invoice would be in INR, but the net value of commercial invoice would be in EUR. I changed the currency EUR in the customer master sales area,sales tab. and maintain condition record for PR00 in INR. can anybody advice me, apart from that settings what should I do.
    Thanks in advance.

    Assuming that the requirement is to differentiate only in print out, it is better to maintain the pricing condition in Euro itself instead of INR.  With the help of ABAPer, you can fetch the value as per the requirement.
    Moreover, even if you change the customer master currency or document currency, it will not fetch the exact net value.
    thanks
    G. Lakshmipathi

  • Invoice and proforma invoice

    what is the difference between invoice and proforma invoice?

    Hi,
    Check the FKART field of VBRK table, there different types are maninted for invoice & pro forma inv.
    For example: F2-invoive, F5- Pro Forma for Order etc.
    Thanks & Regards,
    Anagha Deshmukh

Maybe you are looking for

  • Features id like to see added to Windows 10

    Features id like to see added. First i'm a advocate for windows 8.1 after i avoided 8 like the plague. I currently have two beautiful machines running windows 8.1 and i love them. Especially my new Surface pro 2. I love everything about the surface a

  • Apple TV will no longer connect to wifi

    This may be a silly question, but I figured I'd ask anyways. My building for the last year has had an unlocked wifi that we've been using, in the last month or so it has become password protected. My iPhone will still connect to it, but my Apple TV w

  • Premiere Pro cs6 projects won't open

    I'm working on multiple Mac systems, 2 Mac Pro (3 years old) desktops and one fairly new macbook pro.  Recently, I've run into a very serious problem.  My projects that I've been working on for days, will suddenly not open any more - on any of my mac

  • .daa files (Direct Access Archive)

    Is there any way to open a .daa file on a Mac? If you can't open it, can you mount it somehow, and then take the contents out? Sorry if this wasn't the right forum to ask, but I've been looking and I've spent so much time worrying about where to ask

  • Help needed on a TicTacToe java program

    I am very new to java and our teacher has given us a program that i am having quite a bit of trouble with. I was wondering if anyone could help me out. This is the program which i have bolded. {You will write a Java class to play the TicTacToe game.