Datasource for the table EKKO,EKPO, EKBE, BKPF, BSEG

Hello Gurus,
I am having a requirement wher i need to create report for the fields coming from the above tables.
pls let me know if der is any such data source from which i can get data for all the tables EKKO,EKPO,EKBE,BKPF,BSEG.
If der is no single data source then how i have to approach for the same using the standard datasource.
and what should be the link info objects between them if iam going with the separate one.
Regards

Thanks for ur responses,
Is the Belnr in the EKBE table is same as the BELNR in BKPF table of Data source (0FI_GL_4)  ???
When i cross verifed i found multible record in BKPF w.r.t EKBE belnr.
Whats the reason for this ? If i created a infoset by mapping the BELNR AND GJAHR of EKBE and BKPF. Do i get the correct record or i have to handle it by some exception.
Also pls let me know how the MM and FI flow related , I means once the MIRO ie billing document is created what happen in the FI side ??
pls update with ur suggestions.
regards

Similar Messages

  • Finding Sum of grouped lines / Tables EKKO, EKPO

    Hi, am using the following tables:
    TABLES: ekko,ekpo.
    with Inner Join
    select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
       into CORRESPONDING FIELDS OF TABLE itab from ekko
        inner join EKPO on ekPOEBELN = ekkoebeln.
    end-OF-SELECTION.
    Basically i want to group the result of this SQL statement by Purchasing Doc (ekko~ebeln) and display the
    sum of Gross value (ekpo~brtwr) for the line items of  each Purchasing Doc.
    Note: i want the Purchasing Doc to appear one time only in the report
    i have tried the following :
    select  ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam sum(  ekpobrtwr )
       into  CORRESPONDING FIELDS OF TABLE itab from ekko
       inner join EKPO on ekPOEBELN = ekkoebeln
    WHERE ekkobukrs IN S_bukrs AND ekkobsart IN s_bsart
    Group By  ekkoebeln ekkobukrs ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekko~ernam.
    then loop through the ITAB:
    LOOP at itab.
    write:/ itab-bukrs under 'Company Code',
             itab-ebeln UNDER 'PO-Number',
             itab-aedat UNDER 'Date' ,
             itab-bsart UNDER 'Doc-Type'  ,
             itab-ekgrp UNDER 'Purchase-Grp' ,
             itab-lifnr UNDER 'Vendor' ,
             itab-waers UNDER 'Currency',
             itab-wkurs UNDER 'Rate' ,
             itab-brtwr under 'Gross Value',
             itab-ernam UNDER 'Created By'.
    ENDLOOP.
    but it is not working with me, am not able to show the result of sum(  ekpo~brtwr ) am getting 0 in all lines
    thanks a lot for your help

    " My Full Code.
    TABLES: ekko,ekpo,ekbe,rbkp.
    data: BEGIN OF itab OCCURS 0,     "EKKO TABLE"
          inco1 like ekko-inco1,
          inco2 like ekko-inco2,
          bukrs like ekko-bukrs,
          ebeln like ekko-ebeln,
          aedat like ekko-aedat,
          bsart like ekko-bsart,
          ekgrp like ekko-ekgrp,
          lifnr like ekko-lifnr,
          waers like ekko-waers,
          wkurs like ekko-wkurs,
          ernam like ekko-ernam,
          BRTWR LIKE ekpo-brtwr,
      end of itab.
    SELECT-OPTIONS : s_bukrs FOR itab-bukrs OBLIGATORY,
                     s_ebeln for itab-ebeln ,
                     s_aedat FOR itab-aedat ,
                     s_bsart for itab-bsart ,
                     s_ekgrp FOR itab-ekgrp ,
                     s_lifnr FOR itab-lifnr ,
                     s_budat FOR jtab-budat ,
                     s_bewtp for jtab-bewtp .
    DATA ProceesITAB LIKE SORTED TABLE OF ITAB WITH UNIQUE KEY TABLE LINE.
    AT SELECTION-SCREEN on s_bukrs.
    START-OF-SELECTION.
    select ekkobukrs ekkoebeln ekkoaedat ekkobsart ekkoekgrp ekkolifnr ekkowaers ekkowkurs ekkoernam ekpobrtwr
       into CORRESPONDING FIELDS OF TABLE itab from ekko
        inner join EKPO on ekPOEBELN = ekkoebeln.
      end-OF-SELECTION.
    LOOP at itab.
    write:/ itab-bukrs under 'Company Code',
             itab-ebeln UNDER 'PO-Number',
             itab-aedat UNDER 'Date' ,
             itab-bsart UNDER 'Doc-Type'  ,
             itab-ekgrp UNDER 'Purchase-Grp' ,
             itab-lifnr UNDER 'Vendor' ,
             itab-waers UNDER 'Currency',
             itab-wkurs UNDER 'Rate' ,
             itab-brtwr under 'Gross Value',
             itab-ernam UNDER 'Created By'.
    ENDLOOP.
    TOP-OF-PAGE.
    write:/70 'Company'.
    uline.
    skip.
    write:/5 'Company Code',25 'PO-Number',40 'Date',55 'Doc-Type',70 'Purchase-Grp',85 'Vendor',100 'Currency',115 'Rate',125 'Created By',
    140 'Gross Value'.
    ULINE.
    SKIP.
    Edited by: YasinN on Mar 24, 2010 9:45 AM

  • How to find out the link for the tables for sub contract PO

    Dear All,
    How to find out the link for the tables for sub contract PO, I am looking for the fields Material, Unit, Batch no., quantity.
    Please provide the solution for the Table related to ABAP.
    Thanks,
    V.V.

    Hi,
       Make use of the table EKKO, EKPO...
    For subcontract please select the option in EKPO-PSTYP.
    Regards
    GK.

  • In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN

    In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN tables.
    But there are entries for many other tables.
    I have got objects for EKKO,EKPO,EKBE,EKET,EBAN tables from TCDOB tables.

    Hi Avishek,
       Let me explain the meaning of Change pointers.
    If you have entry in BDCP table for MARA, that means everytime a material is created in MARA table in one system, a corresponding Material is created in another system which is connected to the current system VIA ALE. and whenever you change that material in your source system, then the change is propagated to the target system also(If you have done the change pointer set up).
    The you do not have entries for other tables becuase the configuration for change pointers is not done for those Objects(In your case the change pointers are not defined for Purchase Orders and hence no entries in BDCP table).
    Regards,
    Ravi kanth Talagana

  • Buffered Function Modules for EKKO, EKPO, EKBE, EKES etc

    Hi,
    Could you please let me know of some buffered function modules for reading data from EKKO EKPO EKBE EKES EKET?
    Regards,
    Suraj

    Try BAPI_PO_GETDETAIL  , BAPI_PO_GETITEMS  , BAPI_PO_GET_LIST

  • Link of table EKKO,EKPO,EKET,KONV

    Hi Experts,
    Now , i am writing a program to print purhchase order, and i met 2 problems.
    1.why it is different price between 'net price' and 'condition price'? sometimes, they are different.
    2.the net price always is wrong. so i need to get the price in condition tab in item detail.
    i sent a OSS to SAP, they told me the talbe KONV is a cluster table, so it can not be join in .
    but i need get the exact and correct price from KONV,
    would somebody please give me the link of table EKKO,EKPO,EKET and KONV?
    our system is AFS SAP. we use me23n to display the purchase order.and there is a request we must group the item by MATNR  with the same price and ex factory date (j_3aexfcp).
    thanks

    thanks first,
    yes , i fetch the data from EKKO,EKPO,EKET first, and alreayd group by them as our user request,but the problem is i can not get the item number (kposn) exactly,  the following are the code. i do not add the item number in it, it will make the wrong result .
    after group them, some different items were grouped,so i do not know how to fetch the item number exactly.
    SELECT DISTINCT EKKOEBELN EKKOBEDAT EKKOLIFNR EKKOZTERM EKKOWAERS EKKOVERKF EKKOTELF1 EKKOINCO1 EKKOINCO2 EKPOMATNR EKPOTXZ01 EKPOJ_3APGNR
    EKPOJ_3AVDAT EKPOj_3aexfcp EKPOBPRME EKPOPEINH EKETEINDT Sum( EKETMENGE ) AS SumOfMENGE EKETMEINS EKETJ_3ASIZE EKPOLOEKZ ekkoknumv
    Avg( EKETJ_3ANETP ) AS AvgOfJ_3ANETP Avg( ekponetpr ) as Avgofnetpr Sum( EKETJ_3ANETW ) AS SumOfJ_3ANETW J_3APGENJ_3AKORD1 J_3APGENJ_3AKORD2 J_3APGENJ_3AKORD3 J_3APGEN~J_3AKORDX
    INTO (EKKO_EBELN,EKKO_BEDAT,EKKO_LIFNR,EKKO_ZTERM,EKKO_WAERS,EKKO_VERKF,EKKO_TELF1,EKKO_INCO1,EKKO_INCO2,EKPO_MATNR,EKPO_TXZ01,EKPO_J_3APGNR,
          EKPO_J_3AVDAT, EKPO_j_3aexfcp, EKPO_BPRME,EKPO_PEINH,EKET_EINDT,SUMOFMENGE,EKET_MEINS,EKET_J_3ASIZE,EKPO_LOEKZ,ekko_knumv,
          AVGOFJ_3ANETP,AVGOFNETPR,SUMOFJ_3ANETW,J_3APGEN_J_3AKORD1,J_3APGEN_J_3AKORD2,J_3APGEN_J_3AKORD3,J_3APGEN_J_3AKORDX)
    FROM
    ( ( EKKO INNER JOIN EKPO ON ( EKKOEBELN = EKPOEBELN ) AND ( EKKOMANDT = EKPOMANDT ) ) INNER JOIN EKET ON ( EKPOEBELP = EKETEBELP ) AND ( EKPOEBELN = EKETEBELN ) AND ( EKPOMANDT = EKETMANDT ) ) INNER JOIN J_3APGEN ON ( EKET~J_3ASIZE =
    J_3APGENJ_3AKORDX ) AND ( EKPOMANDT = J_3APGENMANDT ) AND ( EKPOJ_3AVDAT = J_3APGENJ_3AVDAT ) AND ( EKPOJ_3APGNR = J_3APGEN~J_3APGNR )
    GROUP BY
    EKKOEBELN EKKOBEDAT EKKOLIFNR EKKOZTERM EKKOWAERS EKKOVERKF EKKOTELF1 EKKOINCO1 EKKOINCO2 EKPOMATNR EKPOTXZ01 EKPOJ_3APGNR EKPOJ_3AVDAT EKPOj_3aexfcp EKPOBPRME EKPOPEINH EKETEINDT EKETMEINS EKETJ_3ASIZE EKKOMANDT
    J_3APGENJ_3AKORD1 J_3APGENJ_3AKORD2 J_3APGENJ_3AKORD3 J_3APGENJ_3AKORDX EKPOLOEKZ ekkoknumv
    HAVING
    EKKOEBELN = ZEBELN AND EKPOMATNR = IT_EKPO1-MATNR AND EKPOj_3aexfcp = it_ekpo1-j_3aexfcp AND EKPOLOEKZ <> 'L'
    ORDER BY EKET~J_3ASIZE.
    after fetch the date , i select the KBETR from KONV, the item number is the last important problem.
    select single kbetr into kbetr from konv where knumv = ekko_knumv and krech = 'C' and kposn = ?(i can not fetch exact item number) and ZAEHK = eket-etenr .
    any further reply? thanks very much for your reply.

  • How to link tables EKKO, EKPO, EIKP and EIPO

    What I'm trying to do is create a view based on these four tables. EKPO contains multiple rows with the same values for EBELN. EKKO contains all distinct values for EBELN. I am trying to pick up all rows from both tables where EBELN in EKPO is the same as in EKKO. This is simple enough for a select statement to handle, without creating a view. The tricky part is linking the relevant rows selected from EKKO and EKPO to EIKP and EIPO. I tried using EXNUM to link EKKO, EIKP and EIPO, but I'm not sure that EXNUM contains distinct values for all 3 tables. In the case of EIKP it doesn't matter because the values for the fields I want (VORNU and VORNA) will be the same for the rows selected from EKKO and EKPO. The problem is with linking EIPO to my selections. If I knew that EXNUM was distinct for all rows in EIPO there would be no problem. However, I have seen some cases where multiple rows in EIPO have the same values for EXNUM. If I am using EXNUM in EIPO as a key field I have no way of being sure that the fields I want to pick up from EIPO (NACNU, BEHOE, NACD2, PRUEL and NACN3) contain the correct values I require. An example of what I am trying to do might make this clearer:
    Table EKKO:
    EBELN     BEDAT      WAERS
    420000001 10.08.2007 USD
    Table EKPO:
    EBELN     WERKS MATNR MENGE NETWR NETPR TXZ01
    420000001   3500  m1    q1    nw1   cnf1  mat1
    420000001   3500  m2    q2    nw2   cnf2  mat2
    420000001   3000  m3    q3    nw3   cnf3  mat3
    Table EIKP:
    VORNU  VORDA
    125/45 12.08.2007
    Table EIPO: (Corresponding to the above three rows in EKPO)
    NACNU BEHOE NACD2      PRUEL      NACN3
    1234  1001  30.08.2007 28.08.2007 xx
    1235  1002  27.08.2007 29.08.2007 yy
    1236  1003  18.08.2007 16.08.2007 zz
    So basically, given the above table entries, I want that the result of my selection should be:
                   | ROW1        | ROW2       | ROW3
    EBELN:   |  420000001   |  420000001  | 420000001
    BEDAT:   |  10.08.2007   |  10.08.2007  | 10.08.2007
    WAERS: |  USD             |  USD           | USD
    WERKS: |  3500             |  3500           | 3000
    MATNR:  |  m1               |  m2              | m3
    MENGE: |  q1                |  q2               | q3
    NETWR: |  nw1              |  nw2             | nw3      
    NETPR:  |  cnf1              |  cnf2            | cnf3
    TXZ01:    |  mat1             |  mat2           | mat3
    VORNU: |  125/45           |  125/45        | 125/45
    VORDA: |  12.08.2007     |  12.08.2007   | 12.08.2007
    NACNU: |  1234              |  1235            | 1236
    BEHOE: |  1001              |  1002            | 1003
    NACD2:  |  30.08.2007     |  27.08.2007   | 18.08.2007
    PRUEL:  |  28.08.2007   | 29.08.2007   | 16.08.2007
    NACN3:  |  xx               | yy                | zz
    Sorry for the extremely long post. If anyone can shed some light on this I'd really appreciate it. Thanks.
    Kal

    select req. fields + a~exnum
    from ekko as a
    inner join ekpo as b
    on aebeln = bebeln
    into table gt_ekko_ekpo
    where.........if u any conditions...
    select req.fields from
    eikp
    into table gt_eikp
    for all entries in gt_ekko_ekpo
    where exnum = gt_ekko_ekpo-exnum.
    select req.fields
    from eipo
    into table gt_eipo
    for all entries in gt_eikp
    where exnum = gt_eikp-exnum.
    and also ekpo and eipo are line items tables , so for each exnum, will have multiple lines items in eipo table.
    imp. the above and check whether, getting the req. result or not.
    next in view , maintain rel. among these 4 tables.
    ekko -ekpo, ekko-eikp, eikp-eiko.

  • How to write SELECT statement using tables ekko,ekpo and eket?

    Hi,
    I got a problem in  performance tuning using below tables?
    how to write SELECT statement using tables EKKO,EKPO and EKET and in conditon ( WHERE clause)  use only fields 
                        ekko~ebeln       IN ebeln
                       ekko~loekz       EQ ' '
                       ekko~lifnr       IN lifnr
                       ekko~ekorg       IN ekorg
                      ekko~ekgrp       IN ekgrp          
                       ekpo~werks       IN werks
                       ekpo~pstyp       EQ  '3'
                       ekpo~loekz       EQ  space
                       ekpo~elikz       EQ  space
                       ekpo~menge       NE  0
                     eket~rsnum       NE space.
    Thanks in Advance.
    bye.

    Hi,
    ekko~ebeln IN ebeln
    ekko~loekz EQ ' '
    ekko~lifnr IN lifnr
    ekko~ekorg IN ekorg
    ekko~ekgrp IN ekgrp
    ekpo~werks IN werks
    ekpo~pstyp EQ '3'
    ekpo~loekz EQ space
    ekpo~elikz EQ space
    ekpo~menge NE 0          " Remove this from where clause
    eket~rsnum NE space.    " Remove this from where clause
    ' instead delete the entries after fetching into the table
    DELETE it_itab WHERE menge EQ '0' AND rsnum EQ ' '.
    Regards
    Bala Krishna

  • Blank fields in the table EKKO

    Hi,
    We have two strange records in the table EKKO. Only the following
    fields have data.
    MANDT, EBELN and MEMORY.
    All the other fields are blank.
    Could you please provide any insights as to how this record was saved?
    Regards
    Deepak

    Hi,
    Thanks for your answers. But even when we save an incomplete PO, the system by default saves the Doc. category, Document type, Created on, Created by and other data.
    In the issue that I have only the Client, Purchasing doc.and Incomplete flag is set.
    All the other fields are blank.
    Regards
    Deepak

  • Tables EKKO EKPO and KONP

    Hi,
        I want to link tables EKKO, EKPO and KONP. Actually i checked this tables  but i could not find link between EKKO and KNOP. Please help me in this regards. Actually we are maintaining the tax codes in the PO. I want to print different taxes in PO out put like BED, EDUCATION CESS, CST, VAT.
    NK

    Hello,
    You can link the tables by
    EKKO- KNUMV = KONP-KNUMH.
    And
    EKKO-EBELN = EKPO-EBELN.
    Hope it helps.
    Regards,
    Mansi.

  • Master data datasource for the point of delivery and installation.

    Hi,
    Can any one help me with the Master data datasource for the point of delivery and installation.
    Currently i am using ouc_instfacts for installation facts.
    With Thanks& Regards,
    Shakthi.

    Hi Shakti,
    I guess you are asking for assignment of installation to POD (table euiinstln)?
    Then you should check 0UC_PODINST_ATTR.
    Best regards
    Harald

  • ESLL - Datasource for this table ESLL???

    Hi gurus!
    Somebody knows any datasource for ESLL table???
    Thanks a lot!
    BR

    Hi Leticia,
    No there is not unfortunately, suggested solution is to create a DB view on tables like ESKN,ESSR,ESLL,EKPO (SE11) so data can be linked up properly to Purchasing doc and then build a generic Datasource on top of that (RSO2).
    Hope this helps.
    Grtx
    Marco

  • How to look for the Table Name

    Hi Friends,
    Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
    Thanks for the assistance.
    Regards

    Hi Friend,
    If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
    Abap Dictionary > Fields > Table Fields.
    Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
    Regards,
    Jigar

  • Creation of transaction code for the table created

    Hi Experts,
    Can any one help me out with the steps that are used for creation of transaction for the table using the transaction SE93, i have created the table maintance generator.

    Hi
    Check TSTCP table  for the existing t-codes and for creating check this link
    Re: Transaction Code Creation for a Table/View
    Regards
    Pavan

  • Activate change logs for the table V_T007K

    Hi,
    Change log check box is activated in table and change logs is activated in system. But still I am not able to view any change logs recorded for the table V_T007K using SCU3 transaction.
    I tried by changing some data and than checked the SCu3 transaction. nothing is recorded against the table.
    Please let me know what needs to be done to capture the change logs for the changes done to the data in the table V_T007k table.
    Thanks in Advance.
    Thanks & Regards,
    Madhuri.

    Hi
    The table u mentioned V_T007k  is not a transparent table
    .its a view only for views u cant track changes.
    But only for transparent tables u can only track changes thru SCU3
    Also u can find the changes in a table from SAP TABLE
    CDHDR and CDPOS.
    if helpful reward me points.
    Regards
    Manas Ranjan Panda

Maybe you are looking for

  • F110 - Grouping key

    Hello, Requirement is like: when we do F110, payment should be done by Vendor and PO no. means Vendor1     PO no 1     RE document 1        for this three invoice document only one payment doc                                      RE document 2       

  • Clearing Interactive Report filters without clearing report settings

    APEX 4.0 Oracle 10g I have an IRR, the report is saved as primary for displaying 200 rows at at time for each page (Page 3) The customer can filter upon many columns and can use mutliple filters through the Action -> Filter Column. Our requirement is

  • Migration wizard help with Adobe photoshop

    Please Help I just bought a fancy new 20" IMac and successfully migrated most of the old emac information. I tried loading up my Photoshop CS with the old comp. still hooked up through Firewire, and it started just fine, but when I tried to load it u

  • 23.0.1 single file size download limit

    Can you download a single file over 4 gigabytes. Is there a limit of simultaneous files from a single website (1000+ files)

  • FCE shuts down when I import Live Type

    I have imported titles from Live Type into Final Cut Express before and have never had a problem until now. I recently purchased Jaguar and successfully downloaded the software, but since I've done that, when I import a title from Live Type, FCE shut