Link Between OINV Table And OBTN Table

I want to create relationship b/w A/R Invoice and Batch Number transaction Reports table.
sap point out two tables of Batch Number Transaction Report RBTN and OBTN,Problem is that i never found any  table with name of RBTN.
plz tell me what is RBTN table???why its not in sql database  and how i can create link b/w A/R invoice and Issue for production  .

Hi Vinu.........
Welcome to SAP Business One Forum............
Please check the link between these tables........
SELECT Distinct T1.BatchNum
FROM IBT1 T0
Inner Join OIBT T1 On T0.BatchNum=T1.BatchNum AND T1.ItemCode=T0.ItemCode
INNER JOIN DLN1 T2 ON T2.DocEntry=T0.BaseEntry AND T2.ItemCode=T0.ItemCode
inner join ODLN T3 on T2.DocEntry = T3.DocEntry LEFT JOIN INV1 T4 On T4.BaseEntry=T2.DocEntry Left Outer Join OINV T5 On T5.DocEntry=T4.DocEntry
WHERE T0.BaseType = 15
Hope this will help you........
Regards,
Rahul

Similar Messages

  • Link between OINV,INV1 and OIBT,IBT1

    i want link between OINV,INV1 and OIBT,IBT1 table so plz help me,
    in which way i connect two table inv1 and oibt

    Hi Vinu.........
    Welcome to SAP Business One Forum............
    Please check the link between these tables........
    SELECT Distinct T1.BatchNum
    FROM IBT1 T0
    Inner Join OIBT T1 On T0.BatchNum=T1.BatchNum AND T1.ItemCode=T0.ItemCode
    INNER JOIN DLN1 T2 ON T2.DocEntry=T0.BaseEntry AND T2.ItemCode=T0.ItemCode
    inner join ODLN T3 on T2.DocEntry = T3.DocEntry LEFT JOIN INV1 T4 On T4.BaseEntry=T2.DocEntry Left Outer Join OINV T5 On T5.DocEntry=T4.DocEntry
    WHERE T0.BaseType = 15
    Hope this will help you........
    Regards,
    Rahul

  • Link between OINV / INV1 and ORCT / RCT2 or OJDT / JDT1

    Dear All,
    I would like to create a report outside SAP for Invoice and its payments.
    We are receiving full payment or part payment against single invoice.
    I want to create the report showing against single invoice how much payment received and when.
    like... Customer, Invoice no, Invoice Dt, total Invoice amt
                                      -> Payment 1, Pymt Rec Dt, Amt
                                      -> Payment 2, Pymt Rec Dt, Amt
                                      -> Payment 3, Pymt Rec Dt, Amt
    it is possible ? if yes, how do i link the OINV / INV1 with ORCT / RCT2 or OJDT / JDT1 tables.
    Please guide..
    Best Regards,
    Chintesh Soni

    Chintesh,
    OINV and INV1 are linked by DocEntry (I think you might know this)
    OINV.DocEntry = INV1.DocEntry
    OINV.DocEntry = RCT2.DocEntry
    ORCT.DocNum = RCT2.DocNum
    I am pasting the relationship as in a SQL Construct
    [dbo\].[RCT2\] T0  INNER  JOIN [dbo\].[ORCT\] T1  ON  T1.DocNum = T0.DocNum
    INNER  JOIN [dbo\].[OINV\] T2  ON  T2.DocEntry = T0.DocEntry
    INNER  JOIN [dbo\].[OJDT\] T3  ON  T3.BaseRef = T2.DocEntry
    INNER  JOIN [dbo\].[JDT1\] T4 ON T4.TransID = T3.TransID
    Suda

  • 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 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 Fixed Asset and Purchase Order Tables

    Hi,
    I am working in Fixed Asset Report. I have a folllowing Doubts.Please clarify.
    1. How to link the Fixed asset tables with PO_HEADERS_ALL
    2. I took the Asset_Account field from FA_ASSET_DISTRIBUTIONS_V . But how to link with this table to other Fixed asset tables.
    Please give me the link between these tables. It will be grate helpful for me.
    Thanks,
    Prakash

    Hi,
    This should be mentioned/explained in [Oracle eTRM|http://etrm.oracle.com/] website (which is down for now). Others who already know the exact link may be able to help.
    Regards,
    Hussein

  • Can anybody provide me the link between these tables

    Hello,
    Can anybody provide me with the link between these tables.
    Is there any link for the CTSNUMC and PNTPR
    1) /SAPSLL/CTSNUMC
             Fields: STCTS
                       CCNGN
    2) /SAPSLL/PRGEN
            Fields : ATTR20A
                      ATTR05A
                      ATTR10A
                      ATTR05B
    Common field -
    GUID PR
    3) /SAPSLL/PNTPR
            Fields : PRVSY
                    : GRVSY
    Common field -
    GUID PR
    4) /SAPSLL/PRODUCT_SELECT_UI_S  "This is Structure
             Fields : QUAL_STA  " Product Status
                   Common field : CCNGN, STCTS
    5) /SAPSLL/PR
               Fields : CRTSP  " Product Created on
                        : CHTSP " Product Changed on
    Common field -
    GUID PR
    6) /SAPSLL/PRT
          Fields : PRTXT  " Materail Desc
    Common field -
    GUID PR
    I have common fileds for all the tables to join them except for the tables /SAPSLL/CTSNUMC and
    SAPSLL/PRGEN.
    Any suggestions will be apprecaited.
    Regards,
    Kittu

    Hi,
    Thank you every body for your time...
    I am closing this thread as there was no response and I think I solved it.
    Regards,
    Kittu

  • One to One link between VBRP items and BSEG items

    Hi All,
    I am working on a program where I have to link between VBRP table items against BSEG table items.
    But in BSEG, the invoice items are summarised based on Material Number, profit center etc..
    Is there a way to divide them, like any other table which holds the data transferred to accounting from sales exactly as it is in the invoice tables (VBRP).
    If there is no such table, can any one help me figure out a logic where I can didvide the items of BSEG table exactly like the items of table  VBRP.
    Any help or input will be very highly appreciated.
    Thanks in advance
    Phani

    Thanks for the Replies Ramani and Monika...
    I alraedy have a relation between the Accounting Doc and Billing Doc (VBRP-vbeln to BSEG-belnr).
    what I am looking for is the Item wise one to one mapping.
    i.e  Assume that we have 4 items in VBRP under one Billing Doc....
    2 items have Similar Materials (Assume XYZ) and same Profit center (eq..MNO123)
    and the Other 2 items have material (ABC) and Profit center (PQR6789).
    Now these appear in Bseg as only 2 items, all the items with similar materials, profit center etc will be clubbed in Bseg (While Accounting). I.e In BSEG you will only find 2 entries for the above 4 items of VBRP.
    I need to divide the data that I am getting from BSEG exactly as they are in VBRP.
    Pls suggest if you know of any table where I can find this.....If not a table.., then a way to figure out the division of these BSEG items exactly as the VBRP items.
    Brgds
    Phani

  • 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.

  • Link between process order and sales order for planning strategy 52

    Hello,
    I investigate the possibility of a link between "sales order" and "planned order / process order" for the usage of planning strategy 52 (planning w/o final assembly, make to stock).
    I know, this is not conform to the basics of planning strategies (EITHER make to order OR make to stock) and I suspect it would be a modification. Of course we have the alternative "make to order" - strategy 50, but we do not want to use individual customer stocks.
    Is anybody there with similar customer requirements or project experiences?
    Thanks in advance,
    Joerg
    Message was edited by:
            Jörg Demtschuk

    Hi Jorg,
    To my understanding if you need hard pegging then in SAP only Individual requirement is possible.
    Or else you need to create a custom transactions/table to identify Sale order and when ever a process order is created by selecting the sale order record, the process order detials should also get updated against that.
    You need to take the help of ABAP expert for this,
    Regards,
    Prasobh
    Reward points if this was useful

  • 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 )

  • Link between EKKO, EKPO and KONP

    Hi,
    can someone help me out to trace the link between EKKO, EKPO and KONP tables?
    regards,
    ravi.

    Hi Ravi
      KONP is conditions table.
      If we need the conditions(prices) of a purchase order, we can get it from EKKO, EKPO & KONV.
      1. Extract KNUMV from EKKO.
      2. Using EKKO-KNUMV - Extract conditions from KONV where KONV-KNUMV = EKKO-KNUMV.
      3. We can find item prices where KONV-KPOSN = EKPO-EBELP.
      Hope this helps you.
    Kind Regards
    Eswar

  • Link between outbound delivery and matriel documents of good receip

    HI,
    in which table we can find the link between outbound delivery and matriel documents of good receipt.
    thanks

    Hi!,
    If you have posted a goods receipt for an outbound delivery, you should find in the header table MKPF for the material document the field MKPF-XBLNR completed with the outbound delivery number.
    Then, if the document flow for the delivery has been updated correctly, in the table VBFA for the delivery (VBFA-VBELV), you should find the material document under VBFA-VBELN.
    I hope this helps you!
    Best regards,
    Esther.

Maybe you are looking for