Query of A/R Invoices with cost

Hi experts,
I need to do a query of line items from invoice where appears the cost of this item. The valuation method is FIFO.
Can anybody help me?

Thnaks Gordon,
What I need is the cost of the item. An example:
I create an entry of 2 unit of the item A for 120u20AC per unit
I create an AR invoice of this item A for 200u20AC per unit.
The query I need is
Colum A: Item A
Colum B: 200
Colum C: 120
Benefit: 80

Similar Messages

  • Post Invoice with cost difference - TECO in accrual order

    Hi experts,
    I have the following problem:
    I want to post an invoice in MIRO with a different tax code (--> that results in a different cost) than in the original purchase order and already performed goods entry. The accounting assignment is done with an accrual (internal order). This internal order has been set to TECO and does not let me post an invoice with a different cost than in the purchase order.
    Is there a workaround without resetting the status of the internal order from TECO to OPEN?
    Thank you,
    Stefan

    Hi Srinivas,
    I need to set the VAT tolerance with 1 or 2 p.
    Hence its not available in OMR6.
    Any other settings ?
    Thanks,
    Ramya.

  • Invoice with cost center

    while creating invoice via va01, if the material is mapped with GL accs that require cost center, we will choose the cost center in Order reason field, after that we create billing and then we can see the accounting document. In case if we not choose the cost center we can still create invoice and billing but the accounting doc is not generated, then we have to create credit note to clear the incorrect invoice and recreate new one..
    to over come the above issue is there any way the system throw the message stating that this specific material requires cost center and dosen't allow to save ? ( or) if the above message cant be added is there any chance whether the system allow us to amend the cost center in billing and can recreate the accounting doc automatically ?

    You can control this by maintaining Incompletion log for Sales Item (Tcode OVA2) and correspondingly assign the same to your I Cat.
    And FYI, you can't make any change in cost center details at billing level.
    Thanks & Regards
    JP

  • A query report of sales invoices

    Hello everyone
    I need help with writing a query report of sales invoices with items of the item code, last buy price, sale price, customer's name ..
    But the report will not be true unless it will show credits invoices' total of sold items.
    I'd be happy for help in this report ..
    Thank you!

    Hi Meital,
    Try this,
    SELECT *
    FROM(
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    UNION ALL
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM ORIN T0 
    INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode)MM
    Regards,
    Madhan.

  • Table for 2way,3way matching .query to generate invoice with 2 ways matchin

    hi
    table for 2way,3way matching .query to generate invoice with 2 ways matching
    plz help me
    thanks

    Hello John, I put the (1,2,3) list in the query to show it works with multiple invoices.
    You should comment out the conditions:
    select a.invoice_no, b.child, sum(a.amount) from invoice_detail a,
    select
    child,
    decode (instr(scbp,'.'),0,scbp,
           substr(scbp, 1, instr(scbp,'.') -1)
           ) starting_child
    from (
    select ltrim(sys_connect_by_path(child,'.'),'.') scbp,
    child from
    element_relation
    start with child in (select element_id from invoice_detail /* where invoice_no in (1,2,3) */)
    connect by child = prior parent
    ) b
    where a.element_id = b.starting_child
    /* and a.invoice_no in (1,2,3) */
    group by a.invoice_no,b.child
    order by 1,2to show it works for all invoices
    regards, Tony

  • Cannot Add Invoices with more than one costing centers by SDK.

    Have no available DI Interface to access cost/profit center
    Cannot Add Invoices with more than one costing centers by SDK.

    Dear Srikanth,
    Thanks a lot for your reply.
    We want add a invoice with DI API, but the DI API provide only one costing center: CostingCode in Document_Lines Object. But we have two costing centers, one is department, the other is salesperson.
    This is my question.
    It will be appreciated highly if you give me a solution.
    Thanks!
    Xingjun Han

  • Error while posting A/R Downpayment Invoice with Excisable Tax Code.

    While posting A/R Dowpayment Invoice with Excisable Tax Code error of "Unbalanced Transaction" appears. This error does not occur while posting A/R Downpayment Invoices with Non-Excisable Tax Codes.
    Kindly provide a solution for the same.

    SAP Note Number: 1179405
    Error -5002 when trying to copy a document with Sales BOM
    In order to create the delivery via the DI, you need to set the oDoc.Lines.BaseLine value to the LineNum value from the RDR1 table (in the above example you should enter the value 2).
    we set oDoc.Lines.BaseLine=0 before starting the lines loop. This has resolved the issue.
    This note was really helpful and it was found in another query.
    You can also refer to this. https://forums.sdn.sap.com/click.jspa?searchID=19070513&messageID=6178079
    Thanks.
    Edited by: Sadanand Manda on Nov 24, 2008 12:16 PM

  • Infoset query of vendor payments at the cost distribution level

    We would like an infoset query of vendor payments at the cost distribution level of the document.  The issue seems to be joining vendor to the document cost distribution lines. 
    1.) BSAK + BSIK can be combined with an infoset data structure but only contain the vendor line of a document;  the cost distribution lines are not in the tables. 
    2.) BSIS + BSAS can be combined with an infoset data structure but lack vendor data and joins (to a vendor source) are not an option with data structures.  Vendor data added with an additional field is too slow to be a primary selection field. 
    3.) Logical data base KDF in an infoset returns only the vendor line of a document, not the cost distribution lines. 
    4.) Logical data base BRM in an infoset can have vendor from BSAK/BSIK attached by an additional field but performance is too slow to be useful.  Joins are not an option in a logical data base infoset.
    5.) Complete data is lacking when table joins between document cost distribution tables and vendor data tables are possible, (SPL actual line item table & BSIP or FMIFIIT & FMIFIHD).  BSIP lacks AB documents (reversals).  FM tables lack general ledger only documents. 
    6.) BSAK and BSIK together have complete vendor data but joins of both to a basis table do not work well.  Left outer joins are too slow, inner joins won’t work since the tables have mutually exclusive data. 
    It would be ideal to have vendor in BKPF, like FMIFIHD has, but it isn't a field.
    Does anyone know of any other options?  I have seen the helpful thread on How to Read BSEG Efficiently

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost above discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Infoset query of vendor payments at the cost distribution level of the document

    We would like an infoset query of vendor payments at the cost distribution level of the document.  The issue seems to be joining vendor to the document cost distribution lines. 
    1.) BSAK + BSIK can be combined with an infoset data structure but only contain the vendor line of a document;  the cost distribution lines are not in the tables. 
    2.) BSIS + BSAS can be combined with an infoset data structure but lack vendor data and joins (to a vendor source) are not an option with data structures.  Vendor data added with an additional field is too slow to be a primary selection field. 
    3.) Logical data base KDF in an infoset returns only the vendor line of a document, not the cost distribution lines. 
    4.) Logical data base BRM in an infoset can have vendor from BSAK/BSIK attached by an additional field but performance is too slow to be useful.  Joins are not an option in a logical data base infoset.
    5.) Complete data is lacking when table joins between document cost distribution tables and vendor data tables are possible, (SPL actual line item table & BSIP or FMIFIHD & FMIFIIT).  BSIP lacks AB documents (reversals).  FM tables lack general ledger only documents. 
    6.) BSAK and BSIK together have complete vendor data but joins of both to a basis table are not an option.  Left outer joins are too slow, inner joins won’t work since the tables have mutually exclusive data. 
    Does anyone know of any other options?

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost above discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • REPORT for list of invoice with an order reason.

    Hi SAP Gurus !
    Is there any standard SAP report which will show me a list of invoice with an order reason field?
    I have tried VF05 and VF05n,but in both of them, order reason as a selection parameter field is missing.
    In case of any clarification kindly revert back to me.
    Regards,
    Ujjawal

    Thanks to all !
    Actually i was going  to create a query with VBRK and VBAK  tables but sales order number is not the common link as sales order number is present in VBAK table only.
    Apart from that i had tried to add VBRK and VBRP table then i was getting the list of invoice with order reasons (because order reason was getting copied from an order to invoice) ,but in this query i'm getting Order reason number with list of invoice only(Description of order reason is not coming).
    Please guide me for this if i'm wrong.
    Regards,
    Ujjawal

  • How to create Invoice with ref to PO

    Dear sd gurus..
    i know we can create invoice with ref to sales order not with po
    But i want to create Invoice with ref to po only
    please guide me
    Thanks a lot

    Venu, thanks for your reply.
    So in this case your idea wont work but the main imp thing is we cant create invoice with ref to po
    Please read my post once again, i never said we can create customer invoice with ref  to Purchase order. I said very clearly, " you can follow the normal 3rd party sales process", which means we create customer invoice with ref to sales order only.
    Coming into another query,
    but some time PO Is generated 110 qth to vendor but vendor  may be  he will send  105 due to shortage ... and he will tell i will send the the remaining stock after next 10 days now Generally miro will happen only for 105 not 110 ( even we can do MIRO110 also ) but i am talking generally because he received the stock 105 only
    But company wants billing for 110 not for 105 because here customer accepted to pay full money
    and vendor gave promise to delivery 5 qty in next 10 days
    Why will the customer  agree to be billed the full qty, when he receive the partial qty?
    Let us assume as you said customer agree to pay for full qty, then there are two options.
    1. Do the MIRO for full qty since you would be invoicing the customer for full qty
    Or
    2. Do the MIRO for partial qty and customer should agree for partial invoice
    Please note in the normal case also if there is if condition then you don't have other option.
    Example:
    Order = 100 qty
    PO = 100 qty
    MIGO = 50 qty and remaining 50 qty Vendor delivery in next 10 days
    MIRO =50 qty
    But here also customer agreed to pay for full qty, then what will you do ? you don't have other option but to bill the partial qty in standard.
    And let me know if you need any more clarity?
    thanks,
    Srinu.

  • Credit memo cant add with cost 0.

    Dear all
    i have a customer , this upgrade he´s systema to 8.8 in 007 he can add invoices with some lines with cost 0 (cero) and then add his credit memo with (cost cero) in the stock audit the item has not cost cero. in 8.8 they cant do this.  someting change in 8.8 for this paractice? ¿ how can i cancel this invoice? appears the error . error item with cost cero.
    i  hoppe your soon support.
    regards
    NANCY HERNANDEZ

    Regads. aplied your propuse and everything is ok.
    Nancy

  • Split of freight invoice with ref to PO to other PO (materials)

    Hello
    I have a problem with the posting of incoming freight invoices with reference to a PO number. The invioce has to be assigned to other PO for materials.
    If the freight invoice was not assigned to a PO, I would have posted the invoice as 'Subsequent deb', entered the amount in 'Unpl del cost', choosen the vendor in 'Inv party' and finally splitted the invoice amount on the relevant PO in view 'PO reference'.
    In other words: How to split/assign a freight invoice on a PO (posted as an Invoice) to other PO's for materials (subsequent deb) in a way, that the freight cost is added the material value when running FIFO jobs?
    BR
    Søren

    HI,
    through Sevice PO u can do it,
    But u r not intrested in that, so u can prefer Frame work PO In taht u need to mention time period and amount .
    u can directly post invoice w/o GRN or SES
    Regards,
    srinivas kOna

  • Report to link invoices with attached documents

    I am trying to spool a report from the oracle back end, for some senior staff at my organisation. The report would contain approved invoices along with their electronically attached documents. I have a similar query that works( see below) the problem is this query only accurately ties invoice ID's(PK1_Value) for invoices that were created using "AP_INVOICES" enitity_name, but majority of our users dont have the payables responsibility and hence can only create using the "AP_INVOICES_INTERFACE" enitity_name, and I cant tie the PK1_VALUE in the fnd_attached_documents table to the invoice ID, Please I need urgent help to locate (a) what PK1_VALUE is being used by AP_INVOICES_INTERFACE (b) How I can reference INVOICE_ID with that value.
    SELECT SUP.vendor_name SUPPLIER, INV.invoice_num INVOICE,
    INV.invoice_amount AMOUNT, INV.remit_to_supplier_name,
    INV.description, APVL.approval_history_id, APVL.approver_name, DOC.url
    FROM ap_suppliers SUP, ap_invoices_all INV, ap_inv_aprvl_hist_all APVL,
    fnd_documents DOC, fnd_attached_documents ATCH
    WHERE SUP.vendor_id = INV.vendor_id
    AND INV.invoice_id = APVL.invoice_id
    AND INV.invoice_id = ATCH.pk1_value
    AND DOC.document_id = ATCH.document_id
    AND INV.wfapproval_status = 'WFAPPROVED'
    AND ATCH.entity_name = 'AP_INVOICES'
    AND APVL.response = 'APPROVED'
    AND INV.cancelled_by IS NULL
    ORDER BY SUPPLIER, INVOICE, APVL.approval_history_id
    Thanks in anticipation.

    991923 wrote:
    @Billy
    This is an oracle related question, and its not an in-built developed model. I was actually refered to this forum from oracle support.Billy is correct. Whilst it may be an Oracle question, it is not an SQL or PL/SQL related question.
    Your question is referring specifically to functions and entities that are only available to people using one of Oracle Apps type things (I don't use them myself)... So probably one of the forums in the E-Business suite (https://forums.oracle.com/forums/category.jspa?categoryID=3) would be more suitable.
    Oracle Support would not (or certainly should not) be referring someone to ask their question in the forums if it is an urgent commercial issue as these forums are not for commercial support.
    In these forums, nothing is "urgent" and it is considered rude to presume otherwise, both to the volunteers who help here, and to the other people who would like their questions answered.
    The reason i mentioned the tables AP_INVOICES_ALL and AP_INVOICES_INTERFACE is to give as much information about my problem as possible.That's great, but those tables do not exist as part of the standard Oracle database installation, and this SQL and PL/SQL forum is for questions related to the SQL and PL/SQL languages, not for questions related to specific applications that people here are unlikely to have, and for which, when they are Oracle provided applications, they have their own specific forums.

  • AR Invoice with Installment Terms-On Account Balance

    Hi To All,
    We have a customer with invoice with 18 month installment terms.  The first and second month installments were paid.  But for the third month customer double paid the installment #3.  So the installment close but we placed the duplicate payment on account.  When we try to apply this receipt to installment #4, the invoice number is not being queried.  So would like to know if this is a bug or expected functionality.  If it is the expected functionality what are the reasons behind this.
    Thanks for any help on this matter.

    Hi Bharat,
    Thanks for your reply.  We checked the invoice payment schedule in the tables are 4th to 18th are all open.  We have also verified this thru the forms and same appears.
    So when we go to receipts and attempt to apply on accounts funds to the invoice.  We cant query for the invoice.  The following oracle forms message appears:  "FRM-41830:  List of Values contains no entries"

Maybe you are looking for

  • Payment terms to EBP system

    Hello all, I have a system EBP and I customizing two systems back end.Then I have a good list for payment term if I'm going for vendor data if I put a company based in France (<b>back end</b> <b>system 4.5)</b> and I have a bad list if I choice a com

  • Urgent! Please Help on KT6 Delta

    I mounted the sistem on AMD XP 1800, i had it on a motherboard soltek sl75drv5 and was working 100%. I put thermal grease and all that on the cpu, but when a start the system, like 30 seconds later, it starts to make a sound in the cpu area, like if

  • OCR and voting disk location

    Hi all, I'm testing to install an Oracle RAC database (11g) on linux RHE 5 with a shared storage DELL Equallogic SCSI SAN. I will setup a 2 nodes and i will use ASM for the database storage. I'm new in RAC database and i'm checking some docs and find

  • TS3694 Debugger message: dobule panic iPhone 5S

    My iPhone 5s shuts down by itself and can't turn it on for almost an hour, until I have to reboot it. And when I connect it to iTunes, it says that the phone is in recovery mode and that it must be restored, but when I restore it, the Apple logo and

  • We have one computer and two users. How do we get itunes to keep our apps separate for our iphones 3gs?

    I'm new to iphones and Apple in general. I'm not tech savvy at all. My husband and I just got the iphone 3gs (separate phones). Itunes wants to put the same apps on both phones (one computer). Can we stop this? We don't want the same apps on our phon