Link between VBAK and VBRK

Hi
How to link VBAK(sales order)and VBRK(billing document)?
what are the fields to link and how to link. because vbak-vbeln is sales order number and vbrk-vbeln is billing document number.
need help...
Thanks
smita

hi,
Following tables are included in link (In chronological order):
VBAK - sales documetn header,
VBAP - Sales document item
LIPS - Sales doc. Delivery items
VBRP - billing item data
VBRK - Billing header
generally sales doc and billing docs are related by delivery docs.
u can join these tables using joins in select statement.
join structure will loolk like.:
select .....
from vbak as a
inner join vbap as b on avbeln = bvbeln
inner join lips as c on cvgbel = bvbeln and cvgpos = bposnr
inner join vbrp as d on dvgbel = cvbeln and dvgpos = cposnr
inner join VBRK as e on evbeln = dvbeln
Also, pl refer following file, very helpful, forever.
http://www.sap-img.com/sap-download/sap-tables.zip
Jogdand M B
PS: Reward if helpful...

Similar Messages

  • Link between vbap and vbrk

    hi folks
    whatt's the link between vbap and vbrk table.
    gaurav

    Hi Gaurav
    VBAP is Sales document item detail table and VBRK is Billing header data table.
    VBRK is linked to VBRP by VBELN (i.e. VBAP-VBELN = VBRK-VBELN).
    VBRP is linked to LIPS(SD document: Delivery: Item data)by
    VBRP-VGBEL = LIPS-VBELN.
    VBRP-VGPOS = LIPS-POSNR.
    And LIPS is linked to VBAP by
    LIPS-VGBEL = VBAP-VBELN.
    LIPS-VGPOS =VBAP-POSNR.
    the flow of the SD tables is like after creation of the sales document the header details of the document is filled in VBAK.THe item details of the sales document is stored in VBAP.After creation of the delivery the delivery documnet number is updated in the LIPS table and than if the INVOICE for the particular delivery is done than the BILLING document is generated the details of which can be looked in VBRK.

  • Link between KONA and VBRK/VBRP and KONP and VBRK/VBRP

    Hi
    please suggest me the link between KONA and VBRK/VBRP and
    KONP and VBRK/VBRP
    I want to give link of rebate agreement and invoice no/Inv Qty
    My requirement is I want a report where i can see Under one Rebate agreement ,how many Commercial Invoice use
    e.g. Rebate Agreement no -125 ( for 10 Rs / unit)
    I have created 10 Invoice for 10 qty each so accrual Amount is 10* 10= 100
    I want such report where for agreement No 125- 10 Invoice No should be reflected.
    I don't want to go into VBO2 and go to verification level that concept i know
    i want one report where i will see all
    Regards
    Hemant

    Hi
    In my case i want commercial invoice no (billing type F2) but if i try to find link between KONA and VBRK for field KNUMA i can only see credit Memo No(Billing type-B3-rebate billing type) ,
    I want to display commericial invoice and not rebate credit memo
    Pls advice
    Regards
    Hemant Gaikwad

  • Link between vbpa and vbak tables

    Hi,
    I would like to know the link between VBAK and VBPA tables.
    VBELN field in both these fields are the same?
    If I give the VBELN field got from the VBAK table into the VBPA table will I get the  customer number(KUNNR) of that particular SAles document?
    Thanks & Regards,
    Soumya.

    You can get Kunnr directly from the VBAK table, if you wanna do the Join still you can go forward and do it there is no harm but remeber to give the Partner Function(PARVW) as well as VBELN.
    Hope That Helps
    Anirban M.

  • Link betwwen KONA and VBRK/VBRP

    Hi
    please suggest me the link between KONA and VBRK/VBRP and
    KONP and VBRK/VBRP
    I want to give link of rebate agreement and invoice no/Inv Qty
    My requirement is I want a report where i can see Under one Rebate agreement ,how many Commercial  Invoice use
    e.g.  Rebate Agreement no -125 ( for 10 Rs / unit)
    I have created 10 Invoice for 10 qty each so accrual Amount is 10* 10= 100
    I want such report where for agreement No 125- 10 Invoice No should be reflected.
    I don't want to go into VBO2 and go to verification level that concept i know
    i want one report where i will see all
    Regards
    Hemant

    You can go via KONH - KONV to VBRP but you will have big performance issues especially with the KONV table when you enter the condition record number from KONH only.
    Much easier go to KONH enter your Agreement number. Get the KNUMH from your rebate agreement and enter it in Table S136. This will give you all the invoices associated with your rebate.
    Good Luck.

  • Link between VBRP and KONV

    hello,
        any idea for the link between VBRP and KONV tables ?
    I am fetching vbeln from vbak and based on that i am getting matnr and quantity details from vbrp now i want to get condition type and tax code details from konv.how to link it?
    regards
    Soniya.

    KONV (condition table) is linked to VBRK (Billing: Header data) by the following
    VBRK-KNUMV = KONV-KNUMV
    and VBRK (Billing: Header data) is linked to VBRP (Billing: Item data) by the following
    VBRK-VBELN = VBRP-VBELN
    I believe you can can fetch data from VBRP using for all entries.
    Then fetch the data from KNOV table using the above given link and then modify the required internal table to retrieve the required result.
    Hope it helps

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • Link between sd and pp

    hi all,
      i have a problem regarding relation or link between sales and production order. i have to fetch production order number related to sales order number. i have checked in the table AFPO that is production order item table , there is field AFPO-KDAUF and AFPO-KDPOS ie, sales order and sales item. but when i see these two fields there is no data into the field so how can i get data into the table related to production order.can anyone help me on this issue.

    Please refer to the below links -
    https://forums.sdn.sap.com/post!reply.jspa?threadID=309885
    Integration points with MM/IM and PP are some of the following -
    When a Production order is created and released a reservation gets created for the materials in BOM
    When the reservation is created and materials are posted against the reservation with mvt type 311 these are transferred to the respective location.
    When a GR is posted with mvt type 101, the Finished or Semifinished goods are posted to the respective storage location and inventorized.
    When a consumption is posted with mvt type 261 then stock will get reduced in resepective storage location.
    When a batch determination is done in a production order basing on the batch search strategy and sort rule material, quantity and batch are selected.
    If WM is configured an associated internal movement for all the above movement types will be posted.
    During MRP, BOM which is a master data for PP is used to calculate the dependent requirements of materials.
    During availabilty check of a production order basing on the availability check configured materials will be selected and checked.
    Hope the above may help you.

  • 'Is there a link between OLM and iProcurement'

    I have been asked 'Is there a link between OLM and iProcurement'? The person posing the question is wanting to create trainers as suppliers and I know that the supplier information is shared between OLM and the A/P, A/R and G/L modules and I presume that the link to iProcurement will be via one of these modules however is there a more direct vanilla link between OLM and iprocurement?
    Any help would be great
    Thanks
    DM

    I am afraid there is no link between the iProc and OLM.
    The closest that apps can offer you is that your learner/delegates can be of type external i.e. being an Organization or a Customer. Hence there exists a link for your delegate to be a customer(hz_parties).
    However this might be a future integration i.e. Trainers being suppliers. I am saying so because in 11.5.10 there is a table named OTA_VENDOR_SUPPLIES that has reference to vendor_id. Currently this table is not being used by OLM.
    You may look into the code of packages OTA_VSP_API, OTA_TEA_BUS & OTA_PLE_BUS and see if Oracle's future functionality will converge towards your business requirement.
    Thanks,
    Anil Passi
    http://oracle.anilpassi.com

  • Link between Project and Sales Order

    Apart from sales order can we have a link between project and customer master ??
    I know that WBS element assignment can be made in sales order but i want to have link between
    customer master and project. I don't want any user field or text field in sales order.
    Any idea ?
    Regards
    Ashish

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • Link between Item and delivery

    Hi ,
    I want to know the link between item and deliveyr. Like for example, an sales order item ( no. 10) containing 10 quantities can be delviered 5 times( each containing 2 quantities) and line item ( no. 20) can contain one single delivery. I am working on a report where i have to link all the line item to its delivery number. I am trying to achieve this through GENIl but i am not able to indetify as to how to differentiate the different deliveyr numbers. In other words, can some one help me as to how to link the delivery number to its corresponding items?

    Document flow is stored in the table VBFA in ECC.
    VBELV fied is the sales order number and in POSNV specify the line item number and speicfy VBTYP_N = J (Delivery).
    Regards,
    Bhanu

  • Link between GTM and FSCM (sales or purchase order hedging)

    Hi all,
    I am trying for a few days to have SAP GTM working (I am in an IDES ECC6 system, and as far as I know in EhP4 version). The main goal in fact is to test the currency hedging, and therefore to the link GTM and FSCM, either single-sided purchase or sales order, or two-sided . The flow I want is the following :
    -     I buy or sell a product, in GTM, through a trading contract which generates a purchase or sales order.
    -     Automatically a currency hedge is generated to cover the risk, in FSCM, I guess in exposure management.
    -     And then the financial products (derivatives) are generated as well.
    No problem to create the trading contract, no problem to generate the sales or purchase order. But in spite of the (very little) customizing I found in u201CSAP GTM => currency hedgesu201D, and some in FSCM, in u201Ctreasury and risk managementu201D, no way to have this link between GTM and FSCM, no additional document is generated like a Forward Exchange Transaction (I guess I should have this, and then a risk exposure in FSCM).
    Would you have an idea ? Is this customizing, or an additional Business Functions or Extension Set not activated ? SAP says : u201Cit worksu201D, but canu2019t find the way.
    Thank you very much for your help, I am quite looking for this link for a few days now u2026
    Best regards
    Patrick

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • What is the link between PO and Requisition in database side

    hello friends,
    please can any one tell me that what is the link between PO and Requisition in database side. means after creating the requisition we will go for create the PO based on that requisition.
    want to know that what is the link between both in database side.
    Thanks in advance
    krish.

    Hi,
    The link is at distribution level, between:
    PO_DISTRIBUTIONS_ALL.REQ_DISTRIBUTION_ID
    and
    PO_REQ_DISTRIBUTIONS_ALL.DISTRIBUTION_ID
    Hope it helps.

  • Link Between AP_INVOICE_PAYMENTS_ALL and AP_PAYMENT_SCHEDULES_ALL

    Guys,
    I am new to Oracle Financials, can you please let me know if my understanding of link between AP_INVOICE_PAYMENTS_ALL and AP_PAYMENT_SCHEDULES_ALL is correct or not?
    SELECT ai.invoice_id
    , ai.invoice_num
    , aps.due_date
    , aip.accounting_date
    , aip.amount, aip.payment_num
    FROM ap_invoices_all ai
    , ap_invoice_payments_all aip
    , ap_payment_schedules_all aps
    WHERE aps.invoice_id = ai.invoice_id
    AND aip.invoice_id = aps.invoice_id
    AND aip.payment_num = aps.payment_num

    plz look at seeded view AP_DOCUMENTS_PAYABLE
    FROM
    ap_invoices_all ai,
            ap_invoice_payments_all aip,
            ap_payment_schedules_all aps,
    WHERE
    AND aip.invoice_id = ai.invoice_id
    AND ai.invoice_id = aps.invoice_id
          AND aps.payment_num = aip.payment_num
    ...your code a bit different by
    AND aip.invoice_id = aps.invoice_idbut it's ok
    >
    AND aip.payment_num = aps.payment_num
    Is this correct?
    >
    yes

  • Link between PR and RFQ

    Hi all,
    I looking for a table where I got a link between e PR and the RFQ which refeer to that PR. We can see in ME53N in the Status tab the RFQ number. I want to fine a table where is that link between PR and RFQ.
    We can see the link in EKPO with the PO number  only if a PO is done from the RFQ (field BANFN).
    If I look in EKPO with the RFQ number, the field BANFN (PR number) is empty.
    I don't find a table with a link between the PR and the RFQ if the PO is not done (nothing interesting in EBAN)
    May someone help me ?
    Thanks all
    Regards
    Mathieu PAINEAU

    Hi all,
    I found by myself ! This link is done in the Table EKET.
    Regards
    Mathieu PAINEAU

Maybe you are looking for

  • Adobe acrobat 9.3.2 crashes when accessing Suntrust Mortgage statement

    I am using the latest Acrobat reader. I have reinstalled it numerous times, and tried opening these documents on another computer using Adobe acrobat 9 Pro. I am using Windows 7 Ultimate 64 bits. In the end I had to download Foxit, which reads the do

  • Expdp on  cluster - how to determine where does the dumpfile go

    I'm running expdp with parallel=4 cluster=y and all works fine except that I have to go look on all 4 nodes where the file got put. Is there a sql query that would tell me on which node the file would be written to?

  • IMovie 8 (7.1) Crashes Importing DV from Panasonic PV-GS80

    iMovie 8 (7.1) crashes hard every time after importing about 30sec. of DV from Panasonic PV-GS80 via FireWire. Upon restarting iMovie, the clip is generally OK. The same H/W works every time using iMovie 6.0.4, and this video can be imported to iMovi

  • Fixed divs in IE6

    I am trying to get a fixed Div to behave the same way it does in IE7, in IE6. I realize IE 6 doesn't support the fixed property (except for the background) However, I have a book that says its possible using conditional statements in the html code an

  • Media kind locked to "music

    I have an audiobook that is misclassified as "Media Kind" "Music."  When I highlight the album/audiobook with all of its 8 tracks, right-click, and select "Get Info," and select the "Media Kind" tab, my only option is "Music."  What gives? I want to