Query on Invoice

Hi Experts,
   How will you find out that wheather a Invoice is having a single sales order or multuple sales orders

Hi
If you go to invoice & drill down in the line items you can find out.
Try this.
Regards
YMREDDY

Similar Messages

  • SQL-Query - AR Invoice and related AR Down Payment Invoices

    Hello everybody,
    I want to show all AR Down Payment Invoices related to a given AR Invoice, i.e. a query approximately in this form:
    SELECT
    T0.DocNum AS 'Invoice',
    T0.DocDate AS 'Invoice Date',
    T0.DocTotal AS 'Open Amount',
    T1.<<DocNum>> AS 'Down Payment Invoice',
    T1.<<DocDate>> AS 'Down Payment Invoice Date',
    T1.<<Amount>> AS 'Down Payment Invoice Amount'
    FROM
    OINV T0 INNER JOIN <<Down Payment Invoices>> T1
    ON T0.DocEntry = T1.<<DocEntry>>
    WHERE
    T0.DocNum = xxxxx
    I want to know if such a table <<Down Payment Invoices>> exists and what its name is.
    Thanks for your help!
    Regards,
    Frank Romeni

    Thanks for the INV11 - but this table seems to be empty even for invoices we have related down payments, e.g.
    SELECT
    T0.DocNum, T0.DocTotal, T1.<<whatever you want>>
    FROM
    OINV T0 LEFT OUTER JOIN INV11 T1
    ON T0.DocEntry = T1.DocEntry
    WHERE
    T0.DocNum = xxxxx
    That INV11 is always empty I could see with SELECT * FROM INV11
    Regards
    Frank Romeni
    P.S.: I only post questions to this forum when I analysed my problems and only if I couldn't find any further information in the helpfiles. With regard to your first hint to ODPI there is no reference to INV11 in the helpfiles.
    With regard to your comments I feel impelled to to say that if my question is confusing you, then it seems that nobody has ever taught you that meaning can be taken from the context. Regarding the "street", you asked me to find something: Do not waste your time with talking precociously ...
    If you should feel annoyed by my comments, we'd better stop this conversation. Otherwise let us fall back to a strictly factual exchange of information, OK? I am not willing to discuss this any further!
    F.R.

  • Customer Aging Report Query (without invoices offset by incoming payment)

    Hi All Experts,
    May I know is there any field from JDT1 mention which invoices is already offset by the Incoming payment or AR Credit note? Because I do not want those invoices that already offset by incoming payment appear at the Customer Aging Report. Meaning, the data appear in the Customer Aging Report is only show those invoices that yet to pay by the customer. Kindly give some advise on it. Thanks a lot.
    Thanks and regards,
    Angie Ng

    Hi David,
    Thanks for your suggestion. I have try it, but all of my JDT1.IntrnMatch is in 0 value. Meaning in my situation it is none of any reconcilliation making. But from my SBO window, i manage to see that actually this incoming payment is pay for which invoices. Problem is it is difficult for me to do the possiblity logic that might be happen in my Customer Aging Report Query. Please give some advise that how to show only those invoices yet to pay? The current query will show all the data no matter the invoices or credit memo has been offset.
    select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb  'Debit GBP',syscred 'Credit GBP',
    case JDT1.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 30
    and (datediff(dd,refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 60
    and (datediff(dd,refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, taxdate

  • Query-blocked Invoices for Quality per mat with the total quantity in QI

    Hello,
    We need to create a query for blocked Invoices in Quality summarized per materialcode together with the total quantity in Quality Inspection blocked stock.
    As starting point I've used the table RBKP_BLOCKED and linked it with RSEG from which I'm checking the quality block.
    From which table should I retrieve the qty in QI blocked stock?
    Thanks,
    Andrei J

    since ur report is depending on LIV's on block due to quality inspection is pending, better take the quantity from MKPF passing document number (GR number) and year of the document.
    Taking stock from MARD table will result is total mis match since this table holds stock position of plant and storage lcoation.
    Thanks & regards
    AHP

  • Query for invoice and distribution detail

    hi 2 all
    anybody have the query for getting invoice with distribution detail in oracle payable r12.
    thanks
    zulqarnain

    select ass.SEGMENT1 vendor_number,
    ass.VENDOR_NAME,
    assa.VENDOR_SITE_CODE VENDOR_SITE,
    aia.INVOICE_NUM,
    aia.INVOICE_DATE,
    aia.INVOICE_AMOUNT,
    aia.INVOICE_TYPE_LOOKUP_CODE,
    gcc.CONCATENATED_SEGMENTS distribution_account ,
    gcc1.CONCATENATED_SEGMENTS liability_account,
    to_char(aia.GL_DATE) GL_DATE,
    AP_INVOICES_PKG.GET_APPROVAL_STATUS( AIa.INVOICE_ID,
    AIa.INVOICE_AMOUNT, AIa.PAYMENT_STATUS_FLAG,
    AIa.INVOICE_TYPE_LOOKUP_CODE) APPROVAL_STATUS_LOOKUP_CODE
    from ap_invoices_all aia,
    ap_suppliers ass,
    ap_supplier_sites_all assa,
    ap_invoice_distributions_all aid,
    gl_code_combinations_kfv gcc,
    gl_code_combinations_kfv gcc1
    where aia.VENDOR_ID = ass.VENDOR_ID
    and assa.VENDOR_SITE_ID = aia.VENDOR_SITE_ID
    and ass.VENDOR_ID = assa.VENDOR_ID
    and aid.INVOICE_ID = aia.INVOICE_ID
    and aid.DIST_CODE_COMBINATION_ID = gcc.CODE_COMBINATION_ID
    and assa.ACCTS_PAY_CODE_COMBINATION_ID = gcc1.CODE_COMBINATION_ID
    --and aia.INVOICE_ID =  81000
    and aia.GL_DATE between '01-JAN-12' and '31-MAR-12'
    order by aia.GL_DATE
    Thanks,
    Atul

  • Query for Invoice price

    What's query to check amount/invoice price for a particular transaction ?say for ex :I'ce created order and with a line item with unit price of $300 and tax :$11 so total amount is $311.once invoice is created I want to check invoice quantity and invoice price for the same order(1 each,$311).What's the query to get that?
    Thanks,
    Mahender.

    I have not tested this code but from my knowledge this should work right
    IF @transaction_type = 'A' AND @Object_type = '18'
    BEGIN
    IF EXISTS(SELECT T1.ItemCode FROM [dbo\].[POR1\] T0 INNER JOIN [dbo\].[PCH1\] T1 ON T1.BaseEntry = T0.DocEntry AND T1.BaseLine = T0.LineNum AND T1.ItemCode = T0.ItemCode
    WHERE T1.Price > (T0.Price*1.05) AND T1.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @Error = 1, @error_message = 'Item Invoice Price exceeds 5% of PO Price'
    END
    END
    NOTE: You can change the @error_message text to want to want.  I have just shown an example. This will be displayed at the bottom
    Suda

  • Cannot query AR invoices based on the purchase order number in R 12 1.3

    Hi,
    We need to query invoices based on the purchase order number, However when we try to Ct+F11 get the message *"Please fill in selective criteria in at least one of the following fields for performance reasons: GL Date, NUmber,Bill to etc."*
    Is this a new feature or a bug?
    Thanks and Regards,
    MPH

    Hi All,
    I found the solution in the following note.
    *How to prevent Blind Query or Query on Non Indexed Column in Transaction, Receipts, Collections forms? [ID 753222.1]*
    Thanks and Regards,
    MPH

  • Doubt on SQl query for invoices

    Hi All,
    I have a query which pulls the payment proposal for the standard invoices and credit memo's
    being posted into the system from the table BKPF and BSIK.
    I just want to pull the payment proposal for standard invoices rather than credit memo's.
    I found that the only difference is the field SHKZG i.e Debit/Credit indicator.
    But i also want to see if it impacts subsequent Debit and Subsequent Credit since
    i see these value in Value range of the field.
    thanks,

    Hello ,
    if  Credit\ debit  info is required you have to use BSEG and VBSEGK for items details for the header
    BKPF ,
    Regards,
    Kiran Kumar

  • Sales order query - display invoice date and invoice number

    I have a query that is reading information from both the ORDR and RDR1. How do I link to AR invoice to get the invoice number and invoice date if the line item of the sales order has been shipped (we do not use deliveries so the AR invoice is the next document after the sales order.
    Thanks

    Hi Keith,
    The link between ORDR and RDR1 to invoice:
    RDR1.trgetentry = OINV.DocEntry
    or
    INV1.BaseEntry = ORDR.DocEntry
    Use which is more appropriate to your query
    Regards,
    David

  • Approval Query for Invoices with Items Onhand below zero.

    Dear Experts,
    I would like to make an approval procedure applicable on A/R Invoice. 
    When ever one of the Invoice items OnHand amount is below ZERO - I need the Approval Procedure to Popup and this way the Produce of the Invoice will be blocked.
    Is there any way to write a query on Approval Template for that?
    Thanks! 
    Regards,
    D.Medalion

    Hi D.Medalion
    Please Follow some step
    First Create Approval Stages in Administration ->Approval Procedures->Approval Stages
    First -
    Administration ->Approval Procedures->Approval Templates->Documents-> Click On A/R Invoice .
    Second-   Administration ->Approval Procedures- Approval Templates->Terms->When the Following Applies->Click Tick On Deviation from Commitment  and ration Drop Down Choose Greater or Equal
    Thanks & Regard
    Khan Imran

  • Query on Invoice Management System

    Hay SRM Experts,
      Is there anyone who can help me creating Invoices in SRM IMS for R/3 Scheduling Agreements. I am able to access the R/3 POs while Creating Invoices in SRM but scheduling agreements do not come over to SRM when I search for any Scheduling Agreement for Invoicing.
    Do I need to modify the search which brings POs from R/3 to SRM or is it at all not possible to create Invoices in SRM IMS for R/3 Scheduling Agreements
    Thanks in Advance.
    Regards
    Virender

    Kindly make sure that all the settings for SUS-MM are maintained for SA to work like maintaing message types etc. If the all the relevent settings are proper then only the SA releases will be reflected in SUS and follow on documents can be created.
    Best Regards,
    Rajendra

  • Query FAZ invoice & F2 invoice

    Hi , I'm a billing clerk, i would like to make some testing data for myself to issue down payment invoice  & final invoice in QA database. How can i amend the existing data.
    for down payment - just set the date in billing plan?
    for final invoice, issue dn and then unblock the item?
    Pls advice the t-code and step.

    Not pretty sure if I understood you correctly. The Billing plan in the sales order (VA02) is the base for
    both Down payment and final invoice. The billing dates there are considered as default when creating billing
    documents (VF01). So if you need changes, do it there or, at the stage of billing where you can overwrit default billing
    date.
    Please be aware the billing block is to released from the billing plan date lines before,
    Regards
    TDI

  • Contact name disappears on querying the invoice number

    hi ,
    While creating an invoice ,i created a contact
    then saved the transaction and requeried entering the invoice number the contact disappears
    please help.

    what is the apps version ? OS ? and module name?
    thanks

  • R12 Invoice Distributions not in table after Payable Open Interface Program

    Hello,
    I have inserted data in AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE and launched Payable Open Interface Program.
    All my invoices has been successfully processed.
    Just after completion of import program, i query an invoice on apps and all the Distribution lines are displayed when i click on "All Distribution" button BUT when i query the table AP_INVOICE_DISTRIBUTIONS_ALL by the invoice_id, no records are displayed.
    Its only when i press the button save on Apps or when i validate the invoice that i can see records in the table AP_INVOICE_DISTRIBUTIONS.
    Please help.. need to know where these lines are stored initially because i need to perform a post-import update on the attributes at INVOICE_DISTRIBUTION level.
    thanks

    I believe that is standard functionality. You can create a request set to run the Invoice Validation Program after your import is successfully done.
    Carl Hammond had posted a similar one before. You can search the forum for that message, otherwise, he probably has the right answer.
    Thanks
    Nagamohan

  • Invoice Correction Request with reference to Billing plan

    Dear SDN frnds,
    I'm having one query in Invoice Correction Request (ZBOC) creation,
    While creating with reference to billing document of billing plan type (ZCI), the net value in Invoice Correction Request is '0' and the net value is not modifiable during any correction done in quantity (L2N) debit, the net value still remains '0' and it is greyed.
    It should get modified!!!
    My configuration in copy control from Billing document (ZCI) to Sales document (ZBOC)
    Header level :
    DataT: 052 - Billing doc. header                           Copy requirements: 021 - Billing header
                                                                             Copy item no. activated
    DataT: 103 - Billing business header data
    DataT: 003 - Billing header partner
    Item level :
    DataT: 153 - Item from billing document                Copy requirements: 303 - Billing header
                                                                             Copy item no. activated
    DataT: 104 - Billing business item data                 Pricing type - E
                                                                             2nd Pricing type - F
    DataT: 004 - Billing item partner                           X - Update document flow
    Billing plan - 402 - Billing plan
    Kindly resolve my issue............
    Best Regards,
    Giridharan (Mumbai)

    Dear Sagar,
    I have selected 'E' in Pricing type in Item category, I didn't make any changes here (Credit memo item in order, Copy control Bill to sales order) and 'M' in 2nd pricing type in Item category, (Debit memo item in order,  Copy control Bill to sales order). Still it didn't worked out.
    Kindly reply me your views and suggestions.
    Thanks for your support.
    Best Regards,
    M. Giridharan
    Edited by: Giridharan Manokaran on May 18, 2009 11:36 AM

Maybe you are looking for

  • Adobe PDF Printer missing (acrobat 9 pro, XP pro)

    Hi, I searched the forums and found some similar problems, but not with my config, and, no solution. I have installed Adobe Creative Suite CS4 to a new, clean system. It runs on WIN XP Pro. This installation includes Acrobat 9 pro. Sadly, the printer

  • Arrangement tab gone

    i have connected my tv to my macbook and it doesnt work. i researched online and found that i dont have an "arrangement" tab in "display" in system preference. when i search arrange multi displays, this message pops up. "The Arrangement tab of Displa

  • I had to do a restore on my 3gs and lost my photos and contacts, is there any way to get them back ?

    I had to do a restore on my 3gs and lost my photos and contacts, is there any way to get them back ?

  • Exit Function not writing data to InfoCube

    Hi All, I created a planning function where i have defined a exit function. This is just adding 5 KFs and storing that in another KF of the Infocube. When I execute that it gives me mesg that 11 records read, 0 of them changed and 0 generated. When i

  • Belle fp2 No search in Music Player?

    Unless I'm missing something... There is no way to search/narrow the music list like in the contact list? White 808 Pureview NAM Black N8 NAM Silver N95-3 NAM