Table Link between Main Invoice and TDS standard invoice generated

HI All,
I wanted to know the table linking the Main Invoice and corresponding the TDS standard invoices generated who payment is done to the authority.
I want to get the list of all the main invoices who’s TDS generated invoice payment is done. Main voices I fetch from ap_invoices_v
Please suggest
Regards,
SK

Hello,
The following query (11.5.10.2) will retrieve the invoices who originated the Withholding Tax invoices in a certain period. Please change parameters accordingly.
SELECT
supplier.vendor_name Supplier_Name ,
supplier.segment1 Supplier_Number ,
supplier.num_1099 Supplier_NIF ,
supplier_site.vendor_site_code Site_Code ,
i.invoice_date Invoice_Date ,
i.invoice_currency_code Invoice_Currency_Code ,
i.exchange_rate Invoice_Exchange_Rate ,
c.name Invoice_Currency_Name ,
i.invoice_num Invoice_Number ,
i.invoice_amount Invoice_Amount ,
i.base_amount Invoice_Base_Amount ,
i.description Invoice_Description ,
d.accrual_posted_flag Accrual_Posted_Flag ,
d.accounting_date Accounting_Date ,
nvl(d.awt_gross_amount , i . invoice_amount ) Amount_Subject_To_Tax ,
d.amount Tax_Amount ,
d.base_amount Tax_Base_Amount ,
d.description Line_Description ,
d.awt_flag AWT_Flag ,
n.name Dist_Tax_Name ,
t.tax_rate Dist_Tax_Rate ,
t.rate_type Dist_Rate_Type ,
t.certificate_number Dist_Certificate_Number ,
t.certificate_type Dist_Certificate_Type ,
t.start_date Dist_Cert_Start_Date ,
t.end_date Dist_Cert_End_Date ,
t.priority Dist_Cert_Priority
FROM
ap_invoice_distributions_all d ,
ap_invoices_all i ,
fnd_currencies_vl c ,
po_vendors supplier ,
po_vendor_sites_all supplier_site ,
ap_awt_tax_rates_all t ,
ap_tax_codes_all n
WHERE d.invoice_id = i.invoice_id
AND i.vendor_id = supplier_site.vendor_id
AND i.vendor_site_id = supplier_site.vendor_site_id
AND i.vendor_id = supplier.vendor_id
AND i.invoice_currency_code = c.currency_code
AND d.awt_tax_rate_id = t.tax_rate_id (+)
AND d.tax_code_id = n.tax_id
AND d.line_type_lookup_code = 'AWT'
AND d.set_of_books_id = <your set_of_books_id>
AND d.accounting_date >= '1-aug-09'
AND d.accounting_date <= '1-aug-09'
Hope this helps,
Octavio

Similar Messages

  • Table link between contract document and billing document

    Hi,
    Please let me know the table link between contract data and its billing plan nnumber.
    Regards,
    bhaarathi.

    VBKD is the Table name
    if Ordertype "G"  <--- that means It is a contract
    From VBAK and VBAP you can get the Contract Details for the Order Type "G"
    Go to Table VBKD, with the contract and get the billing plan .
    FPLNR <--- is the Billing plan
    Here you get the relation Between Contract and Billing Plan

  • TABLE link between RPM Item and corresponding cProject

    Is there a table that shows exact link between RPM Item and corresponding cProject that is created automatically?
    Thanks

    use Table RPM_OBJ_LINK
    select on
    PROJECT_GUID= Item GUID
    OBJECT_TYPE = '0INMCPROJECT'
    Get cProject GUID from OBJECT_KEY.

  • Table link between product category and responsible purchase group

    Hi Expert,
    Can anybody tell me if there is a table which contains the link between the product category and its responsible purchase group in SRM 5.0?
    Best Regards,
    Tom

    Hi TOm
    Q We have a requirement to read all product categories maintained for purchaser under Extended Attributes tab in Organizational Structure.
    A. FM BBP_GET_CATEGORIES_F4 is very useful and exactly what i wanted.
    copied from thread.
    br
    muthu

  • Table Link between Functional Location and Class

    Functional location has 'class' ( under section 'general data' in tab 'location'). Could anybody suggest the table name where I can get one to one mapping between the functional location and it's 'class'.
    I have put the functional location in KSSK-OBJEK   but when I am providing the functional location say 
    ?0100000000000838737 in this field of table KSSK, it is resulting no output. Could you please elaborate
    more or suggest something.
    Thanks,
    Hetal

    Hi Gurus
    I am also looking for same information.
    Would you please advise where to get this Internal Type?
    Also would you please advise what is the use of table KSSK in whole process?
    Thanks in advance
    Kris

  • Table link between shipment stage and delivery

    Hi,
      I am trying to find the tables which will tell me the delivery number belongs to which shipment stage.
      Shipment stage I am getting from VTTS table and delivery from LIPS.
      Pls. let me know. Points will be awarded.
    Thanks.

    VTTK-TKNUM = VTTP-TKNUM
    VTTP-VBELN = LIKP-VBELN
    From VTTK, VTTP you can get to know the VBELN and match it against LIKP-VBELN
    Regards
    Gopi

  • Link between Purchase order and Attachment list

    Hi All,
    I got a requirement like Purchase orders are from moved from one system to another system.There was a bug in BDC program
    so some Attachment list of the purchase orders are not moved properly to the another system.
                                                   Now my client want a report to generate the Purchase orders which is having attachment list.
    I did not find any table link between Purcahase order and Attachment list.
                                                  So Plz provide me the link between purchase order and attachment list.
    Thanks,
    Ram

    You mean service for object services?
    if yes then u have to create one custom report for Generic Object Services   ( like notes , attachment  , url )

  • Table Link between Equipment and Sub-equipment

    Hi all
    My requirement is this
    I have one mobile set with a serial number. for that mobile set i have one battery with a serial number, now i want to link both the serial numbers, one as main and another as sub item
    I tried by maintaining the battery serial number as sub-equipment in the main mobile set equipment number master,
    Let me know the table link between equipment and sub-equipment
    I want a report based on the input mobile set equipment number what are all the sub-equipment associated with the main equipment
    Also suggest is there any other approach,
    Regards
    Amuthan M

    Hi
    EQUZ is the table,if u give the sub equipment in equipment field and execute.you can find the main equipment in superior equipment field

  • Table link between activity and order

    Hello,
    In Cic0, we create activities and complaints related to a customer order.
    I do not find the link/the table which enables me to make my report (number activity with the linked order).
    I seek the table which gives the link between the activity and the order.
    Do you know it?
    Many Thanks,
    Servane

    First, you need to get the guids of the activity and complaints. (it is enough to use the table CRMD_ORDERADM_H only)
    Second, In table SRRELROLES use the above guids in field objkey and get the RoleID. (Now you would get two Role id's)
    Finaly, in table CRMD_BINREL you would have the link between these two roles. (called Role A and B)

  • Table link between IBASE and its associated products

    Hi,
    If we go to the transaction IB53 and enter an IBase number, all the products asssociated with the IBase will be listed out.
    Similarly, if we have the IBASE number how can we track the associated products via tables.(i.e) the table link between IBIBIBASE and COMM_PRODUCTProduct_id
    Thanks in advance.
    -Aaru

    In two steps..
    1. Convert Product GUID using FM 'GUID_CONVERT'
      CALL FUNCTION 'GUID_CONVERT'
        EXPORTING
          iv_guid_x16 = product_guid
        IMPORTING
          ev_guid_c22 = sysuuid-c22.
    2. Get the IBASE from view v_ibinr where objnr = sysuuid-c22

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • Table for link between Expense receipts and G/L account

    Hello,
    Could you give me the table where we we can see for all "expense receipt" the account of finance (G/L account associated to each expense)
    Thank you in advance

    Hi Tarek,
    Thatu2019s correct what Nandagopal is saying, there is no table where you can see all G/L account associated to each expense.
    However you can see the all your expense type relation to Wage type in view V_T706B4 and then respective wage type relation to symbolic account in view V_T706K.
    Then you can check the link of symbolic account to particular GL account at below IMG Path.
    Financial Accounting / Travel Management / Travel Expenses / Transfer to Accounting
    Please note that the link happens in below manner and we cannot get any direct link between Expense type and GL account.
    Expense Type -> Wage type -> Symbolic Account -> GL Account
    Do let us know for any query.
    Thanks,
    Vaibhav

  • Link between structure indicator and labellig system (PM-FL)

    Hello,
    I'm facing a problem to associate one of my alternative label with a precise structure indicator.
    In our system (R/3 4.6c), we have activated the alternative system in order to use a 40-char-long label for our functional locations. We also created a structure indicator to represent these 40 characters.
    When changing this alternatice label, the system shows the structure indicator of the main label. On my opinion, it is normal because I've found no customizing point that allows me to link the alternative labelling and the structure indicator. Am I wrong?
    If you ever encountered this problem, could you please help me find a way to solve it?
    Best regards,
    Annabelle

    Hello,
    sorry I couldn't answer your question sooner.
    The situation is this one :
    - functional locations have assigned  primary labels. These labels are created according 43 (out of 44) structure-indicators which help in representing a structure of technical objects. Thanks to the object type, we created a link between object type and structure indicator through a specific table.
    - Two functional locations can have the same ID with distinct localisations.
    - a secondary label has been created in order to generate a 40-character-long ID that is necessary to have a unique ID for each functional location.
    - We have a specific structure indicator (the 44th) that represents a 40-character-long text.
    As both labels are mandatory in the solution, is there a customizing point where we can link a non-primary label with a defined structure-indicator?
    Thanks for your help.
    Annabelle

  • Link between Cost centre and G/L Account

    Hi All,
    Please provide the Link between Cost centre.
    ie., Please provide me the T.code or Table where we will get link between Cost centre and G/L Account.
    Please let me know.
    Regards,
    Nagaraj S

    Hi,
    Please note that Cost Centers are maintained to capture costs, i.e. P & L items of GLs you have created.  These items would have been created as a Primary Cost element and the costs
    are passed to to the cost center through account assignments.  You can see these GL A/cs created as cost elements -  Cost Center-wise, period wise for which various standard  reports are available.
    Sadashivan

  • Link Between Service Notification and Sales Order

    Hi All,
    In our business process, we will create sales order from Service Notification and we can see the same in the Document flow. But when i check in the VBFA table, there are no entries. I would like to know how the document flow is updated without updating the VBFA Table or is there any other table gets updated for this flow.
    Please guide me.
    With Regards
    Vinu.N

    Hello Vinu
    For one Sales Order # figures in Notification header table- VIQMEL-VBELN.
    Similarly Notification # figures in Sales Order Header table- VBAK-QMNUM
    That is a solid link right there.
    I Also guess technical objects like Equipment, Serial number also form link between the Sales and Service Documents.
    Also check out the logic in document flow program RIBELF20, may be it will give you the clues to the problem.
    Hope this helps.

Maybe you are looking for