MCE3 and EKPO table

Hi all,
I created a query to see amount of PO's that have been created along with the value using table EKPO, EBKN and EKKO
Fields
EKPO-EBELP
EKPO-EBELN
EKPO-AEDAT
EKPO-BRTWR
EKPO-NETWR
EBKN-ERNAM
I run the query within a date range and get a result.
I then run MCE3 with the same date range and expect to get the same results but I am getting something completely different.
Any ideas why the two reports would be differnt?
Thanks in advance.

Hi Peter,
Please try to fetch KNUMV from EKKO for the respective PO.
Now the field KNUMV will be entered in the table KNOV.
From KNOV table sum of KWERT will give the total net value.
Hope that it address your concern
Regards,
Kannan

Similar Messages

  • How to correlate lips table and ekpo table?

    Hi,gurus:
    How to correlate lips table and ekpo table? We want to find the purchase order no. in the delivery table.
    Thanks in advance.

    Hi xinjiang 
    You can try using VBFA table. give input as VBELN = deliver no.,POSNN = item no.and VBTYP_N = 'J' and VBTYP_V = 'V'. Then VBELV,POSNV  will give you the purchase order no. or else you can get all the preceding documents of delivery like sales order and then input sales order and get purchase order from VBFA

  • Reg table relation BSIK and BSAK to EKKO and EKPO tables

    hi all,
    can u plz let me know how to relate BSIK and BSAK with the corresponding POs??

    Try this:
      SELECT belnr gjahr
        FROM ekbe
        INTO TABLE ekbe_int
        UP TO 100 ROWS
        WHERE ebeln = ebeln
        AND vgabe IN ('1', '2').                      "1 - GR, 2 - IR
      CHECK sy-subrc = 0.
      SORT ekbe_int.
      DELETE ADJACENT DUPLICATES FROM ekbe_int.
      LOOP AT ekbe_int INTO ekbe_wa.
        v_objectkey+00(10) = ekbe_wa-belnr.
        v_objectkey+10(10) = ekbe_wa-gjahr.           "BELNR+YEAR
        IF ekbe_wa-vgabe = '1'.
          v_reference = 'MKPF'.
        ELSE.
          v_reference = 'RMRP'.
        ENDIF.
    * Uses index BKPF~4 (4.7)
        SELECT SINGLE bukrs belnr gjahr               "Accounting Doc Header
          FROM bkpf
          INTO doc_int
          WHERE awtyp =  v_reference
            AND awkey =  v_objectkey.
        IF sy-subrc = 0.
          APPEND doc_int.
        ENDIF.
      ENDLOOP.
    This will give you the document header. You can easily get anything else you need from BSEG.
    Rob

  • Problem in Selecting the data from EKPO and KONV tables

    Hi Experts,
    Presently I am working on Report with Comparision-Sheet Between the vendor's Quotations. I have to display the Discount, Freight, Packing and Forwarding, Vat in Item level data based on the conditions made in PO.
    As per my Knowledge, Condition Types are stored in KONV Table. But there is no relation between KONV and EKPO tables.  So, I am unable to print the data for Discount, Freight, Packing and Forwarding, Vat... How can I get the values from EKPO and KONV tables?
    Thanks in Advance.
    Thanks n Regards,
    Muralikrishna.

    Don't recall if this is correct, but you may need the condition number from the header (EKKO) combined with EKPO-EBELP or other field as you key to access KONV (KNUMH and KPOSN).  My site doesn't run PP, so can't verify if the data is actually stored that, so just a possibility.

  • Relationship bw LIPS and Ekpo

    hi
    Could u pls give what is the relation (fields) bw LIPS and EKPO table
    its urgent.

    Hi,
    LIPS-VGBEL = EKPO-EBELN
    LIPS-VGPOS = EKPO-POSNR.
    Thanks,
    Anitha

  • EKPO Table adjusted in SE14 and records deleted

    Hi Team,
    We worked on enhancing the EKPO table by adding one field to CI_EKPODB table. We did a DB Adjust and selected save and activate database options. We thought we wont loose the data. But unfortunately we lost the data and we need to recover it back.
    The DB table in underlying database is generated and hence DB admin says flashback is not possible.
    1. My question is it possible to flashback the table which got generated. Meaning Will SE14 operation do a drop table and create table for modifiying and adjusting the DB table in Underlying DB. Kindly confirm.
    2. Let us know the recovery procedures for one single table which got deleted in SAP
    Regards
    Balakumar L S

    Hi Bala
    Generally this is not advisable. This could lead your DB inconsistency. You need to restore whole database backup (in another system) and export the required table data.
    Please refer this notes as well.
    594601 - Restore table in minimal copy of current database.
    Also refer this blog : Restore Table from Backup File
    Rgds
    Khris

  • SAP QUERY LOOPS AND INTERNAL TABLE

    Hi All, I have a query which i have made. It runs from Table EKPO which has PO details and what I want to do is now via ABAP Code pull through the total of goods receipt for the PO and Line Item into a field. Sounds Easy enough..Problem now,
    The table which contains the GR data is EKBE which agains a PO and Line Item can have many 101 movements and 102 movements so what I want is an ABAP Statent to basically sum up the total of 101 for the PO & LINE ITEMS and then minus this from the total of 102 for the PO & LINE ITEMS and post the result in to this new field I have created.
    I am pretty decent with ABAP Code in Querys I.e Select statements etc but from what I can see i need to create an internal table and do a loop and collect statement but I keep on failing due to not enough knowledge. Please can some one help me with this and provide me with the code and explanation as i would like to understand,
    POINTS WILL BE REWARDED
    Thanks
    Kind Regards
    Adeel Sarwar

    Hi,
    This is the full code i have entered but its not working. Any help would be appreciated. If you could rectify the code and internal tables that would be great.
    Thanks
    TABLES: EKBE.
    DATA: PurO LIKE EKPO-EBELN,
          POLI LIKE EKPO-EBELP.
    *New Table and Vars defined
    DATA:   BEGIN OF IT_EKBE,
              IT_EKBE LIKE EKBE,
            END OF IT_EKBE.
    DATA:  BEGIN OF IT_SUM OCCURS 0,
              EBELN TYPE EBELN,
              EBELP TYPE EBELP,
              DMBTR TYPE DMBTR,
              MENGE TYPE MENGE,
          END OF IT_SUM.
    CLEAR: QTYD.
    MOVE: EKPO-EBELN TO PurO,
          EKPO-EBELP TO POLI.
    SELECT * FROM EKBE INTO IT_EKBE
        WHERE EBELN = PurO
        AND   EBELP = POLI
        AND   BEWTP = 'E'
    LOOP AT IT_EKBE.
      MOVE CORRESPOING IT_EKBE TO IT_SUM.
      IF IT_EKBE-BWART = '102'.
        IT_SUM-DMBTR = IT_SUM-DMBTR * -1.
        IT_SUM-MENGE = IT_SUM-MENGE * -1.
      ENIDF.
      COLLECT IT_SUM.
      CLEAR IT_SUM.
    ENDLOOP.
    ENDSELECT.
    If sy-subrc = 0.
      QTYD = IT_SUM.
    ELSE.
      QTYD = 0.
    ENDIF.

  • DIFF: Field string ,Structure and Internal table declaration

    Hai,
           what is the diference between  Field string ,Structure in ABAP program and Internal table declaration and how it will work ?
    Thank you
    ASHOK KUMAR.

    hi,
    Look this u will get a good idea.
    *& Report  ZTYPES                                                      *
    REPORT  ZTYPES                                                  .
    * Table declaration (old method)
    DATA: BEGIN OF tab_ekpo OCCURS 0,             "itab with header line
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF tab_ekpo.
    *Table declaration (new method)     "USE THIS WAY!!!
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab
          wa_ekpo TYPE t_ekpo.                    "work area (header line)
    * Build internal table and work area from existing internal table
    DATA: it_datatab LIKE tab_ekpo OCCURS 0,      "old method
          wa_datatab LIKE LINE OF tab_ekpo.
    * Build internal table and work area from existing internal table,
    * adding additional fields
    TYPES: BEGIN OF t_repdata.
            INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!
    TYPES: bukrs  TYPE ekpo-werks,
           bstyp  TYPE ekpo-bukrs.
    TYPES: END OF t_repdata.
    DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab
          wa_repdata TYPE t_repdata.                 "work area (header line)
    Regards
    Reshma

  • EKPO table not getting updated with PR numbers

    Hi All,
    PR and PO is created in APO and then transferred to R/3 system. For all these POs, we can see the PR number in the PO display(ME23n) but when we see in the EKPO table the PR number is missing.
    Any pointers as to why this is happenning? whether any SAP notes needs to be implemented?how we can make that PR is updated in EKPO table also?
    Any feed abck will be highly appreciated.

    Hi,
    The problem with having the EKPO hold the requisition number is that you then only have the ability to store ONE PR number.
    By storing them on the delivery schedule lines you have the ability to have as many as you like and so you should be looking for these on the delivery schedule lines on the PO item and not on the item itself.
    Steve B

  • Asset management and ekpo

    Hi i am dealing with asset related tables  ( anla/anlz/anep/anek) . I want to get related purchase order for that .
    thast is I want to relate aset table and EKPO to get ekpo-ebeln .
    Please help regarding this ...............
    thanks in advance

    Hi,
    you can have both values in EKKN ( Account Assignment in Purchasing Document )
    EKKN-EBELN ( Purchase Order )
    EKKN-ANLN1 ( Main Asset Number )
    Cheers:-))
    Nelson

  • How to link EKBE and MKPF tables

    HI all
    plz help me,
    how to link EKBE and MKPF tables
    thanks
    ramesh redddy

    HI,
    EKPO-EBELN =  EKKO-EBELN  has Purchase Documnet no.
    MSEG=MBLNR = MKPF-MBLNR  has material document no
    Link MSEG-EBELN =  EKPO-EBELN ( MSEG purchase prder no and EKPO purhcase document no.)
    and you should have to add one  more table MSEG which is provide three table.
    check this link
    EKPO-EBELN = EKKO-EBELN
    MSEG-EBELN =  EKPO-EBELN
    MSEG=MBLNR = MKPF-MBLNR
    regards,
    PK.

  • How to Update EKPO table with enhancement at header level-customer data tab

    Experts,
    I have a requirement where I had to create a new button in the 'customer data' tab(header) in the ME21N/ME22N Transaction and once it gets clicked a table control will appear and in that all the line items with item no, material and plant and an additional check box will display, and once any one checks the check box against the item/material in the table control the item data with additional z fields (already created the zfields in EKPO Table) should get updated.
    Displaying Table control and item data on the click of button was successful, but once you check the check box against the item and save the PO it is not updating the z-fields in the EKPO table.
    I have implemented all the user exits , badis but no results. 
    Once you check the box in the table control against each item in the header part (Table control is in header part (customer tab)) the line item EKPO table with z fields should get updated.
    Any Clues/ideas will be appreciated.
    Thanks in advance,
    Kalikonda.

    Hi,
    Can you please share the remedy for above issue, recently we have same issue in our system.
    or please send me any supportive doc. for the below mail
    Looking forward for your positive response.
    Thanks
    Mohan
    ([email protected])

  • Link Between KONV and EKPO/EKKO (RFQ)

    Hi Experts!
    We are developing a canvass sheet and the customer requires that the discount amount (both item and header) be displayed in the report. We know that the table for conditions is KONV. However we cannot find the link between KONV and EKPO/EKKO (RFQ). Can you help us with this.
    Will really appreciate if you can help us in this. Thanks! =)

    Hi Shakir,
    Thanks for your immediate response. We have tried looking at that field but for RFQ, the field KNUMV is blank even if a condition is maintained for the RFQ. Is there any other way to connect EKKO/EKPO and KONV? Or how do we code our program to compute for the item and header discounts in RFQ?
    Thanks in advance! =)

  • View using Material master,Vendor master and PO tables

    Hello folks.
    There is a requirement to create view using material master tables ( MARA,MARC,MARD,MAKT & MBEW ) , vendor master tables ( LFA1 & LFB1) and
    Purchase order tables ( EKKO & EKPO tables).
    I have created the attribute views for material and vendor master tables separately.Now I am thinking about the following design pattern.
    1. Join the material master master attribute view to EKPO table using the inner join to create a analytic view1.
    2. Join the material vendor  master attribute view to EKKO table using the inner join to create a analytic view2.
    3. Now create calculate view using join to combine analyticalview1 & analyticalview2.
    Please suggest me the best optimize pattern and am strange to SAP HANA. Please also clarify the following doubts.
    1. What is the role of system supplied default aggregation node?
    2. How can I use Union node in the calculation view in the current requirement  because people/documentation  always suggesting  using of  Union than Join?
    Thanks & Regards,
    Suresh Kuturu

    I have managed to create the Analytic view as per my requirement.. No need to use calculation view  in this case..

  • Business content referring RESB and MBEW tables for MM

    Hi Gurus,
    I have a requirement where i need to extract data from RESB and MBEW tables.
    Is there any business content extractor which takes data from these tables. or the data can be compensated from other tables like EKBE,EKKO,EKPO or MSEG. please let know. Help or advice is greatly appreciated. Thanks in advance.
    Regards,
    Satish

    You'll have to use 0CO_PC_ACT_05 (Material Valuation: Prices) for MBEW note that it doesn't support delta.
    For RESB you might look at 0PS_COMPONT_ATTR, but I'm not really shure
    Message was edited by:
            Pabloj

Maybe you are looking for

  • MI access to non SAP system

    Hi, how can I access webservices through MI. Also If i have a database which allows jdbc access how do I access it thru MI.?

  • Error in Goods Return

    HI, We are getting the message after posting goods return as below Transaction..   MB1A Update key...   4D834C143DEB0114E10080000A60052C Generated....   18.03.2011, 18:01:25 Completed....   18.03.2011, 18:01:25 Error Info...   Update program: I/O err

  • Illustrator VBA scripting 101 - via Excel

    This post will attempt to introduce newcomers to Illustrator Visual Basic Scripting (well, not actually vbs, but rather tru VBA, Visual Basic for Applications). I personally prefer vba over bvs for a number of reasons. First, I always have Excel and

  • J2IUN (Utilization)

    Hi, Additional Excise Duty values and RG23AAED are not appearing in J2IUN for utilization. In configuration i assigned the all necessary gl accounts to UTLZ with subtransaction type IP. in J2IUN i am not able to get the head of RGA23 AED not appearin

  • Music Notation in java

    hiya. I just wanted to know what processes would be involved in writing my own music notation UI, would it be done using a canvas? Somewhere you could edit and playback etc...I want to have a lot of control over the layout and style. Thanks! Dori