SQ01 - table query - invoices by vendor with tax

Hi guys,
Apologies if this is too basic though am new to SQ01 and whilst grasp the general concept struggle to find tables that I need.
I'm looking to report on vendor invoices for a given period, ideally showing gross and net invoice ammount.
What tables do I need to link?
Also will  I be able to get the two ammounts or will it be simpler to grab the gross ammount and the tax code? and then play with in excel
Any help much appreciated as usual, many thanks

Take a look at [SAP Tables -> MM|http://www.erpgenie.com/abap/tables_mm.htm]
Take also a look at logical database on purchasing. (call transaction SE36 and search database using table EKPO, EKKO)
Regards

Similar Messages

  • How to reconcile A/P invoices on vendor with positive balance (they own us

    Hi there,
    I have two questions on B1.
    I posted an A/P invoice to a vendor with positive balance (they own us money). How do I close this A/P invoice without outgoing payment? I don't want to pay them because they own us money on A/P G/L account.
    There is another situation, I posted an A/P credit memo with large amount ($1000) and an A/P invoice with small amount ($200) on same vendor. How do I close the A/P invoice to that A/P credit memo with offset amount?
    Thanks for help!
    David

    Hi there,
    We are using B1 2005A SP1. I create an A/P invoice from a vendor which owns us money. So I don't want to pay this invoice. How do I close this invoice?
    The other question is, how to I offset an open A/P invoice with small amount to an A/P credit memo created before (not linked to any other A/P invoice) with large amount and close the A/P invoice?
    I am sure about the accounting rules on this issue. We are a Canadian company.
    Thanks a lot
    David

  • Report for Number of invoice per vendor with amount

    Hi All,
    is there any standard SAP report we have which provide us number of invoices and amounts invoiced per vendor for a given time period.
    Amit.

    Hi amit
    I have the same requirement
    "The requirement is to view POs related to invoices per vendor""
    Can you suggest me a solution
    Please help
    Regards
    Shanker

  • "Object Browser" Table Query "Drill Up" Fails with ORA-00942

    I feel I have tested this capability in an earlier release of apex and it worked flawlessly... :)
    but currently it is not. :(
    It seems to be a problem with [ APP_ID=4500 Page=46 ].
    To Duplicate the error...
    Note: This example assumes "Sample Application" is loaded to the workspace.01) Logon as an APEX developer.
    02) Click on "SQL Workshop"...
    03) Click on "Object Browser"...
    04) Click on table "DEMO_ORDERS"...
    05) Click on "Data" [ between "Table" and "Indexes" ]...
    06) Click on "Query" [ below "Table" ]...
    07) Select "Show" in "Drill Up and "Drill Down Links"...
    08) Select "Check All"...
    09) Click the "Query" button...
    10) Once the result is displayed...
    Click on the demo_customers in the first "Drill Up" column.
    ...after the click in "step 10" above...
    the following error will be return.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Current Table/View: DEMO_CUSTOMERS
    4500_46_RET_TO_QUERY
    failed to parse SQL query:
    ORA-00942: table or view does not exist
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    "Drill Up" or "Drill Down" both fail with this message.
    I am currently running apex version 3.2.0.00.27 and also confirmed that the error occurs in the current apex demo website... which is currently at version 3.2.1.00.11.
    Thanks in advance... :)
    v/r
    RJones

    Jason ORCL wrote:
    I think you misunderstood.
    I call the apps API from custom code.
    It runs the API with no issue. It fails when it tries to access the HR table. So APPS cannot access HR.
    Are you saying I need to modify APPS code?? That is not likely. Are you saying I need to create a public synonym for an HR table for APPS? That seems unlikely also...OK, looks like there is a typo in your first post and the object name is IRC_ASSIGNMENT_STATUSES.
    From eTRM, I see the following:
    TABLE: HR.IRC_ASSIGNMENT_STATUSES
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=HR&c_type=TABLE
    APPS.IRC_ASSIGNMENT_STATUSES
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=APPS&c_type=SYNONYM
    So, this indicates that apps user should be able access this table without a prefix.
    SQL> show user
    USER is "APPS"
    SQL> desc IRC_ASSIGNMENT_STATUSES
    Name                                      Null?    Type
    ASSIGNMENT_STATUS_ID                      NOT NULL NUMBER(15)
    ASSIGNMENT_ID                             NOT NULL NUMBER(15)
    ASSIGNMENT_STATUS_TYPE_ID                 NOT NULL NUMBER(15)
    STATUS_CHANGE_DATE                        NOT NULL DATE
    STATUS_CHANGE_REASON                               VARCHAR2(240)
    LAST_UPDATE_DATE                          NOT NULL DATE
    LAST_UPDATED_BY                           NOT NULL NUMBER(15)
    LAST_UPDATE_LOGIN                                  NUMBER(15)
    CREATED_BY                                NOT NULL NUMBER(15)
    CREATION_DATE                             NOT NULL DATE
    OBJECT_VERSION_NUMBER                     NOT NULL NUMBER(9)Thanks,
    Hussein

  • Table Relation with Payment and Invoice of Vendor

    Hi all,
         I have one question about Table Relation with Payment and Invoice of Vendor.
         the scenario is.
         2 Purchase Order number : 100000001/100000002
         1 Invoice document number : 200000001 which include  2 Purchase Order.
         1 Payment document number : 300000001
         How should I found out table relation from Payment document number - Invoice document number - Purchase Order number. ?
          I try to link the following table, but it does not work.
          RBKP     *     Invoice Receipt
          RSEG     *     Invoice Receipt document line item
          BKPF     *     Accounting Document Header
    BSEG     *     Accounting Document Segment
    PAYR          Payment Medium File
    BSIK          Accounting: Secondary Index for Vendors
    BSAK          Accounting: Secondary Index for Vendors (Cleared Items)
    BSIS          Accounting: Secondary Index for G/L Accounts (Open Items)
    Does any one know about it ?
    Regards
    KY Chuang

    Hi Venkatesh,
    Thnx a lot for the reply. This has almost solved my problem, however there's one thing left. when I'm trying to take a print out after exporting the info into an excel sheet, the information really looks scattered, i.e.,  is there a way where we can go ahead and get the info in a rather unscattered manner.
    I've tried to take a print directly without actually transferring the info into an excel sheet, then each of the vendor is printed in a separate page, which again they feel is a problem.
    So, if you have an idea pls suggest.
    Thnx again for the information.
    regards
    sandhya

  • Vendor Master with Tax and process an invoice

    Good Morning SAP Gurus
    How do I set up a vendor with withholding tax and then process that vendor for an invoice?
    Points awarded.
    Thanks!

    One more question Mutka-
    In your experience, what is best practice when creating tax types via EWHT?  Is there a logic you follow?
    It looks to me that you should assign one tax type for every tax code?  I have 3 sets if you will, 1099 not withholding, 1099 withholding and 1042 withholding.  I have defined 16 tax codes for each segment thus far.  That is why I asked if there was an OSS to change the tax code field to 3 positions than 2 because the consultant before me used for example B0 through B9.  Problem I have now is I have to add 6 more and as of now, I cannot make it B10 and so on.
    If the above is correct then I would need to assign 1 tax type 1099 for withholding and repeat for 1 tax type 1042 for 16 recepient type?  However, it looks to me that this needs only 1 tax type for 1042 for every tax code?  Please confirm.
    Thanks!
    Edited by: AMS on Sep 16, 2009 8:14 AM
    Edited by: AMS on Sep 16, 2009 8:18 AM
    Edited by: AMS on Sep 16, 2009 8:19 AM
    Edited by: AMS on Sep 16, 2009 8:32 AM
    Edited by: AMS on Sep 16, 2009 8:35 AM

  • Query linking Check Register with AP invoice

    Hi,
    was someone be able to create a query where it shows the Check No, Check Date, Vendor Name and alos the AP invoice being paid with the Expense Account being hit on the AP incoice.
    Thanks

    Try this one:
    SELECT T2.CheckNum as 'Check Number', T2.DueDate as 'Check Date' , T1.CardCode 'Vendor Code',
    T1.CardName 'Vendor Name', T2.CheckSum as 'Check Amount', T0.DocNum as 'AP Invoice No. Paid',
    T4.AcctName as 'EXPense Account'
    FROM DBO.OPCH T0 INNER JOIN DBO.OVPM T1 ON T0.ReceiptNum = T1.DocEntry
    INNER JOIN DBO.VPM1 T2 ON T1.DocNum = T2.DocNum
    INNER JOIN DBO.PCH1 T3 ON T3.DocEntry = T0.DocEntry
    INNER JOIN DBO.OACT T4 ON T4.AcctCode = T3.AcctCode
    where T0.DocDate >=[%0] and T0.DocDate <=[%1]
    Thanks,
    Gordon

  • With holding tax base amount for 1099 vendors with discounted payment term

    Hi Friends,
    We have a below situation for 1099 vendors,
    Some of the 1099 vendors are set-up in the system with payment term with discounts i.e. 2% if paid within 10 days
    As per config, system posts with holding tax base amount at the time of posting payment.
    With holding tax rate is 0%,
    Based on modified net amount calculation
    and
    Cash discount calculation before w/tax calculation
    When we have vendor with input tax, system excludes tax amount at the time of payment but for the with holding tax base calculation amount system does not exclude input tax type.
    Which causes difference in 1099 – misc vendors
    Below is the example of how system calculates the amount.
    Invoice $ 1000, payment term 2% if paid within 10 days. Input tax 7.25%
    Payment going out=
    $1000- $ 72.5(tax 7.25%) = $ 927.5 – 18.55 [2% discount] = $ 908.95 (payment amount)
    With holding base calculation =
    $ 1000 – 100 (2% discount) = $ 900
    Difference between payment going out and with holding tax base = 908.98 – 900 = 8.98
    Can some one please tell me how to get rid off this difference?
    Moreover, please tell me if it’s normal to have 1099 vendors with discounted payment term.
    Any thoughts on above situation will be helpful
    Edited by: Shefford William on Jan 28, 2008 11:36 PM

    Dear All
    i am also having the same problem. The example is
    Net invoice Value   = $ 100,000
    Input Tax @ 15%   = $  15,000
    Total Invoice Value = $ 115,000
    Cash Discount = 20% with in 20 days
    On payment the system behavior should be
    Debit  Vendor invoice Value   = $ 115,000
    Debit  Cash Discount @ 20%    = $   20,000   ( 20% of the Net Invoice Value that is 20% of $ 100,000)
    Credit  W/H Tax deduction @ 3.5% = $ 3,325  ( 3.5% of 95,000 the Inv Value - Cash Discount that is $ 115,000 - $20,000)
    Credit Bank Account  = $ 91,675 ( Inv value - Cash Dic - W/H tax that is $ 115,000 - 20,000 - 3325 = 91,675)
    However at the time of payment system is calculating tax as follows
    Debit  Vendor invoice Value   = $ 115,000
    Debit  Cash Discount @ 20%    = $   20,000   ( 20% of the Net Invoice Value that is 20% of $ 100,000)
    Credit  W/H Tax deduction @ 3.5% = $ 3,220  ( 3.5% of 92,000 the Inv Value - Cash Discount that is $ 115,000 - $23,000. This $ 23,000 is only calculated for W/H tax calculation that is 20% of $ 115,000 )
    Credit Bank Account  = $ 91,780 ( Inv value - Cash Dis - W/H tax that is $ 115,000 - 20,000 - 3220 = 91,780)
    this is not the common practice when using the net base value in the system.
    Can any one help me in this regard. I really have been stucked in this problem for many days
    Regards
    Bilal Athar

  • Query to find vendor number with whom a particular item was last purchased.

    Hi All,
    I want to frame a SQL query to find vendor number with whom a particular item was last purchased.
    I got to know that we can find this by looking at the open Purchase Order or the Material Transactions for the transaction type of ‘PO Receipt’ whichever is the latest.
    Can anyone please help me in framing such query.
    Regards,
    Shruti

    Here is a hint
    Use the mtl_system_items_b table to get the inventory_item_id.
    Use it in the po_lines_all table to get po_header_id
    Use it in po_headers_all table to get vendor_id
    Use it in po_vendors to get segment1 (i.e. vendor#)
    Hope this helps,
    Sandeep Gandhi

  • Table for open Purchase order and pending invoices for vendors

    Hi,
    Are there any table to know open Purchase orders and pending invoices for vendors.
    Quick response will be appreciated.
    Thanks & Regards

    hi,
    Purchase Order:
    S011:(PURCH: Purch. Group Statistics)
    Statistics (SSOUR)
    Version (VRSIO)
    Month (SPMON)
    Day (SPTAG)
    Week (SPWOC)
    Posting Period (SPBUP)
    Purchasing Org (EKORG)
    Purchasing Group (EKGRP)
    Vendor No (LIFNR)
    S012: (PURCHIS: Purchasing Statistics)
    Statistics (SSOUR)
    Version (VRSIO)
    Month (SPMON)
    Day (SPTAG)
    Week (SPWOC)
    Posting Period (SPBUP)
    Purchasing Org (EKORG)
    Purchasing Group (EKGRP)
    Material No (MATNR)
    Plant (WERKS)
    Info Record Category (ESOKZ)
    Material Group (MATKL)
    Info Record (INFNR)
    Country (LAND1)
    EINE: (Purchasing Info Record: Purchasing
    Organization Data)
    Info Record (INFNR)
    Purchasing Org (EKORG)
    Info Record Type (ESOKZ)
    Plant (WEKS)
    EKET: (Delivery Schedules)
    Purchasing Doc (EBELN)
    Item (EBELP)
    Delivery Schedule (ETENR)
    EKPO: (Purchasing Document Item)
    Purchasing Doc (EBELN)
    Item (EBELP)
    EKKN: (Account Assignment in Purchasing
    Document)
    Purchasing Doc (EBELN)
    Item (EBELP)
    Account Assignment (ZEKKN)
    EKKO: (Purchasing Document Header)
    Purchasing Doc (EBELN)
    EORD: (Purchasing Source List)
    Material No (MATNR)
    Plant (WERKS)
    Source List No (ZEORD)
    thx,
    Ganpat

  • India Localization - AP - Asset Invoice with Tax Lines

    Dear Experts,
    In India Localization If I have Asset Invoice with Tax Lines and If I Perform Mass Additions will Tax Lines also Interfaced to FA or only Asset cost will be transferred FA (Excluding Tax Lines)
    Please help me out.
    Thanks
    Bharath

    Bharath,
    even though the tax lines are independently transferred to mass addition and merged ... it is merged to its owning transaction ... like if the invoice in AP is created for a capital asset using the Capital asset clearing account, the tax lines in that invoice is merged automatically to that invoice cost line in the mass addition stage ... similary for CIP clearing account ....
    Regards,
    Ivruksha

  • MRNB- Revaluation with Logistics Invoice Verification Vendor wise

    Dear Experts,
    As per SAP standard MRNB transaction is vailable for Revaluation of Purchase Order Price changes.
    My requirement as below:
    We are manitaining Purchasing Info Records compulsory.
    when purchasing rate changes, we are changing Info Records and not chaging purchase orders( its very tough taks to chage Individually Bcoz huge count).
    so want  Revaluation with Logistics Invoice Verification Vendor wise from Purchase Info Records.
    is there any other alternative.??
    Please Help.
    ..Ajay

    Hi subhuram,
    I want credit memo or debit memo to Vendors.
    not only revalution of materials.
    Ajay

  • Order invoices by vendor

    I am trying to get a result in XML Publisher, just like Reports does. I am trying to get my datatemplate the right way. this is the thing:
    In Reports i create multiple queries and bind them by "WHERE vendorid = :vendor_id1". This way my XML result looks like this:
    <Vendor>
      <vendorname />
      <Invoices>
        <invoicedate />
        <invoicenum />
      </Invoices>
      <Invoices>
        <invoicedate />
        <invoicenum />
      </Invoices>
      <Invoices>
        <invoicedate />
        <invoicenum />
      </Invoices>
    </Vendor>So the invoices are sorted by vendor. But the thing is, the relations are like this: The Invoice is the master table, which contains invoice info, the vendor_id, and ofcourse info like date, amount etc. So when querying the invoices you get more times the same vendor_id, with a different invoice number. Of course a customer can have more invoices. Now the relation to the vendor table is | Invoices N >-- 1 Vendors |. So this means my output in XMLP is like this:
    <Invoice>
      <date />
      <amount />
      <Vendor>
        <name />
        <number />
      </vendor>
    </Invoice>
    <Invoice>
      <date />
      <amount />
      <Vendor>
        <name />
        <number />
      </vendor>
    </Invoice>That is the other way around. This is what i expected it to do, but i cannot think of a way to turn it over. The problem is i guess the link of the vendor ID. Because first you have to query for the vendor_id, and then you can query for the vendor info. but you sort of need it the other way around, but you must be able to sort on vendor, and date.
    So can anyone help me with this? I think XMLP can be very powerful, but for now, reports is easyer.

    Wel... thats the thing, i have multiple. I am using XML Publisher Enterprise (with the nice GUI) and created multiple DataSets. Then selected this "Concatenated SQL Data Source", and kinda hoped that the queries would come together, which they dont :(. I also tried to make a complete DataTemplate with the XML in it etc. but if I have to create a query like that all the time, it is still easier to use reports. But anyway, i will give a piece of my DataTemplate here.
    <dataTemplate name="controle_epn_pay" dataSourceRef="srv-vm-tst">
         <dataQuery>
              <sqlStatement name="Q_ap_invoices_all">
                   <![CDATA[SELECT doc_sequence_value
    ,      invoice_num
    ,      PAY_GROUP_LOOKUP_CODE
    ,      PAYMENT_METHOD_LOOKUP_CODE
    ,      DESCRIPTION
    ,      vendor_id
    ,      invoice_id
    ,      batch_id
    FROM ap_invoices_all
    WHERE doc_sequence_value LIKE '10110%']]>
              </sqlStatement>
              <sqlStatement name="Q_ap_vendors_v">
                   <![CDATA[SELECT vendor_number
    ,      vendor_name
    FROM ap_vendors_v
    WHERE vendor_id = :vendor_id]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_invoices_all" source="Q_ap_invoices_all">
                   <element name="invoice" value="invoice_num"/>
                   <group name="G_vendor" source="Q_ap_vendors_v">
                        <element name="Vendor" value="vendor_name"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>So now according to the "active" invoice we have a invoice_id, and that invoice_id is used in the vendors query.

  • Table for material doc reference with frieght miro

    Dear experts,
                  I WANT TO DEVELOP A REPORT FOR FREIGHT MIRO  WITH FOLLWING DETAIL :
    GRN NO OR MAT DOC NO,GRN DATE , PO NO, PO DATE,MATNO, VENDOR, MIRO DOC NO,MIRO ITEM NO, MIRO DATE, REFERENCE NO, QTY IN UNIT OF ENTRY,QTY IN DELIVERY NOTE , INVOICE AMT,GROSS INVOICE AMT .
    THEREFOR I NEED TO JOIN SOME TABLES . I HAVE TRIED REPORT WITH RSEG & MSEG BUT IN RSEG MAT DOCUMENT NO IS NOT AVAILABLE FOR FREIGHT . HOW & WHICH TABLE I HAVE TO JOIN FOR THE SAME ,SO THAT I GET ALL THE INFORMATION  IN MY REPORT.IF U HAVE ANY READYMADE CODING FOR ABOVE REPORT, PL. SEND IT IN MY ID - rajrathi1at gmail. com
    REGARDS
    RAJESH RATHI

    Hi,
    You have to use following tables;
    RBCO - Document Item, Incoming Invoice, Account Assignment
    RBDIFFKO - Invoice Verification - Conditions
    RBDIFFME - Batch Invoice Verification - Quantity Differences
    RBDRSEG - Batch IV: Invoice Document Items
    RBKP - Document Header: Invoice Receipt
    RBKP_BLOCKED - Logistics Invoice Verification: Blocked Invoices
    RBKPB - Invoice Document Header (Batch Invoice Verification)
    RBMA - Document Item: Incoming Invoice for Material
    RBSELBEST - Invoice Receipt, Purchasing Documents Selection
    RBSELDELI - Incoming Invoice: Delivery Selection
    RBSELERFB - Invoice Receipt, Service Entry Sheet Selection
    RBSELFRBR - Invoice Receipt, Bills of Lading Selection
    RBSELLBLN - Invoice Receipt, Bills of Lading Selection
    RBSELLIFS - Invoice Receipt, Delivery Notes Selection
    RBSELWERK - Invoice Receipt, Plants Selection
    RBTX - Taxes: Incoming Invoice
    RBVD - Invoice Document - Aggregation Data
    RBVDMAT - Invoice Verification - Aggregation Data, Material
    RBVS - Invoice Verification: Split Invoice Amount
    RBWS - Withholding Tax Data, Incoming Invoice
    RBWT - Withholding Tax Data, Incoming Invoice

  • Vendor Based Tax in Sales Order

    Dear Friends,
    I would like to Have Vendor basis Tax in Sales Order and I Have done all sort of Configuration but vendor number is not reading in sales order and same can be seen through Analysis tab and error is Vendor field is not initialized. 
    Vendor is been Populated in Sales order header and Item Level from Customer Master.
    Vendor Field has in Pricing field catalog.
    Table has been created with Vendor Field
    Same has been assign to Access Sequence.
    to Access Sequence has been assigned to Condition Type.
    Condition Type has been Maintained in Pricing Procedure.
    Condition Record has been created for Tax Condition Type Which has Vendor Field.
    Vendor Master data is exists and same has been created by MM Guys.
    Many of posts are saying that Vendor to be added to Pricing Communication Structure KOMP, KOMK, KOMG,KOMV. but My Abaper is Poor so request you to guide me what exactly Abaer has to do and What Code to be entered in User Exists SAPMV45AFZZ and RV60AFZZ if not any other suggested user exists.
    It would be really appreciated from bottom of the heart  if any once can mail be the guidance literature to my mail id Text Removed
    Warm Regards
    Vijay
    Edited by: Lakshmipathi on Dec 14, 2011 8:10 PM
    Please dont ask any information to share to your personal mail id which is against the forum rules

    Hi
    If you want to enhance the communication pricing for taxes, see SAP Note 531835 - Using field PSTYV in the condition access.
    In the other hand, see the article [R/3 Tax Interface Configuration Guide|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/047ab790-0201-0010-a9b1-e612f8b71dcd?QuickLink=index&overridelayout=true] in this site.
    Regards
    Eduardo

Maybe you are looking for