Use of EKBE table

Hi,
can any one please solve my questions.
What type of data saved in EKBE table.
and total number of entries in EKPO and EKBE are same?
OR
for all the entries in ekpo, are same header and item details exist in EKBE?
points will be rewarded.
Thanks in Advance,
Eswar

hi,
EKBE table is used to give details of po history document.
i.e it gives details like whether goods receipt is done or invoice is done for aparticular po.
the total entries of ekbe and ekpo cannot be same.
because ekpo stores data when po is created .but in ekbe diifferent records r maintained for gr and vre...
reward points if hlpful.

Similar Messages

  • PO number from EKBE Table

    Hi Experts,
    I want to prepare a new custom report in which the PO number should appear. I was advised to use EKBE table. On checking I found that I can pass only Material doc# and Fiscal Year and No company code field is found. Is it reliable to use only to input values and try to fetch the PO number? I am not sure if there could be more documents across company codes since the number range is set as company code level. Can you suggest any alternative?
    I have already searched for similar topic but could not find the correct answer.
    Please help.
    Thanks in advance.
    Sunil

    Hi Both,
    If I use MSEG table, I must use GR-MM document. As per my knowledge, IR document (MM/FI) won't reflect in MSEG table.
    If GR entry is done first, then I can fetch the AWKEY field from IR-FI doc to get the MM doc#. If the IR entry is done first, (without GR entry posted on PO line) then it is not very easy to fetch the GR-MM document number at a later point of time also.
    If the PO# is unique, independent from company code and year, then there are no issues, the below logic will work.
    Pass the IR-FI Document number to BKPF with BUKRS&GJAHR and take get IR-MM document (AWKEY - 10 +4). Then pass this to EKBE table with BELNR and GJAHR then pick the EBELN (PO#) and EBELP (line item).
    Please correct if I am not right.
    Thanks in advance!

  • Purchase order EKKN/EKBE tables

    Hi,
    I m creating a report based on purchase order. I'm getting sequence number from EKKN table and then getting the invoice details from EKBE table using where clause on EBELN, EBELP and ZEKKN(Seq number) fields.
    My question is in some cases in EKBE table, 00 seq number is populated, mostly for VGABE = 1 (Mat doc number) or VGABE= 9(Service entry sheet). But this 00 is not in EKKN table. So in that case i miss these invoices in my internal table, bcoz i'm querying based on seq number, and 00 is not there.
    Bcoz you cann't use 00 seq number at the time of PO creation.
    Can any body tell me how and in which senarios seq no (EKBE-ZEKKN) field is being populated, so that i can write the code accordingly....
    Thanks,

    Start your selection query from EKBE first and then go to EKKN based on the EBELN, EBELP & ZEKKN.
    Regards,
    Naimesh Patel

  • Qty field addtion based on item no. for ekbe table

    Hi experts,
                      below is my code..
    LOOP AT IT_EKKO.
      READ TABLE IT_LFA1 WITH KEY LIFNR = IT_EKKO-LIFNR.
       MOVE: IT_LFA1-NAME1 TO IT_DISPLAY-NAME1.
       MOVE: IT_EKKO-LIFNR TO IT_DISPLAY-LIFNR,
             IT_EKKO-AEDAT TO IT_DISPLAY-AEDAT,
             IT_EKKO-ERNAM TO IT_DISPLAY-ERNAM,
             IT_EKKO-EKGRP TO IT_DISPLAY-EKGRP.
    READ TABLE IT_EKPO WITH KEY EBELN = IT_EKKO-EBELN.
       MOVE: IT_EKPO-EBELN TO IT_DISPLAY-EBELN,
             IT_EKPO-MATNR TO IT_DISPLAY-MATNR,
             IT_EKPO-MENGE TO IT_DISPLAY-MENGE.
             LOOP AT IT_EKBE where ebeln eq it_ekko-ebeln.
                loop at it_ekbe." WHERE ebelp eq it_ekbe-ebelp.
             IT_DISPLAY-QTY = IT_DISPLAY-QTY + IT_EKBE-MENGE.
             AT END OF EBELP.
            APPEND IT_DISPLAY.
             CONTINUE.
             ENDAT.
             ENDLOOP.
             endloop.
             APPEND IT_DISPLAY.
             CLEAR IT_EKKO.
             ENDLOOP.
    my requirement is to display lifnr,ernam,ekgrp.....etc....
    but the condition is in ekbe table i hav to take purachse document no. from ekko table..based on this ebeln if suppose
    the item no. ebelp in ekbe has value say 10,10, den 20,20..for a single ebeln...then for same item no(10). the qty field should be added
    and for (20) item no. the qty field should be added.
    plz help...
    hw can i acheive this requirement.
    thanks n regards,
    Ashmita Singh.

    Hi Ashmita,
    Do the following changes in your program.
    Define it_lfa1 table as Hashed table with unique key on lifnr.
    Sort table it_ekpo before the loop start on ebeln and used binary search to read data from table.
    Define it_ekbe as sorted table with non-unique key on ebeln and EBELP use single loop.
    Write the following statement before main loop start. (ie it_ekko)
    delete ADJACENT DUPLICATES FROM it_ekbe COMPARING eblen EBELP.
    LOOP AT it_ekko.
    * Define it_lfa1 table as Hashed table with unique key
      READ TABLE it_lfa1 WITH KEY lifnr = it_ekko-lifnr.
      MOVE: it_lfa1-name1 TO it_display-name1.
      MOVE: it_ekko-lifnr TO it_display-lifnr,
      it_ekko-aedat TO it_display-aedat,
      it_ekko-ernam TO it_display-ernam,
      it_ekko-ekgrp TO it_display-ekgrp.
    * Sort table it_ekpo on ebeln and used binary search
      READ TABLE it_ekpo WITH KEY ebeln = it_ekko-ebeln.
      MOVE: it_ekpo-ebeln TO it_display-ebeln,
      it_ekpo-matnr TO it_display-matnr,
      it_ekpo-menge TO it_display-menge.
    * Define it_ekbe as sorted table with non unique key on ebeln and use single loop.
      LOOP AT it_ekbe WHERE ebeln EQ it_ekko-ebeln.
          it_display-qty = it_display-qty + it_ekbe-menge.
      ENDLOOP.
      APPEND it_display.
      CLEAR it_ekko.
    ENDLOOP.
    Kind Rgds
    Ravi Lanjewar

  • EKBE table for Generic Delta

    Hi Gurus,
    Good Day to all. I just like to inquire some details for creating generic datasource with delta enabled. I have created a view table with fields from EKBE table, and created generic datasource that reads the view table I have created from EKBE, now it needs delta process with CPUDT as delta specific field name, seeing the data type of CPUDT, it is DATS with 8 length.
    I would like to assure if what will be use as marker of delta, timestamp utc, timestamp local, calendar day and numeric pointer?
    And if I use one of the above, what settings that needs to be use for the safety interval upper and lower limit?
    Thank you for your inputs and really appreciate it.

    Hi,
    use the CALDAY as a generic delta pointer.
    i would like to recommend as: Safety Interval for Upper Limit as 1 and Safety Interval for lower Limit as ZERO
    i think your are using the DSO as a staging layer no worry about duplicates.
    Thanks,
    Phani.

  • What is the main use of mseg table

    what is the main use of mseg table. when we should actually use this. please explain me in detail. then what is the difference betweeln mseg and mara table.

    MM Process flow:
    The typical procurement cycle for a service or material consists of the following phases:
    1. Determination of Requirements
    Materials requirements are identified either in the user departments or via materials planning and control. (This can cover both MRP proper and the demand-based approach to inventory control. The regular checking of stock levels of materials defined by master records, use of the order-point method, and forecasting on the basis of past usage are important aspects of the latter.) You can enter purchase requisitions yourself, or they can be generated automatically by the materials planning and control system.
    2. Source Determination
    The Purchasing component helps you identify potential sources of supply based on past orders and existing longer-term purchase agreements. This speeds the process of creating requests for quotation (RFQs), which can be sent to vendors electronically via SAP EDI, if desired.
    3. Vendor Selection and Comparison of Quotations
    The system is capable of simulating pricing scenarios, allowing you to compare a number of different quotations. Rejection letters can be sent automatically.
    4. Purchase Order Processing
    The Purchasing system adopts information from the requisition and the quotation to help you create a purchase order. As with purchase requisitions, you can generate Pos yourself or have the system generate them automatically. Vendor scheduling agreements and contracts (in the SAP System, types of longer-term purchase agreement) are also supported.
    5. Purchase Order Follow-Up
    The system checks the reminder periods you have specified and - if necessary - automatically prints reminders or expediters at the predefined intervals. It also provides you with an up-to-date status of all purchase requisitions, quotations, and purchase orders.
    6. Goods Receiving and Inventory Management
    Goods Receiving personnel can confirm the receipt of goods simply by entering the Po number. By specifying permissible tolerances, buyers can limit over- and underdeliveries of ordered goods.
    7. Invoice Verification
    The system supports the checking and matching of invoices. The accounts payable clerk is notified of quantity and price variances because the system has access to PO and goods receipt data. This speeds the process of auditing and clearing invoices for payment.
    Common Tables used by SAP MM:
    Below are few important Common Tables used in Materials Management Modules:
    EINA Purchasing Info Record- General Data
    EINE Purchasing Info Record- Purchasing Organization Data
    MAKT Material Descriptions
    MARA General Material Data
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MAST Material to BOM Link
    MBEW Material Valuation
    MKPF Header- Material Document
    MSEG Document Segment- Material
    MVER Material Consumption
    MVKE Sales Data for materials
    RKPF Document Header- Reservation
    T023 Mat. groups
    T024 Purchasing Groups
    T156 Movement Type
    T157H Help Texts for Movement Types
    MOFF Lists what views have not been created
    A501 Plant/Material
    EBAN Purchase Requisition
    EBKN Purchase Requisition Account Assignment
    EKAB Release Documentation
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    IKPF Header- Physical Inventory Document
    ISEG Physical Inventory Document Items
    LFA1 Vendor Master (General section)
    LFB1 Vendor Master (Company Code)
    NRIV Number range intervals
    RESB Reservation/dependent requirements
    T161T Texts for Purchasing Document Types
    Transaction codes:
    RFQ to Vendor - ME41
    Raising Quotation - ME47
    Comparison of Price - ME49
    Creation of PO - ME21N
    Goods Receipt - MIGO
    Invoice (Bill PAssing) - MIRO
    Goods Issue - MB1A
    Physical Inventory - MI01( Create doc)
    MI04 (Enter Count)
    MI07 (Post)
    Also please check this links.
    http://www.sapgenie.com/sapfunc/mm.htm
    http://www.sap-basis-abap.com/sapmm.htm
    Go thro this link, u will get a clear picture abt the MM flow.
    MM flow
    MM flow
    MM flow
    <b>Reward Points if it is helpful</b>
    Thanks
    Abhay Singh.

  • Relation between BKPF and EKBE table for reversing document?

    Is there any relation between BKPF and EKBE table for reversing document when STBLG is blank in BKPF.
    AND
    How to differentiate Old Accounting document / Reverse document / New document when in BKPF-STBLG is blank for all three document and BKPF-XBLNR are same for all.

    Hi Varun,
    Table Document no (BKPF-BELNR) is link between Material document no (EKBE-BELNR). If you are looking for validating Material reversal document then please use following logic for your requirement.
    Material Document (MBLNR) & Material Document Year (MJAHR). Pass material document (MBLNR) to MSEG-SMBLN to read MSEG-MBLNR with MSEG-MJAHR to MSEG-SJAHR, if record found delete both the documents i.e. MSEG-SMBLN & MSEG-MBLNR (donu2019t consider these documents in the logic) and display Material Document No. (MSEG-MBLNR)
    Regards,
    Santosh

  • 2LIS_02_SCL - need Doc Currency Amount (WRBTR) from EKBE table

    Problem:  We are using the 2LIS_02_SCL to get our purchasing order data.  The problem is that instead of sending over the Doc Value Amounts found in the EKBE table, SAP is doing a calculation based on the the local currency.  They are then using the Exchange rate from the PO Header.  Our users are complaining, because they expect it to match up with what is in the purchase order history.
    I was planning to create a new amount field and and in my transfer rules write ABAP code to take the following fields from 2LIS_02_SCL:
    BW:CValLC(BWGEO), Local cur.(HWAER), Posting Date, Currency(WAERS)
    Use this Date to go back to TCURR to get the correct exchange rate that is used and do my calculation to doc currency (basically replicating the data as viewed in PO History).
    I ran into an issue however.  The Currency (WAERS) field is being filled with the value from EKKO.  I have a below example where in EKBE, the PO was invoiced in a currency other than the DOC Currency. 
    Data in R/3 from EKBE (History per PO)
    PO:                           1
    Amount in Local Currency(DMBTR):     250,01
    Local Currency (HSWAE):            USD
    Amount in Doc Currency(WRBTR):     250,01
    Doc Currency (WAERS):          USD
    Data in R/3 from EKKO (Purchase Order Header)
    PO:                         1
    WAERS:                    DKK
    In this scenario, I am unable to populate the correct value (as seen in purchase order history).
    I don’t see of a way that I can get around this.  Does anyone have any ideas?
    Thanks

    Hi Jiri,
    You can suggest the RRI from cube built on SCL report to cube built on EKBE based on PO.
    Also check if this can be solved by using a multi-cube on these 2 cubes.
    I have done a RRI when I was facing the same issue.
    Regards,
    Niraj

  • How to use customer extension table for schedule line for shopping cart ?

    Dear Experts,
    One of our client wants to have schedule lines in shopping cart item. I am thinking of using customer extension table at item level for shopping cart. Could you please help me on  how I should proceed with the appending the structures so that the end user can fill the shopping cart schedule line details?
    Which fields should I consider in such cases?
    Thanks and regards,
    Ranjan

    Hi.
    I guess you use SRM 7.0. Please go to IMG.
    SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data
    Regards,
    Masa

  • How do I use the option "table view" in NetWeaver 2004s Query Designer?

    Dear,
    We have used NetWeaver 2004s Query Designer, We found a strange problem. The option to select table view is not available. It is greyed out. How can you select table view (tabular) in 2004s Query Designer?
    I have read the help doc about tabular view of NetWeaver 2004s Query Designer, I check my query, it has only one structure . but the option is still greyed out. I rebuild the query with 3.x Query Designer in tabular view, and reopen it with 2004s Query Designer, So there is a tab named "tabular view" display, but the option to select table view is still not available, and when users view the query result in web , it is still not in tabular view display. So I am confused, is there a bug with NetWeaver 2004s Query Designer?
    Please help me. Thanks!

    Note 1002271. Seach this note to use key word "table view"

  • How to create olap cube using Named Query Table in Data source View

     I Create on OLAP Cube using Existing Tables Its Working Fine But When i Use Named Query Table with RelationShip To other Named query Table  It Not Working .So give me some deep Clarification On Olap Cube for Better Understanding
    Thanks

    Hi Pawan,
    What do you mean "It Not Working"? As Kamath said, please post the detail error message, so that we can make further analysis.
    In the Data Source View of a CUBE, we can define a named query. In a named query, you can specify an SQL expression to select rows and columns returned from one or more tables in one or more data sources. A named query is like any other table in a data source
    view (DSV) with rows and relationships, except that the named query is based on an expression.
    Reference:Define Named Queries in a Data Source View (Analysis Services)
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to use single buffered table with FOR ALL ENTRIES KEYWORD

    Hai,
    I'm Using TJ02T Database table, It is single buffered table but at the same time I want to use FOR ALL ENTRIES KEYWORD , Please Help me.
    Regards,
    S.Janani

    Hi,
    FOR ALL ENTRIES will not depend on the buffering nature of the table. The single buffered table will only only buffer one record into memory. You can still use the statement to query the values, but it may have performance problems if the data volume is high since the records are not completely buffered into memory, the time will spent in getting data from DB.
    Thanks..
    Preetham S

  • How to use PL/SQL table

    Hi all,
    can you guys suggest me how can I use pl/sql tables for the below query to incresing the performance.
    DECLARE
        TYPE cur_typ IS REF CURSOR;
        c           cur_typ;
        total_val varchar2(1000);
        sql_stmt varchar2(1000);
        freeform_name NUMBER;
        freeform_id NUMBER;
        imgname_rec EMC_FTW_PREVA.EMC_Image_C_Mungo%rowtype;
        imgval_rec  EMC_FTW_PREVA.EMC_Content_C_Mungo%rowtype;
        CURSOR imgname_cur IS
            select * from EMC_FTW_PREVA.EMC_Image_C_Mungo
            where cs_ownerid in (
                        select id from EMC_FTW_PREVA.EMC_Image_C
                        where updateddate > '01-JUN-13'
                        and path is not null
                        and createddate != updateddate)
            and cs_attrid = (select id from EMC_FTW_PREVA.EMC_ATTRIBUTE where name = 'Image_Upload');
    BEGIN
        OPEN imgname_cur;
        LOOP
          FETCH imgname_cur INTO imgname_rec;
          EXIT WHEN imgname_cur%NOTFOUND;
          total_val := 'EMC_Image_C_' || imgname_rec.cs_ownerid;
          sql_stmt := 'SELECT instr(textvalue,''' || total_val || '''), cs_ownerid FROM EMC_FTW_PREVA.EMC_Content_C_Mungo a Where cs_attrid = (select id from EMC_FTW_PREVA.EMC_ATTRIBUTE where name = ' || '''' || 'Body_freeform' || '''' || ')';
            OPEN c FOR sql_stmt;
            LOOP
              FETCH c INTO freeform_id,freeform_name;
              EXIT WHEN c%NOTFOUND;
                                      IF freeform_id > 0 THEN
                dbms_output.put_line (imgname_rec.cs_ownerid || ',' || total_val || ',' || freeform_id || ',' || freeform_name);
                                      END IF;
            END LOOP;
            CLOSE c;     
       END LOOP;
       CLOSE imgname_cur;
    END;
    Thanks in Advance.

    can you guys suggest me how can I use pl/sql tables for the below query to incresing the performance.
    There would be absolutely no point at all in improving the performance of code that has NO benefit.
    The only result of executing that code is to possibly produce some lines of output AFTER the entire procedure if finished:
    dbms_output.put_line (imgname_rec.cs_ownerid || ',' || total_val || ',' || freeform_id || ',' || freeform_name);
    So first you need to explain:
    1. what PROBLEM you are trying to solve?
    2. why you are trying to use PL/SQL code to solve it.
    3. why are you using 'slow by slow' (row by row) processing and then, for each row, opening a new cursor to query more data?
    You should be using a single query rather than two nested cursors. But that begs the question of what the code is even supposed to be doing since the only output is going to a memory buffer.

  • How can i  print reports to different printer by use Trigger on table after insert

    Hello,
    Please can any one tell me how can i print (any message) to different printer (network & local printer) by use Trigger on table after insert.
    regards,
    Linda.

    What you want to do cannot be done with PL/SQL, which does have any print utilities. However you could write something using Java Stored Procedures.
    Of course the "different printer" bit will have to be data driven as triggers are not interactive.
    rgds, APC

  • How to load the data using a plsql table in ODI.

    Hi All ,
    Can anyone help me on this ?
    We have a PLSQL procedure which returns a plsql table as out parameter.
    We are supposed to load the data in to a file using this plsql table (Table type) in ODI.
    Can this be done using ODI?
    Regards,
    Karthik+

    Hi,
    We have one process with a ref cursor (Oracle) as a source and remote Oracle DB as a target. I ended up writing my own KM that populates a global temporary table from the cursor first and then transfers the data to target. If temporary table is an option for you, the rest is pretty easy.
    Regards.

Maybe you are looking for

  • Is this a bug or a new behaviour?

    SQL> SELECT * FROM V$VERSION; BANNER Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production PL/SQL Release 8.1.7.4.0 - Production CORE 8.1.7.0.0 Production TNS for Solaris: Version 8.1.7.4.0 - Production NLSRTL Version 3.4.1.0.0 - Productio

  • Failed Leopard Install - Not Booting

    I apologize in advance for the redundancy of my problem. But I've read all other post surrounding my problem but nothing has seemed to work. After failing a Leopard Install, I tried to restore my HD using the boot disc. But it gets stuck on the grey

  • Jammed up my desktop

    I just did something incredibly stupid. I was preparing to export and burn about 200 photos from Iphoto to a CD. Instead of putting them in my photo folder or document folder, I accidentally sent the whole package to the desktop which is now frozen a

  • Transferring to Financial Accounting

    Wich configuration mus be done into R3 to tranfer billing documents from CMR 7.0?. Thanks

  • HT1203 how to sync a new ipod on a computer, with one already on it

    I just got a new ipod a week ago. Now i want to add music on it, using the music on my computer. My brother already has an ipod synced to itunes. How do i add music to my ipod using the computer without erasing my brothers ipod files.