First time execution problem

Hi All,
I have created a report on Vendors, used the tables LFA1, LFM1, EKKO, EKPO, T024.
When I execute the report for the first time it's taking around 8 Mins., On the other hand, When I execute the same report with the same variant, it's taking around 30 Seconds!
When I check the report in SM50, its showing EKPO sequential read.
Any, Hint to reduce the first time execution time.
Thanks,
Kal Chand

Hi All,
Thanks for your interest,
I am working on the Development&QA server.
This report is similar to standard report "MKVZ",
Adding additional fields...
MARK: I am coping the select statements
Regards,
Kal Chand
START-OF-SELECTION.
SELECT PLIFNR PKTOKK PNAME1 PSTRAS PORT01 PPSTLZ PLAND1 PSORTL QEKORG QVERKF QTELF1 FROM LFA1 AS P INNER JOIN LFM1 AS Q ON QLIFNR = PLIFNR INTO TABLE IT_VEND WHERE PLIFNR IN S_LIFNR AND QEKORG IN S_EKORG AND PSORTL IN S_SORTL AND PKTOKK IN S_KTOKK AND QSPERM NE 'X'.
SELECT DISTINCT PLIFNR PEKORG PEKGRP QWERKS FROM EKKO AS P
INNER JOIN EKPO AS Q ON QEBELN = PEBELN INTO CORRESPONDING FIELDS OF TABLE IT_PURC FOR ALL ENTRIES IN IT_VEND WHERE LIFNR = IT_VEND-LIFNR.
SELECT EKGRP EKNAM FROM T024 INTO TABLE IT_T024 FOR ALL ENTRIES IN IT_PURC WHERE EKGRP = IT_PURC-EKGRP AND EKNAM NE ' '.

Similar Messages

  • Select statement is taking lot of time for the first time Execution.?

    Hi Experts,
    I am facing the following issue. I am using one select statement to retrieve all the contracts from the table CACS_CTRTBU according to FOR ALL ENTRIES restriction.
    if p_lt_zcacs[] is not initial.
    SELECT
               appl ctrtbu_id version gpart
               busi_begin busi_end tech_begin tech_end
               flg_cancel_obj flg_cancel_vers int_title
             FROM cacs_ctrtbu INTO TABLE lt_cacs FOR ALL ENTRIES IN p_lt_zcacs
                                                    WHERE
                                                    appl EQ gv_appl
                                                    AND ctrtbu_id EQ p_lt_zcacs-ctrtbu_id
                                                    AND  ( flg_cancel_vers EQ '' OR version EQ '000000' )
                                                    AND flg_cancel_obj EQ ''
                                                    AND busi_begin LE p_busbegin
                                                    AND busi_end GT p_busbegin.
    endif.
    The WHERE condition is in order with the available Index. The index has  APPL,CTRTBU_ID,FLG_CANCEL_VERS and FLG_CANCEL_OBJ.
    The technical settings of table CACS_CTRTBU says that the "Buffering is not allowed"
    Now the problem is , for the first time execution of this select statement, with 1.5 lakh entries in P_LT_ZCACS table, the select statement takes 3 minutes.
    If I execute this select statement again, in another run with Exactly the same parameter values and number of entries in P_LT_ZCACS ( i.e 1.5 lakh entries), it gets executed in 3-4 seconds.
    What can be the issue in this case? Why first execution takes longer time?.. Or is there any way to modify the Select statemnt to get better performance.
    Thanks in advance
    Sreejith A P

    Hi,
    >
    sree jith wrote:
    > What can be the issue in this case? Why first execution takes longer time?..
    > Sreejith A P
    Sounds like caching or buffering in some layer down the i/o stack. Your first execution
    seems to do the "physical I/O" where your following executions can use the caches / buffers
    that are filled by your first exectution.
    >
    sree jith wrote:
    > Or is there any way to modify the Select statemnt to get better performance.
    > Sreejith A P
    If modifying your SELECTS statement or your indexes could help depends on your access details:
    does your internal table P_LT_ZCACS  contain duplicates?
    how do your indexes look like?
    how does your execution plan look like?
    what are your execution figures in ST05 - Statement Summary?
    (nr. of executions, records in total, total time, time per execuiton,  records per execution, time per record,...)
    Kind regards,
    Hermann

  • Interface is taking lots of time for first time execution

    Hello all,
    I have one inbound interface in which i am updating T-code CO01 ,CO15 , MIGO and MB1A respectively
    depending upon the condition in the incoming file.
    When ever i run this interface for the first time it takes lots of time for execution, but when i run the same interface again with the same file it is taking half time of the first time execution.
    I am not able to understand why it is taking lots of time for first execution and after that execution time is redued very much with the same file
    Kindly help
    Thanks
    Sachin Yadav

    thank you santhosh for your reply..
    as this program is in Production system it it taking 3 to 4 hour to execute.
    Previously it was OK but from last 2 to 3 moths it is taking more time.
    when i debug the code it is working fine. I din't find any point at which it is taking more time.
    I am not aware about buffers and SAP memory. can you plz help
    Do you have any idea why this is happening.
    Or how can i rectify the problem?
    Thanks
    Sachin

  • Slow first time execution

    Hi everybody!
    I 've written simple java application which uses the "substance" look'n'feel and that makes it to run very slowly for the first time when you run it, I used simple splash screen mechanism to show the main frame after executing main method, but when you click any button for the first time the whole application just hangs up for about 10 seconds, after that first pressing everything works fine.With java or windows l'n'f everything works without startup problem. Does anyone have any idea what is taking so long to execute button actions for the first time with "substance"?
    Any help would be appreciated! Thx!

    All right!!!! I see, I have to answer to my question myself. Hey people! I have found the answer, actually one of them probably, maybe you know that already but I didn't , the button which I wanted to press was big(this for sure you didn't know), when I made it smaller the first execution time decreased accordingly, now I've got it 10 times smaller button and you almost can't see the difference between first pressing and the next, I thought the JButton takes as much memory or processing work as another JButton but this is not true - as you guys have probably heard before from one girl or another - Size really matters!!! :)

  • First time launch problems - no transition fx - iSight turned itself off

    Just got a new 2gHz white MacBook. Migrated my old Home folder from clone of dead Tibook 10.3.9 via iPod. Before opening iMovie HD 6.0.2 for first time, I trashed the old iMovie I believe migrated.
    Updated to 10.4.7 released today.
    iMovie HD 6.0.2 imediately reported 'There is a problem with the transition effect X' repeatedly. I could Cancel or Okay, but no Fix, so I okayed each and selected Make Magic Movie.
    Next I selected iSight (built in), MPEG-4 Widescreen. iSight powered up and I could see myself, but when I continued, iSight powered down, and I gave up.
    Thanks in advance for any help. Feel free to email [email protected]

    Mike,
    Magic Movie is meant for pulling already shot video off a camera and creating a movie.
    Perhaps that's your problem.
    If you are just going to use your built in iSight, choose iSight as the video format when you create a new project.
    Not sure about the other error message. Have you ever installed any third party plugins for iMovie.
    Matt
    Message was edited by: Matthew Morgan

  • First time post problems on older Multivision PC

    Hope you can help!
    Found all the posts here really useful stuff, never paid much attention to Powersupply probs before. Trying to keep the old box running, but have ordered new Carrera self spec tower, arriving in about 2 weeks. Asus mobo 3200 Barton 1 gig matched DDR etc.
    General probs on system the one described in signature:
    * 1700 wont run at 133 FSB, only 100FSB locks up during Windows startup about the time keyboard and mouse draw power.
    locks up during large file copying or installation. Problems reinstalling XP CD stops about 80%. Won't complete SP1 installation.
    CPU temps
    Idle 39=40 Load 44-45   Case temp 37 (taken from BIOS and Fuzzy Logic).
    Your stuff on PSU's doesn't mention much about USB devices. really the only additional stuff I have added over time to the original build. About 5 devices including FF Joypad, CF card reader, Wacom graphics tablet, Mouse, webcam.
    Would this tip the PSU over the edge??
    After initial large crash, tried to repair XP it deleted files but wouldn't install so bought new hardrive for clean install hence system now has 40 and 60 gig.  Needed old hdrive for backup of work files (rescue poor backups) installed new CDrom writer incase prob with reading XP disks.
    Bios is up to date (Live update confirms)
    Via 4 in 1 drivers updated
    Ffresh download of S/B live drivers installed
    Fresh update of Leadtek graphic drivers.
    I don't see much change from original spec, unless PSU on the limit in the first place. Only addition is now extra Hdrive and Lan card. Really want to get this running stable back at 133 FSB so before I investigae the CPU cooling and add extra case fans replace Powersupply etc. Can any one think of anything else to consider?
    Thanks for reading hope you can help.

    Update and thanks
    New carrera arrived singing Barton 3200+ 1gig paired 3200 SATA HD Etc
    Old system finally bit the dust, changed everthing to get it going finally picked up a ASUS A7N8X -X for £30 on Ebayn added Barton 2500+ and 512mb 3200 and all is well again.
    So the MSI KT266 must have been causing the probs. But thanks to you guys I now understand a little more about power supplies (Antec Truepower installed) and CPU cooling (Vantec Aero 2) keeping the Barton 2500+ at 35 idle and 43 load.
    Bought the 3200 stick for some comfort when I begin to investigate the potetial of the Barton 2500+. Currently running at stock only finished building yesterday!!
    The ASUS forums aint a patch on the expertise here.
    Happy endings
    Thanks for the input.

  • Lenovo Essential B490 first Time Booting Problem

    Hi,
    I have just purchased new Lenovo Essential B490 (59-364701) Laptop (2nd Gen PDC/ 4GB/ 500GB/ DOS) from flipkart. Here is the link of the product - http://www.flipkart.com/lenovo-essential-b490-59-364701-laptop-2nd-gen-pdc-4gb-500gb-dos/p/itmdm5ukv...
    When I turn on the laptop it show just dos screen. It asked to input date and then time. Then its showing c:.
    Like this.....It dont show any option to go to boot menu so I can install windows. Please help me. thanks in advance.
    Solved!
    Go to Solution.

    hi mkshakya,
    Thanks! Okay!
    now first make sure the system is OFF
    Press the power button and start hitting F2
    You will boot to Lenovo BIOS Screen and here are the settings you need to change
    First go to the Exit TAB and look for these settings
    Either:
     OS Optimization or OS Optimized you will Need to change it to Compatible or Other OS.
    Next go to Configuration TAB and Security TAB and look for Secure BOOT set it to Disabled.
    Last would be to go to Boot Tab and look for these settings.
    UEFI boot - Set it to disabled
    Boot Model - set it to Legacy
    Boot Priority - Set it to Legacy First
    Now hit F10 and it should ask you to save and exit just hit Enter for Yes.
    After hitting enter your system will restart now quicly start hitting F12 on your keyboard and this will give you an option to Select where to boot, just choose your ODD driver with the Windows CD in it.
    (If it did not give you the options restart the system and try hitting F2 again.
    Let me know your findings
    Hope this helps
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • First time build, problems detecting SATA

    I just got done putting together my first build, everything went well, until I attempted to boot up, I can get into the bios and the mobo beeps once, but when I'm in the bios there are no SATA detected the bios is set on IDE and toggling between all the settings is not working no dvd, and no hardrives show up. They all have power(i can hear the hard drives spin up and the dvd drive will eject)
    I've attempted swapping cables and ports galore, but to no avail.
    I'm out of ideas, anyone have any tips?
    Also If it helps, I pulled the drives and dvd drive out of my last computer and they were working just fine.
    Part list permalink / Part price breakdown by merchant
    CPU:  Intel Core i7-2600K 3.4GHz Quad-Core Processor  ($308.99 @ SuperBiiz)
    CPU Cooler:  Cooler Master RR-B10-212P-G1 76.8 CFM Sleeve Bearing CPU Cooler  ($24.99 @ SuperBiiz)
    Motherboard:  MSI Z68MA-ED55 (B3) Micro ATX  LGA1155 Motherboard  ($157.55 @ Newegg)
    Memory:  G.Skill Ripjaws Series 8GB (2 x 4GB) DDR3-1333 Memory  ($39.99 @ Newegg)
    Video Card:  EVGA GeForce GTX 560 Ti 1GB Video Card  ($228.99 @ SuperBiiz)
    Case:  Rosewill Blackbone ATX Mid Tower Case  ($44.98 @ Newegg)
    Power Supply:  Raidmax 730W ATX12V / EPS12V Power Supply  ($59.99 @ SuperBiiz)
    Operating System:  Microsoft Windows 7 Home Premium SP1 (64-bit)  ($91.98 @ Amazon)
    Total: $957.46
    (Prices include shipping and discounts when available.)
    (Generated 2011-10-01 17:50 EDT-0400)
    Hard drive(s) : Barracuda 1tb / Hitachi Deskstar 3.5" 1TB 7200RPM SATA II
    DVD drive : Dell?
    Thanks
    Edit: Also Here are some photos of whats going on, in case that helps diagnose the problem.
    http://imgur.com/a/yO00s#aTsnU

    Quote from: HU16E on 03-October-11, 06:09:20
    Give this a try. OS HDD in SATA 1 port, 2nd HDD in SATA port 2. ODD & front case can be left as is. What controller mode was the OS installed with in the other system? With a new system, it is almost never a smooth transition with a HDD that has a previous OS on it. All the chipset drivers & other drivers will be wrong for the new system. A new fresh install is always the only sure-fire way to go.
    This is what i started with, the original HD is IDE, but even still, the SATA ports wont register ANYthing, it's like the connection is broke.. I'm getting in touch with them through customer support. Hopefully they will be able to help / replace the board. I posted on some other forums and they all led back to the motherboard being faulty. I even ripped everything back out of the case and laid the board on cardboard, and it was the same thing.
    I appreciate your help.

  • Lenovo Essential G500 - First time booting problem

    Hi,
    I have purchased the laptop (Lenovo Essential G500 (59-370358) Laptop (3rd Gen Ci5/ 4GB/ 500GB/ DOS)) using flipkart.
    The product link is http://www.flipkart.com/lenovo-essential-g500-59-370358-laptop-3rd-gen-ci5-4gb-500gb-dos/p/itmdmugyk...
    I have booted the laptop firsttime. It asked to input date and then time. Then its showing c:. Windows 8 is not loading.
    Not sure, why the windows 8 is not loading.
    Solved!
    Go to Solution.

    hi senthil_naga,
    Welcome to Lenovo Community Forums!
    Based on the page where you purchased it
       It says  Operating system is DOS 64 bit
    Spoiler (Highlight to read)
    What your system has is a DOS based interface
      You will still need to purchase a Windows 8 Installer for it.
    Best Regards
    Solid Cruver
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Advanced edit hyperlink-properties grayed out the first time

    advanced edit hyperlink-properties grayed out the first time
    Sub Problem:
    When using the advanced edit cursor, right click Is used to select a hyperlink-properties the first time the dialog box pops up it does not have “focus” (not sure that is the right term, but the box is grayed out and will not respond to the keyboard.). It must be mouse clicked to get focus. The second time a link is right clicked to properties the popup responds to the key board and will move to the action tab with ctrl-tab
    It’s not clear to me where the acrobat program is at that point.
    Is that a known action or problem with acrobat pro 9.4.4?
    Is there a key or keys from the keyboard that can force focus to the box?
    The problem is each file I open I have to manually find a link and right click it to get the box then click in the box to get “focus”. After the first one the box pops up with focus.
    John
    Main Problem:
    I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
    To jump to a local copy of the files with a relative type link
    ../folder1/file1.pdf and then go to the proper page.
    I have found that it can be done manually by changing the hyperlink to a javascript
    var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
    and setting each destination file with a disclose()=true;
    Based on the help so far that java script cannot access the hyperlink value in a link
    See: http://forums.adobe.com/thread/1039908?tstart=60
    I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
    Four folder level acrobat javascripts with “buttons”
    One to get all the link quads in an array, in the pdf and report the total number
    The second creates a form field in the far corner of the first page and moves there.
    The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
    The forth deletes the form field
    The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
    The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
    To the acrobat file into a java script (after deleting the hyperlink)
    Rinse/lather/repeat
    I have been able to convert about 150 links an hour.
    Better then hand typing, but not like having java access to the links.
    I am looking to improve the solution

    Rick,
    I didn't intend to say you must close the X box after each
    apply. It's OK to apply one change and go to another item before
    closing the dialogue. It's the OK button that messes up sometimes.
    Even when you hit the Apply button for a very large selection
    of topics, the OK button sometimes will undo the apply, not
    necessarily for all selected topics. Even when you've made just one
    batch change.
    I think it's because OK tries to re-set all settings (that's
    why it takes forever), but does not correctly pick up the mass
    changes previously applied. Or maybe it takes forever because it
    can't find the new info and defaults to the existing settings.
    A pain in the butt when you're trying to apply a stylesheet
    to a very large number of topics. Please don't ask me to define "a
    large number."
    Maybe it's a space limit in RH, similar to the space limit
    for the number of characters in a batch of file names you want to
    import. Or maybe the OK button doesn't look in the right places.
    Harvey

  • Second Time, RFC execution Problem!

    Hi all,
    Has any one encountered this problem, when calling RFC First time fine and getting data from BAPI, when i call same RFC again, Second Time, RFC execution Problem!. Any idea!, Now i restarted server, that may cause the problem. Other than this, please give me your idea.
    Thanks
    Ravi Golla

    Hi Bhavik,
    <b>In View Controller:</b>
    public void onActionCreateProject(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateProject(ServerEvent)
        wdThis.wdGetArchCompController().CreateProject();
         wdThis.wdFirePlugOutToProjectCreationResult();
        //@@end
    <b>In Custom Controller:
    </b>
    wdDoInit()
    __Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
         wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
    public void CreateProject( )
        //@@begin CreateProject()
         try
                             wdContext.current__Arch__Arm_Project_Create_InputElement().modelObject().execute();
                             wdContext.nodeOutput().invalidate();
                        catch(WDDynamicRFCExecuteException ex)
                             wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
                             ex.printStackTrace();
        //@@end
    I am using other functional modules they all working fine, this is one only has problem
    Thanks  Bhavic.
    Regards
    Ravi

  • How come whenever i plug my iPhone 5 into the computer the device will not show up on my itunes.  This is the first time that i have done it since i updated to iOS7 and before i had no problem but now it just wont work.

    How come whenever i plug my iPhone 5 into the computer the device will not show up on my itunes.  This is the first time that i have done it since i updated to iOS7 and before i had no problem but now it just wont work.

    Hi Celia51510,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    I can't tell from your post if you are using a Windows or a Mac Computer.
    Try deleting the iTunes application and redownloading the version you need below:
    iTunes 11.1 Download for Mac
    http://support.apple.com/kb/DL1614
    iTunes 11.1 for Windows (64-bit)
    http://support.apple.com/kb/DL1615
    Cheers,
    - Judy

  • TS3274 its almost 10 months,i purchased ipad2 32 3g wifi.itinially i got problem with applications shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs freq

    its almost 10 months,i purchased ipad2 32 3G wifi.itinially i got problem with applications and safari shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs frequently.plz advise.

    If you have followed the standard Apple troubleshooting processes (see user guide )
    probably a trip to the local Apple Store Genius bar is called for before warranty runs out
    Assuming the iPad has been released in your Country if not you may have to take it to a
    neighbouring Country where it is available
    This page will tell you ,via the drop down menu Countries that can support iPad
    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=ipa d

  • An error has occurred while accessing SQL database or system resources. If this is the first time you have seen this message, please try again later. If this problem persists, please contact your administrator.

    I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
    is the first time you have seen this message, please try again later. If this
    problem persists, please contact your administrator."  When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields." 
    The last time I checked it was working, I'm not aware of any new updates installed recently?  I did a full Profile Synchronization as well, but still not working, please advise? -- Evenstarline

    Hi Sara,
    First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account.  I
    was able to do this way after we upgraded from SP 2007 to SP 2010 as well.   I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
    my novice questions below?
    1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
         Error generating in red towards top of the audience page..."One or more values typed on this page are not valid.  Check the text for the indicated fields."
         Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
    2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm).  Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"?  I checked all
    3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
    3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem?  What does it do?  And How do I run it?
    4. I'm also new to viewing the ULS log.  I'd just downloaded a viewer for it.  I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
    Admin is installed)?  There's so many of them, what should I be looking for exactly?
    Evenstarline 

Maybe you are looking for