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.

Similar Messages

  • Linking between PP and SD tables

    Hai friends,
    I want one link between PP and SD tables. My requirement is i have planned order PLAF table. i want to link Sales table. Please guide me.
    Thanks and Regards
    visvanath

    Hi
    You can simply link the Sales order No and ITEM
    VBAP-VBELN and VBAP-POSNR with the PP order item table
    AFPO-KDAUF and AFPO-KDPOS and get the Pp related info
    or in Sales tables there is a field called AUFNR in VBAP
    use that for PP order number
    SD tables
    http://www.erpgenie.com/abap/tables_sd.htm
    PP tables
    http://www.erpgenie.com/abap/tables_pp.htm
    Regards
    Kiran Sure

  • Link between AUFK and BKPF table

    Hi all,
    Can anyone tell me the link between AUFK and BKPF table.
    Thanks in advance
    Regards
    Neha Kapoor

    hi neha ,
    1.first u have to get MBLNR from AUFM for that order
    2.Next u have to call FM
    <b>AC_DOCUMENT_RECORD</b>
    I_AWTYP                         MKPF--->Constant
    I_AWREF                         4900003215--->MBLNR
    I_AWORG                         2004--->Year
    I_AWSYS
    I_AWTYP_INCL
    I_AWTYP_EXCL
    I_BUKRS
    I_VALUTYP                       0
    X_DIALOG                           X
    then u will get the Accounting Documents.
    regards
    prabhu

  • Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    you can link
    OOH.invoice_to_org_id=CUST.cust_account_id   -- invoice customer
    OOH.sold_to_org_id=CUST.cust_account_id   -- sold to customer
    OOH.ship_to_org_id=CUST.cust_account_id   -- ship to customer

  • Link between AFVC and EBAN tables (material report)

    Friends, wanted to check if anyone can provide assistance on table links between AFVC and EBAN.  The requirement is to track material/service quantity, price, etc in comparison with plan version versus PR, PO, GR, etc.  tried retrieving object numbers of WBS and activities using 'get proj info'  bapi and tried passing them in tables COSP/EBAN/COKEY but the essential link between material assigned to network activity and the PR is missing..
    Thanks in anticipation,

    Hi,
    Did you try the link including EBKN. Basically you can pass the network / WBS number in EBKN and get teh PR number and use this detail in to the item table of PR.
    Regards
    Sreekanth

  • Link between PO and AP tables

    Hi,
    I am trying to modify a query by trying to link AP and PO tables. Plz let me know the columns I can use for linking the tables (it can PO_HEADERS, PO_DISTRIBUTIONS or others in PO, it can AP_INVOICES, AP_CHECKS, AP_INVOICE_PAYMENTS or others in AP). The thing is I am unable to find two columns which are not null in both the columns. I see a link between po_distribution_id in both modules but in AP module it is not mandatory to have a value.Similar is the case with PO_HEADER_ID.
    The option of using the outer joins when the query is run for the PO and AP link with one of the above two columns is not giving the expected results.
    Any solution(s) to the issue.
    Sreekanth

    Hi, you can link AP and PO tables in this way: please consider for the AP side table AP_INVOICE_DISTRIBUTIONS_ALL, where you will find all Invoices' distributions. In this table there is a field called PO_DISTRIBUTION_ID that is the right link to PO.
    Hope this helps
    Regards
    Riccardo

  • Link between Prps and Vbap table

    Hi all,
    How can i link PRPS and VBAP table .
    Please suggest.
    Thanks and regrads
    Neha Kapoor

    hi,
    neha try this.
    PRPS-PSPNR = VBAP-PS_PSP_PNR
    rgds
    anver

  • Link between Anep and bseg table.

    How are ANEP and BSEG table related functionally? I am using the ANBTR field from ANEP table and retrieving the HKONT(G/L account) field from BSEG. I want to ask if entry for some assete exists in ANEP table then is it necessarty to have G/L account in BSEG table corresponding to this asset in ANEP. I am joining the two tables on BUKRS, BELNR, BUZEI and GJAHR fields.

    Hi
    For BSEG you cannot inner join. Its a cluster table and u dont have option to inner join. Instead take neccessary record in BSEG with valid condition.

  • Link between PO and Invoice tables

    Hi,
    I'm desperately trying to find a table that links an invoice to a purchase order. I've been searching on the forum and all the suggestions don't seem to hold the relevant information.
    Any advice would be appreciated.
    John

    Hi John,
    Use
      CALL FUNCTION 'BBP_PD_INV_GETDETAIL'
        EXPORTING
          i_object_id = lv_inv
    object_id
        IMPORTING
          e_header    = ls_header
        TABLES
          e_item      = lt_item.
    u will get purchase order in  ls_item-be_refob
    Regards,
    Neelima

  • Link between GLPCA and PNWTYH table

    Hi,
    Could anyone pl tell the field which links table PNWTYH and GLPCS.If not direct,how can these two tables shall be linked through some other tables.
    SB

    Sorry Pete,
    Read as GLPCA.
    Regards
    SB

  • What is the link between EKPO and KONP tables

    Dear All,
    Please I want to access KONP table based on purchasing document number(Ebeln).
    I have to pick kbetr field from konp and I know the kshcl field.
    But to access the Konp table I have only EBELN with me.
    Regards
    Mave

    Hi Mave ,
    There is a table <b>A016</b> which links Purchase Order Items to condition record number KNUMH. From A016 you can select a record corresponding to PO Number & Item Number. Using this KNUMH you can select from KONP.
    For header conditions you can use A019.
    Cheers

  • Link between  t685a and  knov table

    hi
    i want all the entries in knov table where t685a-kmanu is 'D'
    help plz
    sravz

    Hi Shravanthi,
    Define two internal tables i_konv and i_t658a with the fields as per your requirement and do the selections as follows.
    Select  KAPPL
    KSCHL     
    KRECH     
    KZBZG     
    KNTYP
    From t685a
    Into table i_t685a
    Where kmanu = 'D'.
    If i_t685a is not initial.
    Select (name of the fileds you want from KONV table)
              Into table i_konv
              For all entries in i_t685a
              Where   KAPPL = i_t685a- KAPPL.
    KSCHL = i_t685a- KSCHL     
    KRECH = i_t685a- KRECH     
    KZBZG = i_t685a- KZBZG     
    KNTYP = i_t685a- KNTYP
    Hope this will help.
    Regards,
    Deepa Kulkarni

  • Link between ekko and vekp table

    Hi All,
    Can any let me know the relation ship or the connectivity for
    purchase order (ekko- ebeln) and Handling unit (vekp-exidv).
    i need to fetch the hu details based on the purchase order.
    required urgently.
    regards,
    Ak
    Edited by: arvind on Apr 11, 2008 9:10 AM

    hi neha ,
    1.first u have to get MBLNR from AUFM for that order
    2.Next u have to call FM
    <b>AC_DOCUMENT_RECORD</b>
    I_AWTYP                         MKPF--->Constant
    I_AWREF                         4900003215--->MBLNR
    I_AWORG                         2004--->Year
    I_AWSYS
    I_AWTYP_INCL
    I_AWTYP_EXCL
    I_BUKRS
    I_VALUTYP                       0
    X_DIALOG                           X
    then u will get the Accounting Documents.
    regards
    prabhu

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

Maybe you are looking for

  • Report pl/sql function body returning query bind variable

    I really like using report with a function returning sql. I have been using something like this declare q varchar2(10000); begin q := 'select col1 from mytable .... add a dynamic where clause .... return q; end; But I thought it would be nice to stor

  • AVCHD File Structure From MAC to PC

    Hello, I know this is sort of off topic but I need the expertise of this forum.... I am the videographer (mac user) for a speaking group and have to film speeches 5-7 minutes in length each week. The problem is how to get the videos to each person wi

  • Satellite A100 - message: Toshiba Power Saver already started

    When I switch on with mains power connected, I get a false error message which says "Toshiba Power Saver already started". How do I get rid of this message permanently?

  • How too save multi page reports as .tif?

    It seems like I had this one figured out at one time but now I don't see it. How do I save a multi page report, (the plots) as a .tif file?

  • A Free Responsive Adobe Captivate 8 Game Template

    As you may know, eLearning Templates can really save you time in your development. I quickly wanted to share with the Adobe Community a Responsive template that is free for everyone. I really think if you want to create an awesome eLearning Game, or