Link invoice table

Hi,
In Access, I want to link either an invoice or delivery table to a Sequel table containing our shipping information such as tracking numbers, total charges per delivery, etc. Purpose for this will be to compare the actual shipping charges versus what we charged on the invoice.  Since some of our divisions base shipping charges on the total dollar amount of the order instead of the actual charge, this will allow me to make sure we are charging enough in these instances.
In my shipping table, the primary key is the delivery number.  So, I need to find the delivery number that is the base document for each invoice.  Tried to find a base document field in the OINV table but I don't see one.  Don't want to have to link the INV1 table as well, as my Access skills are beginner level.
I want to link to these tables in Access so the data refreshes every time I open the table.
Can you tell me what field and table in SAP I should be using?  Is there an easier way to do this? 
Thanks,
Shelby

hello Shelby...just to answer one question you have...
1.  To attach any header table (all starting with "O") to a detail table (all ending with a number like "1"), the following is used...
OINV T0
LEFT OUTER JOIN INV1 T1
ON T0.DocEntry = T1.DocEntry
This goes for ODLN to DLN1 (go ahead and try it out)
2.  To connect tables together in the SAP B1 "module flow" (Delivery to AR Invoice), it is a combination of the two DETAIL records (DLN1 and INV1) using the fields of:
TargetRef/TargetKey + TargetType + :LineNum (from DLN1 as the Delivery Line creating the AR Invoice Line)
being equal to the
BaseRef/BaseKey + BaseType + LineNum (from the INV1 as the AR Invoice Line created from the Delivery Line)
This is how SAP B1 also connects the information when users are using the icons of Base Document and Target Document.
It takes some time and patience to work this information, but when you get this concept, you can create quite a few good SQLs where users can follow the entire process of say a "Customer Purchase Order Number" (OINV.NumAtCard) from start to finish...and no need to export to Access - the information can be used to correct and/or research information "real time"...I personally call these "SAP B1 workstations" where users can easily ensure accuracy of what they have done or what is left to be done.  But the SQL MUST always have "LEFT OUTER JOIN"...
Much luck in getting the information together and building up the SQL skills...
Zal

Similar Messages

  • Problem linking A/R invoice table INV1 and Credit memo table RIN1

    Hi Experts,
    I have developed a sales report by picking data from the A/R invoice table INV1, BP partner table OCRD and Charts of accounts table OACT and the report is working fine. The only problem is I am having a challenge linking the above tables with the A/R Credit memo table RIN1. I want the linkage that is in case an A/R invoice is cancelled by raising an A/R credit memo, the same is not reflected on the sales report, kindly help.
    Patrick

    Hi Gordon,
    Sorry, I did both the report and relationships in crystal but if I do a query in a view it is something like
    SELECT     dbo.OACT.AcctCode, dbo.OACT.AcctName, dbo.INV1.ItemCode, dbo.INV1.Dscription, OCRD_1.CardCode, OCRD_1.CardName
    FROM         dbo.OCRD CROSS JOIN
                          dbo.OACT INNER JOIN
                          dbo.INV1 ON dbo.OACT.AcctCode = dbo.INV1.AcctCode INNER JOIN
                          dbo.OCRD AS OCRD_1 ON dbo.INV1.BaseCard = OCRD_1.CardCode
    the problem is incorporating the credit memo table coz if i include it I end up with wrong figures, hope this will help you guide.
    Patrick

  • Link Between AP Expense Reports and ap invoices tables

    hi all
    we create expense reports in AP then run the expense report import program to transfer them to the invoices
    i know them through
    the invoice number entered in the expense report and the invoice number in the invoices table
    and the employee in the expense and the vendor in the invoices(through the employee table)
    BUT,
    some times we change the invoice number after the expense transfered to the invoice
    i ask if exist relation columns between ap_expense_report_headers_all and ap_invoices_all directly?
    thanks.

    ap_expense_report_headers_all.VOUCHNO = ap_invoices_all.INVOICE_ID
    Hope this answers your question,
    Sandeep Gandhi
    Omkar Technologies Inc,
    Independent Techno-functional consultant

  • Purchase invoice tables

    Dear all,
    We're trying to find out purchase order invoice tables. We have found RBKP as header and RSEG is material detail. However we cannot match any of them with MSEG material transactiond because any of them does not contain MSEG document number as a reference document or something. Also we've tried BSEG bur it is the same story. Can anyone tell us that if there is a table which links MSEG (material transactions) and RSEG (purchase invoice items) ? Thanks in advance.
    Levent Arslan

    Hi there,
    I am not sure if there's anything that matches your need. You might want to link a PO table like EKPO inbetween via a query -SQVI
    Other wise you should have referenced or mentioned the Gr # in teh invoice.. which is the only way you can link them
    You can also link it via GR/IR account, however not sure if this fits your need.

  • Link Invoices error

    I'm using SAP B1 2005.
    I have a problem to link prepayment to invoice for incoming receipt. Eventually now the debtor is making payment and I'm trying to link the prepaid amount (using Link Invoices) to the o/s invoices with FIFO basis. However, I encountered the problem when I try to update the link.
    The error message is:
    << Another user-modified table " (JDT1) (ODBC - 2039) [Message 131-183]. >>
    Please recommend a solution.
    Thanks.

    Hi Kait,
    Please check these threads:
    /message/5861816#5861816 [original link is broken]
    Change in Business Partner Master Data
    SBO_SP_Transaction_Notification result Another user modified table
    They may be related to your error message.
    Thanks,
    Gordon

  • To link two tables in ap

    hi
    could someone pls guide me to link ap_invoices_all table with gl_code_combinationsthanking in advance
    Edited by: makdutakdu on Oct 14, 2010 12:15 PM

    Hello.
    Use the following query (R11i):
    SELECT i.invoice_num "Invoice Nr.",
    c.segment1 "Segment1",
    l.ae_line_type_code "Line Type",
    l.accounted_dr "Debit",
    l.accounted_cr "Credit"
    FROM ap_ae_lines_all l, ap_ae_headers_all h, ap_invoices_all i, ap_accounting_events_all e, gl_code_combinations c
    WHERE e.source_table = 'AP_INVOICES'
    AND i.invoice_num = '<your invoice nymber>'
    AND l.ae_header_id = h.ae_header_id
    AND e.accounting_event_id = h.accounting_event_id
    AND e.source_id = i.invoice_id
    AND l.code_combination_id = c.code_combination_id
    AND i.org_id = <your org_id>
    As you may have more than one invoice with the same number, the query may return more lines then expected. To restrict it, enter the vendor_id from table AP_INVOICES_ALL.
    Hope this helps.
    Octavio
    Edited by: Octopus Rex on Oct 14, 2010 4:10 AM

  • How to link two tables?

    Hello,
    I'm trying to create invoices with Pages, but my question is how can I link two tables in one Pages document?
    Or having two Header Rows with some 'normal' rows between would also be great. (even better)
    I'm trying to calculate my subtotal etc. below my overview of articles.
    Thanks in advance!
    Andy

    (1) no way to link two tables in Pages.
    (2) you may have several header rows, several footer rows but you can't have standard rows between header (or footer) ones.
    You may achieve what you describe without the asked feature.
    Use correct ranges and you will be able to calculate subtotals.
    Yvan KOENIG (VALLAURIS, France) lundi 28 décembre 2009 19:02:38

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • Linking SD tables in SAPquery

    Hi Everyone,
    I'm in the middle of creating a SAPQuery for my users to use. However, i am having trouble in linking a particular table, as i get the following error message:
    "Table KONV cannot be used in a join"
    What i am trying to do is to link SD tables VAPMA, VBRP, VBRK, KNA1 with KONP. The problem now is that i am unable to link KONP with the earlier mentioned tables, so i need to include another new table KONV to provide a link between them.
    From what i can find out in SE11, KONV is a cluster table, so does it mean there is no way to link them?
    Is there any other way to link those 4 earlier tables i mentioned with KONP?
    Thanks in advance

    Hi Bernard,
    Please check this link perhaps it may help to link above tables.
    http://www.sapgenie.com/abap/tables_sd.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Link between table SOFFPHF and FI document

    Hello Experts,
    I have a requirement to find all the FI documents with the attachement .
    We have a table SOFFPHF (SOFF: Files of Physical Information Objects) where i can get the details of attachement, But now how to link this table with the FI document which has this attachement.
    I tried the link using table SRGBTBREL , But i am not getting entries from table SOFFPHF in this table.
    Thanks.
    Regards,
    Ganesh.

    Hi Shivkumar,
    When you enter the item category as 'D'then a purchase order is
    classified as a service purchase order.
    When you use ML81N to perform a service entry, then automatically
    the GR document is generated.The basis for this is a service can
    only be performed and cannot be stored.
    The PO history table will give you a good idea of the relation.
    You can check the EKBE table.Enter the service entry sheet number
    in the field LFBNR of EKBE table, enter the SES number, you will
    see all the documents associated with it.

  • In ER DIagram using toad( how can i link two tables)

    Hi,
    Any Toad expert can guide me that how can i link two tables in Toad in ER Diagram to show the relationship between two tables.
    Thanks

    Hi,
    I hope there is foreign key relationship in tables, if so then you can click on "Find table dependencies" icon which will draw lines between them.
    ~Vinod

  • Query Builder - How to create a link between tables with many fields?

    I have many fields in my tables. When the query builder loads the tables, the tables are expanded to accomodate all the fields. Suppose I want to link Table A's Customer ID (the first field in Table A) wiith Table B's Customer ID (the last field in Table B). How can I do that if the last field in Table B are not visible in the screen?
    Currently, I create a link in Table A's customer with a random field in Table B. Then I edit the link to create a proper condition. Is there a more efficient way to do this?
    Thanks.
    Edited by: woro2006 on Apr 19, 2011 9:40 AM

    Hi woro2006 -
    Easiest way is to grab Table A's title bar & drag Table A down the page until the columns you want to link are visible.
    FYI, there is an outstanding bug
    Bug 10215339: 30EA1: MISSING THE 2.1 RIGHT CLICK OPTIONS ON DATA FIELDS TO CREATE A LINK
    to add a context menu on the field for this. That is, Link {context field} to > {other data sources} > {fields from that source}
    It is being considered for 3.1, but I have no idea where it will end up in the priority queue.
    Brian Jeffries
    SQL Developer Team
    P.S.: Arghh, Unfortunately, I just tried it and the diagram does not auto scroll while you drag, so there is some guess work/repositioning the view involved.
    Logged Bug 12380154 - QUERY BUILDER DIAGRAM DOES NOT AUTO SCROLL WHEN DRAGGING TABLE

  • Link Invoices to Payments - 2007

    I have a customer that just upgraded from 2005 to 2007.  Prior to upgrading, they had multiple customers with payments on account that represented downpayments on an invoice.  In 2005, they would use the Link Invoices to Payments to apply the payment on account to the invoice so that they could show the customer the actual balance due on the invoice.
    With 2007, it looks like this option has gone away and has been replaced with the Down Payment Invoice.  Our customer will not be able to use this functionality - they have a Job Costing add-on that generates their invoices, and it does not give them the option to apply a down payment invoice.
    I have tried the new internal reconciliation to apply the downpayment to the invoice, but it won't allow you to reconcile if the net amount of the transactions is zero.  In this case, the invoice amount is $10,000 - the downpayment is $5,000, so the balance on account is still $5,000.
    Any thoughts on how to apply the payment on account to the invoice so that the balance due on the invoice displays correctly?

    Hi Ellen,
    please have a look at the IRU landing page here:
    http://service.sap.com/~sapidb/011000358700000380562007E
    You will see that the now unified reconciliation engines are much more userfriendly & rule out any inconsistent internal reconciliation that could happen when using the 'Link invoices to payments' functionality.
    All the best,
    Kerstin

  • Link invoices to payments

    Hi Experts,
                        I have posted few incoming payments on account, When I wanted to link these on account paymnets with the A/R invoices Iam getting Error message as .................No Data [Message 131- 85].
                         Iam using SAP 2005B Version.

    You may refer to my posting on your another thread:
    Posting Periods Authorizations in SAP 2005B
    Also, link invoices to payments has been taken out from new version.  It is mainly because that function is error prone.
    Thanks,
    Gordon

  • Error in Link  Invoice to Payment

    Hi
      I have problem in Link Invoice to payment, I could not adjusted A/P Invoice with outgoing payment. In that A/P Invoice, Asset items are used.  I got this error message  "Cannot link Invoice with different control account than the BP's Main control account".

    Hi,
    This is the limitation of SAP B1, due to the asset control account mapped in the business partner master data.(under that BP Master->accounting tab ->general tab->control account->asset account)
    By default the when payment processed thorugh outgoing payment(by using payment on account option),the payment will be accounted in the sundry creditors account.
    So the link to invoice option will not be able to reconcile the sundry creditors account and the asset account which mapped in the BP master.
    Now inorder to reconcile these accounts:
    Create a manual JE,where you can change the control account for that BP.
    Db. the control account(asset account mapped in the BP master data) for the BP and Cr. the default control account(Sundry creditors account).
    Then manually reconcile the BP.
    Inorder to avoid these complexity the payment by selecting the corresponding asset AP invoice,this would automatically reconcile the accounts.
    Hope this clarifies your issue!

Maybe you are looking for