Table mseg, mkpf  cpu 90% problem

when we run the report about some big table such as "mseg" or "mkpf",  the os resouce cpu is occupied 90%  .   
our os is AIX 5,3 ,  memory 4G ,  one power 5 cpu,  
I do no know is there some problem about my sap system?  thanks
what can I do to these special tables daily?      Could you give me some advices??

Maybe the report is to big, maybe you need to check if the indexes are right... You can do a trace via ST01 and find out if theres any particular sql statement that is taking too long and check the indexes.
Regards
Juan

Similar Messages

  • Material document not updated in Table MSEG,MKPF

    Hi,
    when i post the GR, Materail doument is posted and matereail doument number is shown, but when i go to Display mode of the materail docuemnt number. the message is coming" document numberXXXXX does not exist in calender year 2010" Message no: M7062.
    if i see the tables MKPF,MSEG,EKBE there is no entry dispalyed..
    due to this problem my work is pending in all Procure to pay scenario..
    can you provide the solution..
    regards,
    Obulesu

    Hi,
    Check the number ranges for material documents. (with year) for document type WE in OMBT transaction code.
    If same material document number repeats in the same calendar year,then document update will be terminated.
    As, document no. will be already existing in tables, system won't allow to update the same no. again.
    Thanks & Regards,
    Anand.

  • Performance of MSEG table with MKPF and LIKP

    Hi,
    I am having an Issue with MSEG table. It has 6.5 lakh (= 650,000) records in Production System.
    Can anyone help me with its performance. The code I am using now is.
    SELECT MBLNR mjahr BLDAT BUDAT LE_VBELN FROM MKPF INTO TABLE IT_MKPF WHERE
           BUDAT IN S_POSDAT and
           MBLNR IN S_GRNUM.
    IF NOT IT_MKPF[] IS INITIAL.
    SELECT mblnr mjahr bwart lifnr FROM MSEG INTO TABLE IT_MSEG FOR ALL ENTRIES IN IT_MKPF
      WHERE bwart eq p_movtyp and
                   lifnr in S_VENDOR and
                   mblnr eq it_mkpf-mblnr and
                   mjahr eq it_mkpf-mjahr.
    IF NOT IT_MSEG[] IS INITIAL.
    SELECT vbeln lfdat verur lifnr FROM LIKP INTO TABLE IT_LIKP FOR ALL ENTRIES IN IT_MKPF
      WHERE verur in S_REFER  and
                   lifnr in S_VENDOR and
                   vbeln eq it_mkpf-le_vbeln.
    Is there any other field which I can give for MSEG-LIKP or MSEG-MKPF combination tables to increase the performance.
    Edited by: Thomas Zloch on Apr 19, 2011 2:22 PM - please do not use local units

    Hi
    try this way the performance is better ...
    for MSEG,BKPF and BSEG tables try to use SELECT...ENDSELECT instead of for all entries...
    SELECT MBLNR mjahr BLDAT BUDAT LE_VBELN FROM MKPF INTO wa_MKPF WHERE
            BUDAT IN S_POSDAT and
            MBLNR IN S_GRNUM.
    SELECT mblnr mjahr bwart lifnr FROM MSEG INTO wa_MSEG
       WHERE bwart eq p_movtyp and
                    lifnr in S_VENDOR and
                    mblnr eq it_mkpf-mblnr and
                    mjahr eq it_mkpf-mjahr.
    SELECT vbeln lfdat verur lifnr FROM LIKP INTO wa_LIKP
                WHERE verur in S_REFER  and
                    lifnr in S_VENDOR and
                    vbeln eq it_mkpf-le_vbeln.
    "APPEND to final table
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    Prabhudas

  • Very Urgent - Problem with Table MSEG

    Hi All,
    I wanted to add customer fields to MSEG Table. So I created a Structure ZISU with 4 fields and appended that to the table with Append Structure name ZExtensionin name.
    Now when I deleted one field from the structure and wanted to activate it. But it should an SQL Error while activation.
    So I mistakenly deleted the ZExtensionin from MSEG Table. It displayed that it is deleted but it is still visible in MSEG with the fields.
    Due to this, both structure ZISU and table MSEG are been shown as "Partially Active".
    What shall I do now to make everything fine ?
    Its very urgent. Please help me....
    Reward Points for Useful answers.
    Thanks,
    Harish

    Hi Harish,
    Goto SE14 and adjust the table and then activate your table.  This should work.
    Thanks.
    <b>Plz reward points if helpful</b>

  • New data source on MSEG, MKPF, PA0002, PA0001, T503T

    Hi all,
    I have a requirement where I have to pull data from MSEG, MKPF, PA0002, PA0001, T503T tables in o BI.
    I need the following fields from
    MKPF:--
    CPUDT, CPUTM, FRBNR, USNAM
    MSEG:--
    BWART, LGNUM, LGTYP, MBLNR
    PA0001:--
    BEGDA, ENDDA, PERSK
    PA0002:--
    NACHN, PERNR, RUFNM, VORNA
    T503T:--
    PTEXT
    I am planning to create a view based on these tables.
    But I am not sure whether it is the best approach or not.
    Can you guys help me in coming out with the best option.
    I did do some research before coming up with a view but I am new to BI so wanted to see what the Guru's suggest.
    Thanks

    Hi,
    The view is one of the solutions here. But you have to be very careful with the join conditions, look for deltas and also look at your key values here.
    A more robust solution might be to go with a function module rather than view. Also, if you are doing any data manipulations or calculations for this particular datasource, a function module would serve your needs.
    Cheers,
    Kedar

  • My solution (or so I thought) to Power Manager/CPU throttling problems!!!

    I have found a solution to all my Power Manager/CPU throttling problems!!! Though there is some good and bad news.
    {EDIT: The problem has NOT been fixed, even after latest PowerManager (3.62) and BIOS (1.30) versions. Pretty much ignore anything I say below as the problem is still occurring. You can see my full post here: http://forum.lenovo.com/t5/W-Series-ThinkPad-Laptops/W520-Speedstep-not-working-properly-on-battery-...}
    Good news:  I have NONE of the throttling issues or inconsistent CPU frequency problems I was having before on AC or battery power.  Everything, including TurboBoost on battery works! It is completely fixed! (I have no idea how this factors into Lenovo’s statements that TurboBoost is disabled on battery “by design”. There is at least one other post from someone else that also reported TurboBoost was working for them on battery)
    Bad news: I don’t really know which one of the many things I tried actually worked. I am sorry I wasn’t more methodical about recording what I did and checking results, but this was my last ditch effort to get this fixed on my own without sending the system in for repair and frankly, I didn’t think it would work. Now that it has worked, I’m hoping my steps can help others.
    For anyone interested, here’s what I did… and before anyone says something like “That has nothing to do with managing power/cpu, why would that help?!… etc., please keep in mind I’m just stating exactly what I did. I am aware some of the steps may not be relevant, but who knows… We all know how weird PC’s are sometimes, even the smallest, oddest thing may resolve a problem.So anyway, here goes. 
    **IMPORTANT** Not sure how many noticed, but there was a new version of Power Manager released a few weeks ago, 3.62. The PM driver seems to have stayed the same. That alone could very well be the sole fix, I’m not sure. You may just want to completely remove PM and PM driver and install the latest version before trying any of the steps below.
    1)Made a complete system image via Windows built-in backup feature
    2)Disable any 3rd party fan/CPU control utilities (Throttlestop, etc). Make sure they are also not going to run at startup or from a   scheduled task
    3)Remove Power Manager Driver, then remove Power Manager software
    4)Reboot to Windows
    5)Remove all traces of the Power Manager drivers/software directories (think it was something like C:\readyapps and C:\drivers.) **For some odd reason after I did this, my wireless stopped working but it resolved itself by the time I was done with these steps, strange
    6)Reboot
    7)Access BIOS and reset all settings to default
    8)Boot into Windows, downgrade to BIOS 1.25 [UEFI: 1.25 - 8BET44WW / ECP: 1.14 8AHT32WW ]  via the Windows flash utility. I wanted to downgrade all the way back to 1.06, but the software would throw up some error for any version prior to 1.25 and wouldn’t proceed
    9)Reboot to Windows; make sure system booted w/ out issues
    10)Reboot again, access BIOS, reset to defaults again
    11)Shut down system
    12)Disconnect AC power. Remove main battery. Access and disconnect system backup (a.k.a CMOS) battery under keyboard. Discharge residual power in the system (there are various ways to do this, but you could just leave the battery disconnected for a few minutes).  Visually inspect the system for anything funky…my system had a slightly but noticeably loose CPU/GPU heat sink/fan assembly power connector.
    13)Reconnect backup battery. 
    14)Reconnect AC power but leave main battery disconnected.
    15)Power on. Should get a message indicating “checksum error, system time reset” or something like that.
    16)Reboot to Windows. Verified still okay.
    17)Downloaded latest BIOS version, 1.26. This time I burned the bootable BIOS flash CD instead of running it through Windows.
    18)Restart and boot from disc, flash BIOS to 1.26. Once complete, restart. Verify BIOS set to defaults.
    19)Boot back into Windows.
    20)Install latest Power Manager driver (1.62 ), reboot if/as prompted. Install Power Manager (3.62), reboot as prompted.
    21)Boot into Windows, verified Power Manager was active and working. Verified TurboBoost was working. Restarted system a few times and played around with Power Manager for a bit to see if the different power plans worked and retained the settings, all the while monitoring the Intel TurboBoost utility and PM’s own “power gauges”. Let system Sleep, changed power sources, resumed, etc. Everything was working great.
    22)Shutdown, reconnect main battery. Booted into Windows. Again, fiddled with Power Manager for a bit, switching between power plans and AC/battery power. Still worked great.
    23)Success! 
    That’s it.  Again, this is not a guaranteed fix guide. These are just simply the steps that I took on my system that resolved the problems many of us are having. Hopefully it will work for others.
    T520 4239-CTO | i5 2410M
    W520 4270-CTO | 2720QM | 16GB RAM | Quadro 1000M | BIOS 1.30 | PwrMgr 3.62

    All I basically did was download and install...
    (Chipset driver) http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/oss924ww.exe
    (PM driver)  http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/83ku14ww.exe
    Now, I did chipset first (didnt ask to reboot) then installed the PM driver (did ask to reboot)
    I rebooted.... then I went into bios (1.26) and set everything to default... then restarted saving changes...
    Since I prefer not using optimus I changed the display settings in bios right after saving the default settings...
    Not sure whether or not you really had to go into bios... but everything seems to be working...
    My settings in PM is set to Maximum Power in the Advanced tab,  3rd party monitoring tools is TPFanControl and HWInfo64.... 
    W520 (4270 CTO) | i7-2820QM | 16GB RAM 1333 MHz | Runcore MSATA SSD | 2x Kingston SATA2 SSD | Quadro 2000M | FHD | Windows 7

  • Secondary Index for the table MSEG

    Hi folks,
             One of my report is comparetively very slow when it is executed in the production server. when i chked, a query related to the MSEG table is taking more time to execute. I want to create a secondary index for that table. Could any body tell  me the procedure of creating the seconday index for the table MSEG, as i am not aware of that.
    Thanks in advance,
    Shyam.

    Dear shyam,
    Search SDN before posting any thread their are 10k threads available for your question anyhow for your reference here is one link
    http://help.sap.com/search/highlightContent.jsp
    Cheers
    fareed

  • Link between tables mseg and afvv

    Dear Sap Gurus,
    I need a report in which i can get production order wise production and cunsumption for all production order
    operations in a single report.
    i just want to know how to link mseg table in which i am having batch wise production and consumption with afvv table
    or any else in which  i can get operation nos of production order.
    Thanks and regards
    Shankar

    Hi,
    AFVV - AUFM by AUFPL as told above is best way, otherwise to join MSEG, you can use field AUFNR in tables MSEG & AUFM and further AUFPL to join AUFM & AFVV.
    Regards
    Trin

  • Tables MSEG and EQUI Link

    Hi All,
    Given a line from MSEG table, how can I pull all serials numbers related to this particular line item in EQUI? What other tables can link the two?
    I can use matnr and batch directly to access EQUI but then again two different MSEG line items can make use of the same matnr and batch.
    Please help.
    Thanks,
    Tyken

    HI,
    To get the serial number check the below code..
    here IT_MSEG is an internal table which contain data from table MSEG
    select amblnr amjahr azeile bsernr
        into table it_sernr
        from ser03 as a inner join objk as b
        on aobknr = bobknr
        for all entries in it_mseg
        where a~mblnr = it_mseg-mblnr and
                 a~zeile = it_mseg-zeile.
    Thanks!
    Brunda

  • Table J_1FVSCORE has no authorization problem

    Hi
    I am in a project where we will create .PAT files thru T code SSDC and SSDA  For that we have installed Additional AAK Tool 4.0 in our SAP server,  after installing AAK Tool 4.0 I have certain additional tables. We have a problem in one of the additional table  J_1FVSCORE, in se11 if I select this table J_1FVSCORE  and click on change option it goes into the next screen  but in that screen in menu ->  utilities  ->  Table maintenance Generator if I click on this it goes to the next screen and gives the message You have no change authorization and also I am unable to make any changes
    The user is having SAP_ALL rights, in su53   it gives the message All authorization checks successful, in the final screen I have noted the object and created a separate role for that object with * access and assigned to the user but still I get the message You have no change authorization
    Please help me
    Thanks
    Senthil

    hi
    check the status of the table.

  • Table MSEG with movement type 541

    Dear All,
    In order to display the PO number, we maintain the customizing for
    movement type 541 in Transaction Code OMBW. Here we change the indicator
    From 'Suppress' inot 'Opt. entry', then the created material document
    will display the PO number in Table MSEG.
    Similarly if we want to display PO line item number,in which part we should do the Opt. entry????
    regards,
    indranil

    As of my knowledge, It is not Possible.
    Any way in the same trxn code OMBW Check the commitment Item Once for 541 Mov type.
    Regards,
    Ashok
    Edited by: Ashok Kumar Telikula on Aug 29, 2008 2:50 PM

  • Safari CPU scheduling problems

    When I open a tab but remain on the current tab, Safari grind to a halt while the background tab loads. This is NOT a CPU load problem, for I am monitoring the CPU and there is plenty (I am on a G4, so not even clumsy limits to a single core can excuse).
    Things like right-clicking another link to create a new tab takes an age, as does scrolling, which often invokes the beachball. It is as if the foreground page is subordinate to the background tabs.
    This is unacceptable and no excuses outside of bad programming.
    Anyone else see this?
    Message was edited by: Baron Munchausen

    I had the Safari problem in terms of it getting hung up while loading web addresses and had to go through diagnostics every time I moved the laptop from office network to home instead of it switching automatically. How do I tell if Little Snitch is still there? I can see it in the download queue, but no where else. Also, even tho I have to switch manually to the office network and Safari is slow, at least I stay online here without Safari stopping or getting error messages, which makes me wonder if my router is messed up and contributing to problems. I have reset and unplugged my home router with no apparent effect. Sally

  • Performance tuning of Master Data Table: VBAK LIPS VBFA MSEG MKPF

    Hi, ALL
         How to improve performance to following statements: inner join.
    select  LIPSVGBEL LIPSVBELN MSEGMATNR MKPFBUDAT
               MKPFUSNAM MSEGLBKUM MSEGBWART MSEGWERKS
               VBAKIHREZ MSEGMBLNR VBAKAUART LIPSPSTYV
              MSEGLGPLA MSEGMEINS MSEGMJAHR MKPFMJAHR
    into corresponding fields of table it_out
    from ( VBAK
           <b>inner join</b> LIPS
           on LIPSVGBEL = VBAKVBELN
          <b> inner join</b> VBFA
           on VBFAPOSNV = LIPSPOSNR
           and VBFAVBELV = LIPSVBELN
           <b>inner join</b> MSEG
           on MSEGMATNR = VBFAMATNR
           and MSEGMBLNR = VBFAVBELN
           <b>inner join</b> MKPF
           on MKPFMBLNR = MSEGMBLNR )
          where VBAK~AUART in S_AUART
             and VBAK~IHREZ in S_IHREZ
             and LIPS~PSTYV in S_PSTYV
             and LIPS~VBELN in S_VBELN
             and LIPS~VGBEL in S_VGBEL
             and MSEG~BWART in S_BWART
             and MSEG~LBKUM in S_LBKUM
             and MSEG~MATNR in S_MATNR
             and MSEG~MBLNR in S_MBLNR
             and MSEG~MENGE in S_MENGE
             and MSEG~WERKS in S_WERKS
             and MKPF~BUDAT in S_BUDAT
             and MKPF~USNAM in S_USNAM.
    Thank you very much.

    Thanks all of you and your suggestioin.
    Now I have modified my original select statements to two parts.
    1. select LIPS VBAK VBFA to an internal table it_A
    2. select MKPF MSEG to an internal table it_B for all entries in it_A
    3. disuse "into corresponding fields of table"
    After that, my performance has improved for about 10 times.
    Welcome any other suggestions.
    Performance is an forever topic, I think:)

  • Report using table mseg

    Well i m makin a report on material consumption which gets the opening stock, purchase, consumption & closing stock of all the materials in a particular month.
    i m getting mblnr from mkpf table & then go to mseg table. but it is taking a lot of time. can i make it faster. how??

    hi,
        can u paste ur code here to know the exact pblm. if u r using read table statement then use binary search option with it.
      is u r using select in loop then avoid it and use for all entries to amke it faster.
      it would be nice if u paste ur code to know the pblm clearly.
      check tips in the run time analysis.
      hope this helps u.
    reward points if helpful.

  • Custom report -extract MSEG+MKPF and MD04 Entries

    Hi,
    My Base requirement is to SUM up MB51 quanity values monthly and also MD04 values for same material, plant, monthly dates and upload it to a custom table .
    So my code should update monthly a custom table which consists of
    Material,Plant ,quantity- SEP 06,quantity-oct 06,quantity- NOV 06 ..... quantity- DEC 07.
    For this I picked entries for MB51 like this & later using FM MD_STOCK_REQUIREMENTS_LIST_API to capture MD04 entries.
    but with this I can get only one month at a time? What is the good way to update all entries(For all months) at a time?
    SELECT MKPFMBLNR MKPFBUDAT MSEGERFMG MSEGBWART MSEGMATNR MSEGWERKS MSEG~MEINS
      INTO CORRESPONDING FIELDS OF TABLE T_MKPF
      FROM MKPF
      INNER JOIN MSEG
      ON MKPFMBLNR EQ MSEGMBLNR
      WHERE MATNR IN S_MATNR
      AND WERKS IN S_WERKS
      AND BUDAT IN S_BUDAT
      AND ( BWART = '101' OR BWART = '102').
      LOOP AT T_MKPF.
        MOVE T_MKPF TO WA_DATA.
        AT END OF MATNR.
          SUM.
          T_DATA-ERFMG = T_MKPF-ERFMG.
          T_DATA-MATNR = WA_DATA-MATNR .
          T_DATA-WERKS = WA_DATA-WERKS.
          T_DATA-BUDAT = WA_DATA-BUDAT.
          T_DATA-MEINS = WA_DATA-MEINS.
          APPEND T_DATA.
          CLEAR T_DATA.
          CLEAR : WA_DATA.
        ENDAT.
      ENDLOOP.
    LOOP AT T_DATA.
        CLEAR: V_MATNR, V_PLWRK.
        MOVE T_DATA-MATNR TO V_MATNR.
        MOVE T_DATA-WERKS TO V_PLWRK.
        CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
          EXPORTING
            MATNR                    = V_MATNR
            WERKS                    = V_PLWRK
          TABLES
            MDEZX                    = T_MDEZ
          EXCEPTIONS
            MATERIAL_PLANT_NOT_FOUND = 1
            PLANT_NOT_FOUND          = 2
            OTHERS                   = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        LOOP AT T_MDEZ WHERE DAT00 IN S_BUDAT.
          IF  T_MDEZ-DELB0 = 'PldOrd' OR  T_MDEZ-DELB0 = 'PurRqs'  OR T_MDEZ-DELB0 = 'POitem' .
            MOVE ABS( T_MDEZ-MNG01 ) TO Y_MNG01.
            ADD Y_MNG01 TO X_MNG01.
            CLEAR: Y_MNG01.
          ENDIF.
        ENDLOOP.
        T_OUTPUT-ERFMG = X_MNG01 + T_DATA-ERFMG.
        SELECT SINGLE MAKTX FROM MAKT
          INTO T_OUTPUT-MAKTX
       WHERE MATNR = T_DATA-MATNR
       AND SPRAS = 'EN'.
        IF SY-SUBRC IS INITIAL.
          MOVE T_DATA-MATNR TO T_OUTPUT-MATNR.
          SHIFT T_OUTPUT-MATNR LEFT DELETING LEADING ZEROS.
          MOVE T_DATA-WERKS TO T_OUTPUT-WERKS.
          MOVE T_DATA-MEINS TO T_OUTPUT-MEINS.
          APPEND T_OUTPUT.
        ENDIF.
        CLEAR: X_MNG01.
      ENDLOOP.
    Regards
    Praveen
    Message was edited by:
            PRAVEEN s

    Hi Praveen,
    Instead of picking up data from different place's, try to use single view or function module where you will get all required data.
    Regards,
    Amey

Maybe you are looking for

  • Error while cancelling the material document.

    HI, while cancellation of material document thru MIGO screen getting error Deficit of PU IR quantity 20.000 EA Message no. M7021 Diagnosis Shortfall below the specified stock level or quantity amounting to 20.000 EA. Diagnosis Shortfall below the spe

  • Error while testing sender SOAP scenario from XMLSpy-but can test from RWB

    HI, I developed one scenario with sender SOAP adapter and Receiver side ABAP proxy. Now I want to test my scenario. I tested my scenario  successfully from RWB-->Integration server Integration Engine. ( it posted successfully and I can see checked f

  • Problem with lifecycle

    Hi, I'm having some problems understanding the JSF lifecycle. I create a very simple page, with just one textfield: <h:inputText binding="#{test.testField1}" id="testField1" onchange="this.form.submit();" value="#{test.sampleText}" valueChangeListene

  • Exception raised in f4 help

    hi ,    i am new to this forum.i have a problem with my coding.just a simple program for creating a search help for select options. i paste my code below while i executing it it raise exception. i dono what is the mistake.pls anyone help me.thank in

  • Drop Down Lists that connect with eachother

    I'm trying to make a form in which I have the following fields: To: Company: Email: Fax: Now I want to do a drop down list because I have several contacts, but I want it so that when I chose the person in the "To:" field, it will put the company, ema