EKKO - EKPO - EKET

Hi,
I was writing a report that selects data EKKO (Purchase Order), EKPO (Purchase Order Items) and EKET (Purchase Order Delivery Schedule). I needed to get BANFN field (Purchase Requisition) number which is related to the PO.
Both EKPO and EKET tables have BANFN fields. Firstly I selected BANFN from EKPO table, but later I noticed that for some PO BANFN is empty, but EKET includes proper BANFN number. So What is the issue hear? I will get the BANFN from EKET table, but am I going to do correct thing?
Thank you,

Hi Tuncay,
Many years later I had a similar question, relating to some very old POs in our SAP system. That is, why does the requisition number appear in the item overview of Me23n, yet EKPO-BANFN is still blank (req no. is filled only in EKET-BANFN).
I found SAP Note 201004 which seems to provide an answer: "In the new enjoy transaction Me22n field EKPO-BANFN is filled. But in the old transaction Me22 it is not filled."
I proved this was so, using an old PO with 2 items. As an example, I modified the statistical delivery date on the schedule line of both items by:
1st item: Using new transactoin Me22n
2nd item: Using old transaction Me22.
Result: EKPO-BANFN is now filled in with Req number for only the 1st item.
Cheers,
Jeff

Similar Messages

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

  • Joing of EKKO, EKPO, EKET and EKBE

    Hi Gurus,
    We want to achieve two reports with the same query. the first report is the requirement to compare the persons who created the PO and the person who received the PO (migo material doc) were same or not? To achieve this we joined tables EKKO, EKBE and EKPO in the order same order. The report started giving out only those results where EKKO - ERNAM was equal to EKBE - ERNAM. This is fine. But now we have a new requirement to create a late PO deliveries report. The users want the actual dates when the receipts were received (mat doc receipts). Because ME2N, ME2M and ME2L only give whether they are late or not but they dont give by how many days they are late. anyways to achive the late deliveries report, i joined EKET table to the as the fourth table to the already existing previous three tables. But beucase of the EKKO -ERNAM = EKBE - ERNAM criteria we are getting the resutls onyly when they match. What needs to be doen so that the both the reports can be achived from this same infoset.
    Thanks
    Anmusha

    Hi,
    If the qns is just how to de-link the join, then select the join in table join view & click on delete join. But if the qns is then how to link these 2 tables, just link them based on document number. Then you will have to add few lines of abap.
    But as i said it would be very simple to achieve this in a Z report than a infoset query, as it is more flexible. You will have to build in a OR condition, which says display the record if the name of creator & the person who posted the GR is same OR display the record if it meets your other criteria.
    So i would strongly suggest go for a Z report & discuss with your abaper.
    Regards,
    Vivek

  • Query on tables EKKO, EKPO, EKET, EKES

    Hi experts,
    I have given below flow
    select * from EKKO into table GT_EKKO
                  where ANGNR = GS_INPUT-PURCHASE_ORDER.
    select * from EKPO into table GT_EKPO
        for all entries in GT_EKKO
        where EBELN = GT_EKKO-EBELN and
              LOEKZ = space.
    SORT GT_EKPO BY EBELN EBELP.
    DELETE ADJACENT DUPLICATES FROM GT_EKPO COMPARING ALL FIELDS.
    select * from EKES into table GT_EKES
    for all entries in GT_EKPO
            where EBELN = GT_EKPO-EBELN and
                  EBELP = GT_EKPO-EBELP and
                  EBTYP = 'E1'.
    SORT GT_EKES BY J_3ASIZE.
    select * from EKET into table GT_EKET
    for all entries in GT_EKES
            where EBELN = GT_EKES-EBELN and
                  EBELP = GT_EKES-EBELP and
                  J_3ASIZE = GT_EKES-J_3ASIZE.
    SORT GT_EKET BY J_3ASIZE.
    loop at GT_EKES.
    clear LV_QUANTITY.
    READ TABLE GT_EKES WITH KEY EBELN = GT_EKES-EBELN
                                 EBELP = GT_EKES-EBELP
                                 J_3ASIZE = GT_EKES-J_3ASIZE.
    READ TABLE GT_EKET WITH KEY EBELN = GT_EKES-EBELN
                                 EBELP = GT_EKES-EBELP
                                 J_3ASIZE = GT_EKES-J_3ASIZE.
      LV_QUANTITY = GT_EKET-MENGE - GT_EKES-MENGE.
      LV_TOTAL_QTY = LV_TOTAL_QTY + LV_QUANTITY.
    endloop.
    if GS_INPUT-E1_QTY = LV_TOTAL_QTY.
    if this condition satify then I have to assign LV_QUANTITY to some other table.
    But my problem is into EKET & EKES, I am not getting same no. of recoreds...
    can any one suggest me which WHERE conditions I have to give into queries on table EKET & EKES so I can get same no. of recoreds in both of them?
    Points will be rewarded...
    Thanks in advance.
    neo S.

    HI,
       its not necessary to have equal number of entries in two table.. a scheduleing agreement  and vendor confirmation is different.
    One suggestion.. when you are using for all entries ensure that you have to check that that table is not empty example .
    if not gt_ekpo[] is initial.
    select * from EKES into table GT_EKES
    for all entries in GT_EKPO
    where EBELN = GT_EKPO-EBELN and
    EBELP = GT_EKPO-EBELP and
    EBTYP = 'E1'.
    endif.
    thanks
    Mahesh

  • 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

  • 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

  • What are the common fields in table KONV = J_1IEXCHDR,EKKO,EKPO,MSEG

    Helo everyone,
    I need wht are the common fields between table of KONV and J_1IEXCHDR,EKKO,EKPO,MSEG. Pls give me details
    thanks in advance
    suresh

    check out LIFNR,KUNNR ETC

  • ABAP 7.01 Trial Version- No Business Tables( lfa1, ekko,ekpo,kna1 etc)

    Hi,
    I have installed the ABAP 7.01 trial version from sdn. I have the following queries:
    1) There are no business tables like lfa1, ekko,ekpo etc within the ABAP dictionary. Can somebody please guide me how to get the tables. Please note that I didnt the max DB in the complete package. Do I need to install that for the tables.
    2) There were 2 rar packages that were downloaded. Do we need to extract both of them and run the extract for both of them as both of the folders appeared to be the same to me.
    3) Do we need an internet connection in order to start the SAP Management Console . I found that it doesnt turn green without plugging in the internet wire.
    Please answer the above three queries so that I can be completed with my installation.
    Thanx in advance.
    Jayant

    Hi Jayant,
    Check out these links:
    1. [data for minisap|data for minisap]
    2. [http://www.heidoc.net/joomla/development-mainmenu-31/22-sapxslt/19-minisap|http://www.heidoc.net/joomla/development-mainmenu-31/22-sapxslt/19-minisap]
    3. [http://help.sap.com/saphelp_nwce71/helpdata/en/44/c707c053550f2ce10000000a1553f7/frameset.htm|http://help.sap.com/saphelp_nwce71/helpdata/en/44/c707c053550f2ce10000000a1553f7/frameset.htm]
    Regards,
    Norman

  • 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

  • No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n

    No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n.
    IN ST05 I set a filter for ME21N and executed transaction to create a Purchase Order and then checked
    ST05 but there is  NO insert for EKKO or EKPO??
    How Do I find in which columns of EKKO and EKPO data is inserted in ST05?
    Edited by: DeepakNandikanti on Apr 28, 2010 8:27 AM

    Hi,
    I tried in my system and I can see INSERT statement on EKKO and EKPO tables. What exactly you are looking for? Some one else might have switched on the trace at the same time. Can you try again and see.
    ST05=>Switch on trace
    ME21N=>Create PO.
    ST05=>Switch off and display trace.
    In trace list search for EKKO and EKPO.
    Column names are not shown in the trace list. It is the SQL trace and column list is generated dynamically like :A0, :A1....
    @ Suhas,
    That might be because the tables are updated via BAPIs ... Do you think SAP uses direct update statements on the DB tables ??
    I didn't get above statement. Is there any other way of updation that happens when using BAPI? I believe that, even in case of BAPI there will be update task FMs called during database update. Please correct if i got it wrong.
    Thanks,
    Vinod.

  • 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

  • Extractor for Purchasing Conditions for tables EKKO, EKPO and KONV

    Hi Experts,
    I want to know if there is an Extractor for Purchasing Conditions with fields in tables of Origin: EKKO, EKPO and KONV.
    Or, at least an extractor with the table KONV.
    Or, how I can look for it.
    Any feedback, will be really apreciated.
    Thanks in advance

    Hi David,
    Adding to what said above.
    Observe the Fileds in the Datasources and the details.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5c/8ea0e626e442efb109232830faded9/frameset.htm
    Regards,
    Ram.

  • Standard function modules for selection from vbak/vbup/ekko/ekpo

    hi experts ,
    do you know if there is an existing standard function modules for selection from vbak/vbup/ekko/ekpo.
    please help

    Hi,
    for VBAK
    ADSPCM_READ_VBAK               Read VBAK (with SPEC2KM-data)
    PRS_GET_GLOBAL_VBAK            Get global structure VBAK
    Regards,
    Jyothi CH.
    Edited by: Jyothi Chinnabathuni on Feb 23, 2009 2:46 PM

  • Similar fields in table CAWN with ekko,ekpo,mara,marc,makt

    hi ppl,
             I have a requirement in which atwrt field has to be displayed.so i need a link or similar fields in cawn table with that of ekko,ekpo,mara,marc,makt,..iam unable to find the link between these tables with that of CAWN..

    Hi,
    Follow the below procedure For all the tables with CAWN table. You will come to know the relation.
    1. Use SQVI transaction,
    2. Create a View
    3. Enter title,
    4. Choose the Data source as Table Join
    5. Now use Insert table option.
    6. And insert the tables which you want. It will propose the relation between them.
    Hope it will be useful for you. If any issue let me know.
    Thanks
    Nitesh

Maybe you are looking for

  • Dimension Profit Center in 8.8

    Hi all! In customer database, they used localization in INDIA SAP 2005B They have 2 dimension, and Item code will link to 2 Dimension by one UDF on Item master data. Ex:  Item A , there are 2 UDF which have value( AAA| BBB)  the same with Profit cent

  • Send FYI notification after workflow is approved

    I need to configure the system to trigger an FYI notification after a termination workflow has been approved by all approvers. This notification is based on checking the terminated employee's record for a credit card indicator. The recipient of the e

  • Not all commands work in CC

    Good grief this this is a dog. I had to go reinstall CS6. Command-S C and R centers and flushes text right. Command-S L does nothing. I'm more than a little frustrated with CC ID right now. This on time of changing doc size doesn't leave art on all p

  • Premiere pro panel grid which was working on CC7.* does not show on CC 2014

    We are having a working Premiere pro CC 7.* version, which is loading our web page in an I frame to load the panel contents. But with the new Premiere pro CC 2014 the panel is not showing the webpage grids, button clicks are not working. Please help.

  • App to show ELECTRICITY CURRENT IN (ampere)

    i'm looking an app which can show the information about ELECTRICITY CURRENT IN (ampere) when the ipad is being charged. is there any ? really appreciate if there is any help. thanks very much.