EKET Doublt entry

Dear all,
When i am seeing the EKET table for a particular purchase order each line item its showing double times means double line item.
In this sch line counter(ETENR) filed only updating its showing 2.
First line item its showing below
po    po line item           schd              del date               sch del date              schd qty              prev qty    Deliverd   issued qty
xxx        01                   1                     26.08.10                26.08.10                 760                           0             760                760
Second line item its showing below  
po    po line item           schd              del date               sch del date              schd qty              prev qty      Delivered  issued qty
xxx        01                   2                     26.08.10                26.08.10                 0                        0                 760                    760
If you see detailed 2nd line item sch qty its showing 0 and then schd filed its showing 2.
Why its showing like this? anyone can explain in detail?
Why i am asking using this table i am developing some query, there its showing double line items.

Hi ,
If you see at your PO , there are two scheduled delivery item hence it showing like this.

Similar Messages

  • Deleted items still apear on EKET Table

    Hello All
    my question is the following...
    why i still see some schedule lines in EKET from deleted items? if i check on EKPO they are delted if i check in me23n they are deleted but they continue to appear on EKET.
    how is the deletion process triggered in eket?
    thanks in advance

    the delivery date of a PO is not stored in EKPO, it is only stored in EKET table.
    The quantity in a PO item, is just a total of all quantities in the related schedules.
    As long you see a schedule line in the delivery schedule tab in ME23N you will have a record in EKET table, no matter if the PO is marked for deletion or not.
    You cannot even the delete the single schedule line, SAP will give you a message to enter a quantity.
    if you have many schedule lines per order, then you can delete all but one.
    EKET table entries get physically removed when you archive the purchase order, together with EKKO and EKPO records and records from some 100 other tables that belong to the object MM_EKKO

  • 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

  • FOR ALL ENTRIES - CDHDR / CDPOS Tables

    Hi,
    I know there have been a lot of threads concerning the "for all entries" statement. Nevertheless I got a problem downloading the change document tables CDHDR/CDPOS with this statement and I haven't found anything in this forum regarding this special issue.
    While trying the for all entries statement in the below manner for downloading first CDHDR and then the CDPOS for all entries of the selected CDHDR it took 3 days and didn't finish, so we aborted the ABAP. The JOIN statement doesn't work in a 4.6c environment for the Cluster tables, hence this isn't an option.
    Can you give me some advise of how to improve downloading those tables in this way:
    1. Download CDHDR with limitation of fields OBJECTCLAS and UDATE
    2. Then Download CDPOS for all CHANGENR out of the first selection of CDHDR
    This was the way I tried it:
    SELECT
    ACT_CHNGNO  CHANGE_IND  CHANGENR  MANDANT  OBJECTCLAS  OBJECTID  PLANCHNGNR  TCODE  UDATE  USERNAME  UTIME  WAS_PLANND APPENDING CORRESPONDING FIELDS OF TABLE T_CDHDR FROM CDHDR WHERE UDATE IN  s_UDAT1 AND OBJECTCLAS IN  s_OBJE0.
    ENDSELECT.
    SELECT
    CHANGENR  CHNGIND  CUKY_NEW  CUKY_OLD  FNAME  MANDANT  OBJECTCLAS  OBJECTID  TABKEY  TABNAME  UNIT_NEW  UNIT_OLD  VALUE_NEW  VALUE_OLD INTO gs_CDPOS FROM CDPOS CLIENT SPECIFIED for all entries in  T_CDHDR WHERE OBJECTCLAS IN  s_OBJE2 AND MANDANT EQ  T_CDHDR-MANDANT AND OBJECTCLAS EQ  T_CDHDR-OBJECTCLAS AND CHANGENR EQ  T_CDHDR-CHANGENR.
    ENDSELECT.

    THis prg might b usefull to u
    *  Mass display or print Purchase Order History
    *  You can request report by :
    *  1.  Change date
    *  2.  User Name
    *  3.  Purchase Order Number
    *  4.  Vendor Code
    * Written by : SAP Basis, ABAP Programming and Other IMG Stuff
    *              http://www.sap-img.com
    REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001)
                     MESSAGE-ID VR.
    TABLES: DD04T,
            CDHDR,
            CDPOS,
            DD03L,
            DD41V,
            T685T,
            VBPA,
            TPART,
            KONVC,
            EKKO.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
                    XNAME  FOR CDHDR-USERNAME,
                    XEBELN FOR EKKO-EBELN,
                    XLIFNR FOR EKKO-LIFNR.
    SELECTION-SCREEN SKIP.
    * TEXT-001 - Sorting Sequence
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
                SNAME  RADIOBUTTON GROUP R1,
                SOBID  RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END OF BLOCK BLK1.
    DATA: WFLAG,
          WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: INDTEXT(60) TYPE C.
    DATA: BEGIN OF ICDHDR OCCURS 50.
            INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
            INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
            EBELN LIKE EKET-EBELN,
            EBELP LIKE EKET-EBELP,
            ETENR LIKE EKET-ETENR,
          END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
            BEGIN OF EKKEY,
              EBELN LIKE EKET-EBELN,
              EBELP LIKE EKET-EBELP,
              ETENR LIKE EKET-ETENR,
            END OF EKKEY,
            CHANGENR LIKE CDHDR-CHANGENR,
            UDATE    LIKE CDHDR-UDATE,
            UTIME    LIKE CDHDR-UTIME,
            USERNAME LIKE CDHDR-USERNAME,
            CHNGIND  LIKE CDSHW-CHNGIND,
            FTEXT    LIKE CDSHW-FTEXT,
            OUTLEN   LIKE CDSHW-OUTLEN,
            F_OLD    LIKE CDSHW-F_OLD,
            F_NEW    LIKE CDSHW-F_NEW,
          END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
    SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
                             LIFNR IN XLIFNR.
      CLEAR CDHDR.
      CLEAR CDPOS.
      CDHDR-OBJECTCLAS = 'EINKBELEG'.
      CDHDR-OBJECTID   = EKKO-EBELN.
      PERFORM GETCHGDOCS.
    ENDSELECT.
    IF SUDATE = 'X'.
      SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSEIF SNAME = 'X'.
      SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSE.
      SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
    ENDIF.
    LOOP AT ITAB.
      CLEAR: INDTEXT, EKKEY.
      CASE ITAB-CHNGIND.
        WHEN 'U'.
            INDTEXT(50) = ITAB-FTEXT.
            INDTEXT+51  = TEXT-020.
            CONDENSE INDTEXT.
        WHEN 'D'.
            INDTEXT = TEXT-021.
        WHEN 'E'.
            INDTEXT(5) = ITAB-FTEXT.
            INDTEXT+51 = TEXT-021.
            CONDENSE INDTEXT.
          WHEN 'I'.
            INDTEXT = TEXT-022.
        ENDCASE.
        RESERVE 4 LINES.
        IF WCHANGENR NE ITAB-CHANGENR.
          WCHANGENR = ITAB-CHANGENR.
          EKKEY = ITAB-EKKEY.
          WRITE:/ ITAB-UDATE UNDER 'Change Date',
                  ITAB-UTIME UNDER 'Time',
                  ITAB-USERNAME UNDER 'User Name',
                  ITAB-EKKEY-EBELN UNDER 'PO No',
                  ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ELSEIF ITAB-EKKEY NE EKKEY.
          WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ENDIF.
        CASE ITAB-CHNGIND.
          WHEN 'U'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
            WRITE: / TEXT-023  UNDER 'Changes',
                     <F_OLD>.
            WRITE: / TEXT-024 UNDER 'Changes',
                     <F_NEW>.
          WHEN 'E'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            WRITE: TEXT-023 UNDER 'Changes',
                   <F_OLD>.
        ENDCASE.
        SKIP.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE:/ SY-DATUM,SY-UZEIT,
           50 'P U R C H A S E  O R D E R   H I S T O R Y',
          120 'Page', SY-PAGNO.
    WRITE: / SY-REPID,
             60 'Purchase Orders Changes'.
    SKIP.
    ULINE.
    IF SUDATE = 'X'.
      WRITE:/001 'Change Date',
             014 'Time',
             024 'User Name',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ELSEIF SOBID = 'X'.
      WRITE:/001 'PO No',
             013 'Item',
             020 'Sch No',
             028 'Change Date',
             041 'Time',
             051 'User Name',
             065 'Changes'.
    ELSE.
      WRITE:/001 'User Name',
             015 'Change Date',
             028 'Time',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ENDIF.
    ULINE.
    FORM GETCHGDOCS.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
           EXPORTING
                DATE_OF_CHANGE    = CDHDR-UDATE
                OBJECTCLASS       = CDHDR-OBJECTCLAS
                OBJECTID          = CDHDR-OBJECTID
                TIME_OF_CHANGE    = CDHDR-UTIME
                USERNAME          = CDHDR-USERNAME
           TABLES
                I_CDHDR           = ICDHDR
           EXCEPTIONS
                NO_POSITION_FOUND = 1
                OTHERS            = 2.
      CHECK SY-SUBRC EQ 0.
      DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
      CHECK NOT ICDHDR[] IS INITIAL.
      LOOP AT ICDHDR.
        CHECK ICDHDR-UDATE IN XUDATE.
        CHECK ICDHDR-USERNAME IN XNAME.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
                     EXPORTING  CHANGENUMBER       = ICDHDR-CHANGENR
                     IMPORTING  HEADER             = CDHDR
                     TABLES     EDITPOS            = ICDSHW
                     EXCEPTIONS NO_POSITION_FOUND  = 1
                                OTHERS             = 2.
        CHECK SY-SUBRC EQ 0.
        LOOP AT ICDSHW.
          CHECK ICDSHW-TEXT_CASE EQ SPACE.
          MOVE-CORRESPONDING ICDSHW TO ITAB.
          MOVE-CORRESPONDING ICDHDR TO ITAB.
          MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
          APPEND ITAB.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.
    * END OF PROGRAM

  • 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

  • Link between EKBE and EKET for the below scenario

    Hi all
    We have a requirement to display schedule line number(eket-etenr) for purchase order and for each history of quantities in table EKBE (ekbe-ebeln ,ekbe-ebelp). Please suggest how we can link these two tables,
    As i need to display the eket-etenr upto the quantity confirmed on latest date..
    The example is below for quantity 81.
    If Purshase history is
    EKET-menge EKET- etenr
    81 --- 0001
    5 -
    0002
    10 --- 0003
    date move-typ EKBE-menge ***-sum ETENR
    01/26/2004 101 10 10 0001
    01/26/2004 101 10 20 0001
    01/27/2004 101 20 40 0001
    01/27/2004 101 20 60 0001
    01/30/2005 101 10 70 0001
    03/31/2005 101 1 71 0001
    03/31/2005 101 10 81 0001
    04/01/2005 101 9 90 0001
    11/20/2006 102 -9 81 0001
    06/04/2006 101 3 84 0002
    06/05/2006 101 1 85 0002
    06/06/2006 102 -1 -1 84 0002
    06/07/2006 101 3 87 0003
    06/08/2006 101 9 96 0003
    We need to display EKET-ETENr for each ekbe entry whenever the quantity is delivered til that line.
    Pleae suggest possible ways.
    Regards,
    Latha.

    Hi,
    Pls chk this relations-
    EKBE-> EKKO->based on EBELN
    EKKO -> EKPO based on EBELN
    EKPO->EKET based on EBELN, EBELP
    First try to get the Purchase order numbers  into EKKO from EKBE based on this get their itmes from EKPO from this we can get the EKET values based on both documnet number and theier items.
    To get the history of the PO(EBELN) check this select statement -
    SELECT
         ebeln      "Purchasing Document Number
         ebelp      "Item Number of Purchasing Document
         gjahr      "Financial year
         vgabe      "Transaction/event type, purchase order
         belnr      "Number of material document
         bwart      "Movement type
         budat      "Posting date in the document
         menge      "Quantity
         wrbtr      "Amount in document currency
         waers      "Currency Key
         matnr      "Material number
         werks      "plant
         charg      "Batch
         FROM  ekbe
         INTO  TABLE i_ekbe
         WHERE gjahr IN  s_gjahr AND
               budat IN s_budat  AND
               werks =  p_plant.
    SORT i_ekbe BY ebeln gjahr matnr vgabe bwart.
    if i_ekbe[] is not initial.
    SELECT
               ebeln    "PO
               lifnr       "VENDOR
          FROM ekko
          INTO TABLE i_ekko
          FOR ALL  ENTRIES IN i_ekbe
          WHERE ebeln = i_ekbe-ebeln.
    endif.
    SORT i_ekko BY ebeln.
    if i_ekko[] is not intitial.
    SELECT
                ebeln    "Purchasing Document Number
                ebelp    "Purchasing Document ITEM
                matnr    "Materail No.
                menge    "qty
                meins    "unit
                  umrez    "Conversion factor                 "MOD-005
                  umren    "conversion factor                 "MOD-005
            FROM ekpo
            INTO TABLE i_ekpo
                 FOR ALL ENTRIES IN i_ekko
            WHERE ebeln = i_ekko-ebeln.
    endif.
    if i_ekpo[] is not initial.
        SELECT   *
               FROM eket
               INTO TABLE i_eket
               FOR ALL ENTRIES IN i_ekpo
               WHERE ebeln = i_ekpo-ebeln
               AND   ebelp = i_ekpo-ebelp.
    endif.
    Hope this solves your issue. Chanegethe WHERE conditions wherever necessarry as per your requiremnets.
    Regards
    Lekha

  • All entries and read statement not working

    Hi Experts,
    I am doing a report on material history,
    First I get the entire matnr from mara then I go to eket  and mard to take some details  and then to ekpo to take open Po's (ebeln) for the particular matnr .....
    I am displaying my o/p like : for a single matnr there will be many ebeln.
    But I am facing problem in displaying eban~banfn for the particular matnr ...can any one
    please advice me how to display it such that other details which I have already displayed should not get affected.
    I tried ALL ENTRIES FROM EBAN connecting only MATNR and WERKS then  used READ its just reading the first record.
    Please advice if there is any other logic.
    Thanks
    Karthik

    Here,
    SELECT MARA~MATNR MARA~MTART MARD~WERKS MARD~LABST MARD~INSME MARD~SPEME    FROM MARA INNER JOIN MARD ON MARA~MATNR EQ MARD~MATNR
      INTO CORRESPONDING FIELDS OF TABLE IT_MARA
    WHERE MARA~MATNR IN MATNR  
    AND MARD~WERKS IN   WERKS                                                                               
      LOOP AT IT_MARA.
        MOVE IT_MARA-MATNR TO IT_TAB-MATNR.
        MOVE IT_MARA-WERKS TO IT_TAB-WERKS.
        MOVE IT_MARA-LABST TO IT_TAB-LABST.
        MOVE IT_MARA-INSME TO IT_TAB-INSME.
        MOVE IT_MARA-SPEME TO IT_TAB-SPEME.
        COLLECT IT_TAB.
      ENDLOOP.
    IF NOT IT_TAB IS INITIAL.
        SELECT * FROM EKPO INTO CORRESPONDING FIELDS OF TABLE IT_EKPO
           FOR ALL ENTRIES IN IT_TAB WHERE MATNR EQ IT_TAB-MATNR
           AND WERKS EQ IT_TAB-WERKS AND PSTYP EQ '0' AND BSTYP EQ 'F'
           AND ELIKZ EQ ' '.
      ENDIF.
    LOOP AT IT_TAB.
        MOVE-CORRESPONDING IT_TAB TO IT_FIRST.
        LOOP AT IT_EKPO WHERE MATNR EQ IT_TAB-MATNR
                          AND WERKS EQ IT_TAB-WERKS.
          MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
          MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.
          APPEND IT_FIRST.
          CLEAR IT_FIRST."-LABST.
        ENDLOOP.
      ENDLOOP.
    And now I am facing problem in the below querry
    SELECT * FROM EBAN INTO CORRESPONDING FIELDS OF TABLE IT_EBAN FOR ALL
      ENTRIES IN IT_FIRST WHERE MATNR = IT_FIRST-MATNR
      AND WERKS = IT_FIRST-WERKS AND STATU IN ('N','A').
    LOOP AT IT_FIRST.
        READ TABLE IT_EBAN WITH KEY MATNR = IT_FIRST-MATNR
                                    WERKS = IT_FIRST-WERKS.
        MOVE IT_EBAN-BANFN TO IT_FIRST-BANFN.
        MODIFY IT_FIRST.
    *    CLEAR IT_EBAN.
      ENDLOOP.
    Please advice
    Karthik

  • EKBE & EKET

    hi,
    i´m working on a report using Logical DataBase
    MEPOLDB.The problem i´m facing is that there are several entries of ekbe-menge for a single entry of eket-menge.
    is there a relationship between ekbe-menge ekbe-bldat and eket-menge eket-sfldt?
    Any help would be greatly appreciated.

    Hi calsadillo,
    the point is, it's quite normal that there are several entries in table EKBE for a single position of a purchase order. Table EKBE stores every goods-receipt movement and every invoice posted to one single position of a purchase order. So if you want to retrieve just one record from table EKBE, I think it's not possible.
    But: depending on what you want to do, you could write some sort of
    select shkzg sum(menge)
    into corresponding fields of ekbe
    from ekbe
    where ebeln = ...
    and ebelp = ...
    group by vgabe
    ...and then you will have, for instance, two records: one for debit positions (shkzg = S), and one for credit positions (shkzg = H). Then you could say:
    if ekbe-shkzg = 'H'.
      ekbe-menge = ekbe-menge * ( -1 ).
    endif.
    ...and continue with the summarization.
    Please let us know if it helped. Best regards,
    Alvaro

  • Sch line qty is "0" in "EKET" table

    Dear all,
    Recently, we have been migrated from ECC5.0 to ECC6.0.
    While we are checking our wekly schedule lines in the table "EKET", we found some of the sch line quantities are showing as "0" eventhough quantities available in qty delivered or qty issued column with respect to the sch line no.
    (In ECC5.0, if qty is available in qty dellivered or qty issued column of EKET, then schedule qty will not be "0") .
    Pl suggest us if there is any note available to overcome this issue.
    Regards,
    M.Selvaganesh,

    If it is a service PO, then your PO quantity should be only 1.
    If it has more than one. Then you can enter the schedule line.
    First you have to make the Qty field optional entry from field selection
    OLME-Purchase Order-Define Screen Layout at Document Level-PT9F.
    Make the Quantity field as optional entry.
    You can see one line item comes default in PO schedule line.
    Then you can copy the line item to another line item.
    Select the line item and then press Schedule line split.
    If your system is showing something different, then please post a screen shot.

  • Transaction related to PLAF EBAN  EKET

    Hi all,
    Can anybody tell me what are the transactions related to the above mentioned table through which we can update or create a new entry .
    Thanks and Regards.
    syed

    Hai,
    <b>Transactions Related to PLAF :</b>
    MD11 - Create Planned Order
    MD12 - Change Planned Order
    MD13 - Display Planned Order
    <b>Transactions Related to EBAN :</b>
    ME51 - Create Purchase Requisition
    ME52 - Change Purchase Requisition
    ME53 - Display Purchase Requisition
    ME54 - Release Purchase Requisition
    <b>Transactions Related to EKET :</b>
    ME31  - Create Outline Agreement
    ME31K - Create Contract
    ME31L - Create Scheduling Agreement
    ME32  - Change Outline Agreement
    ME32K - Change Contract
    ME32L - Change Scheduling Agreement
    ME33  - Display Outline Agreement
    ME33K - Display Contract
    ME33L - Display Scheduling Agreement
    ME34  - Maintain Outl. Agreement Supplement
    ME34K - Maintain Contract Supplement
    ME34L - Maintain Sched. Agreement Supplement
    ME35  - Release Outline Agreement
    ME35K - Release Contract
    ME35L - Release Scheduling Agreement
    Regards,
    Padmam.

  • 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

  • Multiple Entries in MD04

    Hello all,
    Need some advice on this.
    There exists multiple entries for a purchase order in the MD04 screen. One with element name 'POITEM' and the other one with 'Shipping Notification'. The acknowledgement (shipping notification) is received for the total Purchase Order quantity so obviously the POITEM should have been replaced with ShpgNt in the MD04 screen but it din't.
    Is this something to do with the rescheduling factor ?
    PS: Rescheduling Horizon value in OPPQ = 100 days.
    Regards,
    Rahul

    Hello Rahul
    When the shipping notification is created, the respective quantity should be updated on the field DABMG of the purchase order (table EKET).
    I made a quick notes search and I found several corrections for errors in the update of this field.
    1979068
    MRP reduced quantity not updated for schedule lines
    1860803
    Errors when processing confirmation documents in OLTP
    1827920
    Inbound delivery creation failed to update MRP reduced qty
    1877198
    Confirmation lines not update with PO Confirmation SOA
    Please implement this notes into your system, in order to avoid this kind of problem in the future.
    If there are POs wrongly displayed on transaction MD04 due to an inconsistency on field DABMG you should open an OSS incident to SAP under the component MM-PUR-GF-CON.
    BR
    Caetano

  • How to set the EKET-FIXKZ directly?

    If you make in transaction ME38  manual changes to a line of a scheduling agreement delivery schedule that was created via the materials planning process or if you create a scheduling line manually the EKET-FIXKZ will be set to 'X'. Alternativly you can use BAPI_SAG_CHANGE. If you transfer a changed quantity to a item line the EKET-FIXKZ will be set too.
    I have to set certain scheduling line to EKET-FIXKZ = 'X' and at later times to EKET-FIXKZ = space (and vice versa).
    I should not use "UPDATE EKET SET FIXKZ = 'X'.".
    Does anybody know a way to change the EKET-FIXKZ directly with standard functions?

    Hi,
    The initial entry point Navigation Node after first login is the Navigation Node with lowest Sort priority number.
    The sort priority of a Navigation Node can be between 0 and 100.
    So value 0 means priority undefined, so you can use from 0.1 till 100 to set the priority, where 0.1 will be the first node that will be shown after first login. Ofcourse you can also use 1 till 100, no need to break down to decimals.
    From NW7.0 SP14 there is also a new feature which sorts Navigation Node Alphabetically, so you can also define this setting, which then can be combined with sort priority.
    Check this how to Define the Sort Sequence of Navigation Nodes:
    http://help.sap.com/saphelp_nw70/helpdata/EN/92/3e703e632c7937e10000000a114084/frameset.htm
    Regards,
    Praveen Gudapati

  • EKET Table (Urgent)

    Hi All,
    I would like to know where i can find the program which is updating the field WEMNG in table EKET.
    Eg: Purchase Order with one line & this line has 2 delivery schedules
    PO qty = 10 nos, (EKPO-MENGE)
    1st delivery schedule qty = 5 nos (EKET-MENGE)
    2nd delivery schedule qty = 5 nos (EKET-MENGE)
    The EKET table has 2 entries i.e
    line 1: EKET-ETENR = 0001, EKET-MENGE = 5
    line 2: EKET-ETENR = 0002, EKET-MENGE = 5
    I understand when i do a goods receipt, EKET-WEMNG field is updated, but i want to know which program is actually doing this. Where can i find the code. I checked in MEPO1320 structure, but was unable to find the code, i checked in SAPLMEGUI, but was not successful either, maybe i havent checked in the right place.
    Hope my question is clear, await inputs
    Regards,
    Vivek

    Hi Sagun,
    The reason i want to know is because, i want to implement the same logic in a query which i am trying to build. I want to subtract the quantity coming from EKES table for line 1 until the quantity is 5 & after that i want it to subtract from line 2.
    I hope you are clear of the problem i am facing. Awaiting your inputs to resolve this.
    Vivek

  • On Android 4.2.2 on a Nexus7 tablet - No Firefox button and most text entry fields do not work at all

    I installed Firefox 19.0.2 and appears to be ok, but I don't see a Firefox button anywhere, so I cannot access any of the functions that it controls, such as bookmarks, which is why I installed it!
    The ASUS Nexus 7 tablet shows up as a supported platform.
    I set it as the default link browser, but quickly realized that I could not enter text into any data entry fields, so I reset the default back to Chrome, which works fine for that.
    I installed Firefox because bookmarks in Chrome are very lame, but I can't use bookmarks at all in Firefox, so again Chrome wins.
    Any suggestions, before I uninstall it?

    I am now a Democrat supporter. dccc.org does accept text input from my mobile.
    The forum problem I mentioned earlier is apparently a known issue but only affecting legacy phones.

Maybe you are looking for

  • Acrobat PDF Maker doesn't work after installing UPDATES(!) to Adobe Creative Suite 3 (on Windows 7)

    Hi, I installed Adobe Creative suite 3 Premium on Widows Vista....then upgraded to Windows 7,...never had any problems. Today Adobe Update Advisor downloaded and installed some updates to Adobe Professional 8 (that came in a package with Adobe CS3 pr

  • Pre-Order games and the GCU

    There seems to be 2 options. Go to a store, print out the ticket, go to the register and pay $5 to hold your copy, or put money down.  Come back and relay on the system to give you the 20% discount. Order online, get the discount right away, pay in f

  • Error 'Maximum number of sessions reached' while posting an idoc

    Hi,    i got one requirement that when ever user enters so many materials with different quantities and version id's and when he executes,it has to post the idocs using FM .but if the number of records increases,iam getting error that 'maximum number

  • Connecting iPOD to stereo receiver

    Sorry if this has been asked before but I couldn't find anything posted. I have an 80 gig Fifth Generation iPOD and was wondering if there was a way to connect it to my stereo receiver by use of RCA plugs or other wired means??? I know I could use a

  • The Organizer – Using file names as captions in SlideShow

    I am using Vista.  I just switched from using ZoomBrowser to The Organizer and I have a collections of thousands of photos. In ZoomBrowser I could show the file names (which I used to describe the slide) at the bottom of the slides during a slide sho