Enhancing Cusror Performance

Hi,
I am using Oracle8i on UNIX platform. I have written a PL/SQL block which opens two cursor on a huge table with 5 million rows.
Now the problem is that the block is too slow. Is there any way I can enhance the performance and keep using the cursors too ?
Thanks
Rachna Bareja

Can you limit the number of rows fetched, maximizing the index usage?
Hi,
I am using Oracle8i on UNIX platform. I have written a PL/SQL block which opens two cursor on a huge table with 5 million rows.
Now the problem is that the block is too slow. Is there any way I can enhance the performance and keep using the cursors too ?
Thanks
Rachna Bareja

Similar Messages

  • How can one decide which queries need BIA to enhance their performance?

    How can one decide which queries need BIA to enhance their performance?

    Queries with high data access times will usually require BIA. This can be found by using the Event IDs...
    Please do not post across forums - your earlier post was deleted as duplicate.
    Also search the forums before posting... this question has been answered earlier...
    Edited by: Arun Varadarajan on May 5, 2009 7:24 PM

  • Enhance game performance

    Hello,
    I'm not sure where is the correct place to post this topic. I think I'm in the correct place.
    First, my system specifications:
    - MSI K9N4 SLI
    - MSI R4850 512 (A little oced)
    - AMD Athlon 64 x2 3600+ @2.5 (oced to 4800+)
    - Seagate 160 GB 8 MB cache
    - 2 GB RAM DDR2 667 @511
    - Windows Vista x64 Ultimate
    The "problem" is the following: I'm playing Medal of Honor Airborne and Jericho, both in highest quality. The games performance in general terms is very quickly, the protagonist "walk" normal, no slowdowns, but when the game loaded for the first time I note a frame rate drop that some seconds later disappears and works as should. However when for example, I'm entering in new areas, a new frame per seconds drop is noted again.
    Running FRAPS in MOH Airborne show a average FPS of 25 and I think it's low!
    So, two questions:
    1) This motherboard supports only x8 speed PCIE ports. Is this the reason for the FPS drop? Or this affect only a little?
    2) I'm going to buy more memory, two modules of 1 GB each one. The system will be equiped with 4 GB in total. Maybe the games performance are being affected by the memory because Vista needs to read hard disk paging file?
    Thanks! 

    Thanks for the replies.
    What do you mean with sounds problems? The sound works well.
    The PSU is CoolerMaster Real Power Pro 550 Watts.
    I'm using Catalyst 8.7 final version. Unfortunately 8.8 doesn't work in my system even with my old card (x1550). When I load Windows CCC.exe close due to problems. Formating doesn't solve the problem so it's a bug from ATI. Maybe 8.9 will fix the issue as others users are having the same problem as me.
    What can I do to enhance game performance?
    I installed Alone in the Dark and it's playable, but when fire or explosions appear, a frame drop is noted 
    I'm playing this game in high quality too.

  • Add Qualification" free enhancement in Performance Appraisals

    Hi all
    I trying to activate the "Add Qualification" free enhancement in Performance Appraisals.
    Can anyone tell me:
    1. Can I use this enhancement only in the VB level?
    2. How to define correctly the "Refers to Attributes of"
    3. How can I set up that the scale will be according to the scale maintained in the Qualification (Q)?
    Tx a lot
    Maya

    Hello,
    You have within PM the possibility to extend the appraisal document with additional elements based on flexible criteria (for example employee, country assignment etc.). The added elements can be appraisal objects (VB/VC) or external objects (D, Q, etc).
    These added elements need to be defined in a way that the appraisal application understands it. If we take the Q object, it has no configuration that describes how to be used in an appraisal environment.
    Thats where the reference objects come in place. These objects tells the appraisal application how to behave in case of added new elements. A reference element is a VB or VC and has the same settings as a VB or VC you add fixed in a template configuration.
    So here you can then say, if you add one or more Q's to teh document then all these Q's use the settings of the reference object (and will use for example only FAPP with scale YHM as per column config on ref. object).
    If you have a fix or free enhancement then atleast one reference object needs to exist. however multiple reference objects are allowed, in the implementation of the fix/free enhancement you can then program which element is to be used when.
    in the config, double clicking on the entry after 'Refers to Attributes of' will navigate you to the reference object configuration.
    Hope this clarifies the concept of reference objects.
    Regards and Groetjes,
    Maurice Hagen

  • Hi folks, is it possible to enhance the performance of my iPhone 4 (running on iOs 7.0.4)? My iPhone has really become slow, applications like Facebook, WhatsApp, Viber etc take ages to load!

    Any help is appreciated!

    If you go to this page, Apple specifically states that performance enhancements for iPhone 4's are included in this update (scroll down to the bottom of the page).
    Some folks may have found that their iPhones don't seem to work as well with iOS 7, but that generally means there were other issues that were present prior to the update & they are only just now coming to light.
    If you still have issues after upgrading to iOS 7.1, the next thing to try would be to backup your phone & restore it as a new device, just to see if the issues clear up.
    If yes, something on your phone is corrupt; if no, you may have a hardware issue that requires the phone to be replaced.
    ~Lyssa

  • How can I enhance loading performance?

    Hi, all.
    I'm loding LUBM 50 data set during 4 hours in 11g release2 with new jena apaptor. (Linux 86_64, 16GB RAM )
    At First, several data files(.nt) is loaded within several minutes.
    But, as time goes by, and as the amount of the used memory is increasing, loading speed remarkably down.
    I don't know the reason.
    Now, it looks like the loading stopped.
    Could you tell me an advice?
    I'm using below code.
         private void init() throws Exception {
              String jdbcURL = "jdbc:oracle:thin:@" + Constants.HOST + ":1521:" + Constants.SID;
              OracleDataSource ds = new OracleDataSource();
              ds.setURL(jdbcURL);
              ds.setUser(Constants.ORACLE_USER);
              ds.setPassword(Constants.ORACLE_PASSWORD);
              OracleConnection conn = (OracleConnection) ds.getConnection();
              oracle = new Oracle(conn);
              modelOracleSem = ModelOracleSem.createOracleSemModel(oracle, modelName);
              graphOracleSem = modelOracleSem.getGraph();
              graphOracleSem.createTables();
              graphOracleSem.dropApplicationTableIndex();
              graphOracleSem.clearRepository();
         private void loadingData() throws Exception {
              String dataSetType = Constants.getDataSetType(dType);
              long start = System.nanoTime();
              Model model = ModelFactory.createDefaultModel();
              File dir = new File(Constants.DATA_PATH + File.separator + dataSetType);
              File[] fileList = dir.listFiles();
              File file = null;
              String inputFilePath = null;
              for (int i = 0; i < fileList.length; i++) {
                   file = fileList;
                   inputFilePath = file.getCanonicalPath();
                   System.out.println("Loading triples from " + inputFilePath);
                   InputStream in = null;
                   try {
                        in = FileManager.get().open(inputFilePath);
                        if (in == null) {
                             throw new IllegalArgumentException("File: " + inputFilePath + " not found.");
                        model.read(in, "", "N-TRIPLE");
                        graphOracleSem.getBulkUpdateHandler().addInBulk(GraphUtil.findAll(model.getGraph()), tableSpaceName);
                        graphOracleSem.commitTransaction();
                        graphOracleSem.flushAdd();
                   } finally {
                        if (in != null)
                             in.close();
              graphOracleSem.rebuildApplicationTableIndex();

    Thanks, DonnyDBA.
    Unfortunately, I don't have dba account for oracle 11g. I can not get the AWR report.
    I should find a way to enhance performance by programming code.
    But, I can see the information of system memory.
    Mem: 16442560k total, 16357228k used, 85332k free, 27092k buffers
    Swap: 18808816k total, 408304k used, 18400512k free, 11611716k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    4361 oracle 15 0 7291m 2.4g 1.8g S 1 15.1 250:11.62 oracle
    3815 oracle 16 0 6771m 1.8g 1.7g D 1 11.2 3:43.82 oracle
    3797 oracle 15 0 6737m 18m 16m S 0 0.1 0:00.64 oracle
    3630 oracle 15 0 81204 12m 9248 S 0 0.1 0:00.15 tnslsnr
    Whenever oracle load triples, memory consuming is increased. Now, oracle is using almost all memory.
    In this system, running program is only the test code.
    Is this a memory leak?
    If this is a memory leak, I think my test code have some problems.
    When flushAdd() or commitTransaction() method is excuted, do oracle return the used memory?

  • Enhancing Essbase performance using Exalytics box

    Hy,
    I moved my essbase platform to Exalytics. But, I'm disappointed. My calculation times still the same.
    It's a Hyperion Planning cube therefore it's a BSO.
    I put the ORACLEHARDWAREACCELERATION TRUE in the CFG. Changed data caches and commit blocks settings.
    I saw something about RAMDISK. But, if the power shutdown I lost my database !!!
    What is the infrastructure recommended ? Any help ?
    Thanks
    Marcos Botelho

      I am not believe in Exalytics because
          Essbase it is old man - and can't do utilisation  for all newest hardware.
                  --  Essbase CalcParallel - can't work correctly since 5 years from first implementation
                  -- Essbase Don't Really need in the RamDrive. in all performance test - it's getting only 20%  vs SATA II drive.
                 Because Can't Calc more data block in single CPU mode.
    My opinion it's simple
          -If you need real decision for getting better performance
            u have only one way -   It's redesign application:
                           Use simplest Essbase calculation
                            NEVER use CREATENONMISSINGBLK and other
                                   - create calculation from source slice
                                          FIX (Source)
                                             MBR1(
                                               target->MBR1=MBr1;
                                           ENDFIX
                           If u realy need big  complex essbase calculation - use Essbase Custom Relation Calculation.

  • Enhance the performance of FM!

    Hi,
    I have a FM which is using  inner Join statement from four DB tables for extracting selected fields into an Internal table as shown below:
    select ofield1 pfield2 tfield3 cfield4
    ( and so on upto approximately 30 fileds )
    into 
    (Itab-filed1, itab-field2, itab-field3, itab-field4, and so on ) from
    DB1 as o inner join
    DB2  as p on 0field1 = Pfield1 left join
    DB3 as c on pfield2 = cfield2 and
                       Pfield3 = cfield3  left join
    DB4  as t on pfield4 = tField4
            and  pfield5 = tfield5
    where conditions----
    Since the Join statements are really decreasing the performance, task now is to increase the performance by removing select and end select.
    Any ideas?
    Raj

    *Code to demonstrate select command
    *Code to demonstrate select into internal table command
    TYPES: BEGIN OF t_bkpf,
    include structure bkpf.
      bukrs LIKE bkpf-bukrs,
      belnr LIKE bkpf-belnr,
      gjahr LIKE bkpf-gjahr,
      bldat LIKE bkpf-bldat,
      monat LIKE bkpf-monat,
      budat LIKE bkpf-budat,
      xblnr LIKE bkpf-xblnr,
      awtyp LIKE bkpf-awtyp,
      awkey LIKE bkpf-awkey,
    END OF t_bkpf.
    DATA: it_bkpf TYPE STANDARD TABLE OF t_bkpf INITIAL SIZE 0,
          wa_bkpf TYPE t_bkpf.
    TYPES: BEGIN OF t_bseg,
    *include structure bseg.
      bukrs     LIKE bseg-bukrs,
      belnr     LIKE bseg-belnr,
      gjahr     LIKE bseg-gjahr,
      buzei     LIKE bseg-buzei,
      mwskz     LIKE bseg-mwskz,         "Tax code
      umsks     LIKE bseg-umsks,         "Special G/L transaction type
      prctr     LIKE bseg-prctr,         "Profit Centre
      hkont     LIKE bseg-hkont,         "G/L account
      xauto     LIKE bseg-xauto,
      koart     LIKE bseg-koart,
      dmbtr     LIKE bseg-dmbtr,
      mwart     LIKE bseg-mwart,
      hwbas     LIKE bseg-hwbas,
      aufnr     LIKE bseg-aufnr,
      projk     LIKE bseg-projk,
      shkzg     LIKE bseg-shkzg,
      kokrs     LIKE bseg-kokrs,
    END OF t_bseg.
    DATA: it_bseg TYPE STANDARD TABLE OF t_bseg INITIAL SIZE 0,
          wa_bseg TYPE t_bseg.
    *Select directly into an internal table
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO TABLE it_bseg.
    Select directly into an internal table where fields are in a
    different order or not all fields are specified
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO CORRESPONDING FIELDS OF TABLE it_bseg.
    *Select... endselect command
    SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
           dmbtr mwart hwbas aufnr projk shkzg kokrs
      FROM bseg
      INTO wa_bseg.
      APPEND wa_bseg TO it_bseg.
    ENDSELECT.
    *Select FOR ALL ENTRIES command
    SELECT bukrs belnr gjahr bldat monat budat xblnr awtyp awkey
      UP TO 100 ROWS
      FROM bkpf
      INTO TABLE it_bkpf.
    IF sy-subrc EQ 0.
    The FOR ALL ENTRIES comand only retrieves data which matches
    entries within a particular internal table.
      SELECT bukrs belnr gjahr buzei mwskz umsks prctr hkont xauto koart
             dmbtr mwart hwbas aufnr projk shkzg kokrs
        FROM bseg
        INTO TABLE it_bseg
        FOR ALL ENTRIES IN it_bkpf
        WHERE bukrs EQ it_bkpf-bukrs AND
              belnr EQ it_bkpf-belnr AND
              gjahr EQ it_bkpf-gjahr.
    ENDIF.

  • Enhancing performance

    hi experts,
                    I have z report which uses BSEG & BKPF tables. it taks time to execute. I ran code inspector but it didnt show any error in performance check tab. But still it takes around 95% Database time in Runtime AnalysisEvaluation. How could I enhance its performance. where I should search that where it takes more time. Below is the select statement that i used in z report.
    SELECT BELNR BUDAT FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IBKPF WHERE BLDAT IN S_DATE AND GJAHR = F_YEAR AND BUKRS EQ P_BUKRS.
    IF NOT IBKPF[] IS INITIAL.
        SELECT BELNR KUNNR BUKRS GJAHR BUZEI SHKZG VALUT SGTXT ZFBDT ZUONR DMBTR PSWSL ZTERM VBELN VORGN WERKS
                      FROM BSEG INTO CORRESPONDING FIELDS OF TABLE ITAB
                      FOR ALL ENTRIES IN IBKPF
              WHERE   BELNR = IBKPF-BELNR AND
                      BUKRS EQ P_BUKRS AND
                      KOART EQ 'D' AND
                      ( UMSKZ EQ SPACE OR UMSKZ EQ 'A') AND
                      ZUMSK EQ SPACE AND
                      KUNNR IN S_KUNNR AND
                      GJAHR = F_YEAR.
    ENDIF.
    LOOP AT ITAB.
    ENDLOOP.
    tHANKS.
    Khan

    Try using this code.
    TYPES: BEGIN OF ty_bkpf,
             belnr TYPE bkpf-belnr,
             budat TYPE bkpf-budat,
           END OF ty_bkpf,
           BEGIN OF ty_bseg,
             belnr TYPE bseg-belnr,
             buzei TYPE bseg-buzei,
             kunnr TYPE bseg-kunnr,
             shkzg TYPE bseg-shkzg,
             valut TYPE bseg-valut,
             sgtxt TYPE bseg-sgtxt,
             zfbdt TYPE bseg-zfbdt,
             zuonr TYPE bseg-dmbtr,
             dmbtr TYPE bseg-dmbtr,
             pswsl TYPE bseg-pswsl,
             zterm TYPE bseg-zterm,
             vbeln TYPE bseg-vbeln,
             vorgn TYPE bseg-vorgn,
             werks TYPE bseg-werks,
             budat TYPE bkpf-budat,
           END OF ty_bseg.
    DATA: w_bkpf    TYPE                 ty_bkpf ,
          w_bseg    TYPE                 ty_bseg ,
          w_index   TYPE                 sy-tabix,
          ibkpf     TYPE HASHED TABLE OF ty_bkpf
            WITH UNIQUE KEY belnr,
          ibseg     TYPE        TABLE OF ty_bseg.
    RANGES: r_umskz FOR bseg-umskz.
    SELECT belnr
           budat
    FROM bkpf
    INTO TABLE ibkpf
    WHERE bukrs EQ p_bukrs
    AND   gjahr EQ f_year
    AND   bldat IN s_date.
    IF sy-subrc EQ 0.
      REFRESH r_umskz.
      r_umskz-sign   = 'I' .
      r_umskz-option = 'EQ'.
      APPEND r_umskz.
      r_umskz-low    = 'A'.
      APPEND r_umskz.
      CLEAR  r_umskz.
      SELECT belnr
             buzei
             kunnr
             shkzg
             valut
             sgtxt
             zfbdt
             zuonr
             dmbtr
             pswsl
             zterm
             vbeln
             vorgn
             werks
        FROM bseg
        INTO TABLE ibseg
        FOR ALL ENTRIES IN ibkpf
        WHERE bukrs EQ p_bukrs
        AND   belnr EQ ibkpf-belnr
        AND   gjahr EQ f_year
        AND   koart EQ 'D'
        AND   umskz IN r_umskz
        AND   zumsk eq space
        AND   kunnr in s_kunnr.
    ENDIF.
    LOOP AT ibseg INTO w_bseg.
      w_index = sy-tabix.
      AT NEW belnr.
        READ TABLE ibkpf INTO w_bkpf WITH KEY belnr = w_bseg-belnr.
        IF sy-subrc EQ 0.
          w_bseg-budat = w_bkpf-budat.
          MODIFY ibseg FROM w_bseg INDEX w_index TRANSPORTING budat.
        ENDIF.
      ENDAT.
    ENDLOOP.

  • Order related Billing : Performance enhancement

    Hi Billing experts,
    We use order related standard CRM Billing (Periodic) and we have the below scenario.
    100 Customer share 1000 contracts with 0.5 Million Sales orders, undergo billing every month. currently it is taking 30 hours to finish the billing. our objective is to finish the billing in 15 hours.
    Please advise on how we can enhance the  performance of the billing.
    Regards
    Satish kumar

    Hi Ashis,
    Please follow below steps for your query:
    1. You will have to set two different billing types {one type for order related billing & one for delivery related billing} in sales document type configuration .
    2. The set up the relevant item category determination as per this sales document type, so that the proper item category will be picked up in the sales order level.
    3. Then set up the copy control fro the sales document type-billing document type at Header as well as Item level.
    I hope this will work out for your query.
    Reward points if you are satisfied.
    Regards,
    Hrishi

  • Redisgn for performance enhance.

    Hi experts,
    I have a problem which is a bit unclear at this point of the time. I have a program with two subroutines and its performance is very poor. So we decided to redesign it into three different individual programs. One for each subroutine and a'HAT' program which calls these two programs. Please let me know if this enhances the performance and if it is feasible.
    regards,
    anirvesh

    Hi Rob,
       The code is very large. Actually in one subroutine we are identifying the records to be updated and in the other subroutine we are updating the records. So the actual plan is to do parallel processing. So if doing parallel processing does the splitting of the program helps??
    Thanks.

  • Free RAM - a dif in iBook performance between 25M and 1G?

    Hi...I keep several programs running on my iBook 1.33 with 768 onboard. Activity Monitor shows that at its lowest, my free RAM dips to around 25 or so megs when I'm streaming video from a news site.
    My question is whether or not there is a difference in the Book's performance when I have 25 megs of free RAM....or 500 megs? Or being "in the green" means that there is simply enough...being "greener" won't make a difference...
    I know that more is always better, but I'd like to know if more is necessary.
    The answer will determine whether or not I switch out the 512 for a 1G.
    I'd appreciate any feedback...Thanx!

    In those instances where chip RAM is needed (and not in a video-intensive
    situation where you can't upgrade VRAM, and regular RAM is not shared)
    the chip RAM is faster and more readily is available to priority applications
    and the OS X system itself. And Virtual Memory (VM) is slower, due to
    the fact that is derived by the computer having to read-write to/from the
    internal hard disk drive, and that is a slower and less-direct process.
    Another way to speed up a limited upgrade option computer would be to
    pay to have (or be brave and suffer any consequences, and DIY) the
    internal hard disk drive replaced with a faster spin-rate new drive which
    also has a larger buffer - and - more free space. This and the chip RAM
    could make the computer act more like a faster model computer. At
    least until the hard disk drive gets fragmented and or more than 3/4 full.
    There are more than a few things one can do to enhance the performance
    of the hard to upgrade iBook G4 (or iMac G4) since you can't change the
    CPU or make the system bus work any faster. Bottlenecks aside, a few
    items that can be upgraded, along with a regimen of routine maintenance
    can help almost any computer not pushed beyond its limits, to work better.
    Even with a hard disk drive only 75% full, it can be more sluggish and
    waste processing and swap-file cycles (moving data bits as VM to/from
    the hard disk drive when taxing the limited resources of the computer)
    if the hard disk drive has never seen much maintenance. If you use an
    external FireWire enclosed hard disk drive, and learn how to clone the
    whole iBook's drive contents over, then be sure the clone-copy can boot
    the computer, before proceeding; you could use the disk utility to wipe
    the drive and use the zero-overwrite option, totally erasing and then to
    reformat the drive again, to clear any low-level issues and defragment
    the drive, (plus pull any seldom used saved items off the computer,
    to free-up hard disk drive space, for the system to use as swap & VM)
    you could also reclaim some of the original illusions of speed now lost.
    {As the computer's OS gets more and more parts, updates and also
    any application and associated files to sort through, it will run slower;
    VM also this adds into the mix, with a fuller and older hard disk drive.}
    In reference to: ' replacing an iBook G4's hard disk drive? ' you may wish to
    read links here: http://www.applelinks.com/index.php/forums/viewthread/142/
    In reference to bootable clones of OS X systems:
    http://www.bombich.com/software/ccc.html
    Minor to major background maintenance, preventative, can be helped
    through the use of this utility interface tool; it can help the OS X and
    your computer generally run a bit better. I use OnyX's 'automation'
    selection and also have this utility's preferences set for it to restart
    by itself after it runs all of the checkboxed items in this set. For this,
    see: Titanium Software - OnyX: http://www.titanium.free.fr/pgs/english.html
    Also, About Disk Utility's Repair Disk Permissions (& 'repair disk' from
    the booted installer's version of Disk Utility; research this further.)
    http://support.apple.com/kb/HT1452
    Sometimes, even just repairing those disk permissions can help; and
    the OnyX tool can run that, as part of the Automation sequence; but
    it should be run more often from D.U. than you'd need to use OnyX.
    Troubleshooting permissions issues in OS X (and using Disk Utility)
    http://docs.info.apple.com/article.html?artnum=106712
    There is a relationship between RAM, free HDD space as Virtual Memory,
    system maintenance, disk drive health, and other interrelated details.
    Good luck & happy computing!
    edited 2x to add links.

  • Performance of a report over a multicube?

    Hi,
    I have a report built on a multiprovider which sits over 3 ODS.This query takes a long time to run.
    To improve the performance...i was thinking of changing the indexes for ODS..
    And i cannot think of changing the query design..cuz i dont have an idea of query requirement..
    I am only here for Tuning..
    So r there anyother ways of improving the performance..
    Thanks,
    Sai.

    Hi.
      Creating index enhances the performance. Also since it is ODs, check in settings whether Bex reporting is ticked.. If not selected.. and you are running reports.. it creats SIDs at the time of reporting and the performance gets affected.
    Also go thru this How to build an efficient queries on multiprovider.this is a general document for the queries either Infocube/ODS built on multiprovider.
    https://websmp202.sap-ag.de/~sapdownload/011000358700009385892004E/HowToMultiProvider.pdf
    Hope it helps. Plz assign points if it is helpful for u.
    Thanks & Regarda,
    Pradeep.E

  • Performance improvement in select query

    Hi,
    I have to improve the performance of the one custome program. I applied SQL trace & found out that below extract of code is taking maximum time
    SELECT a~znumdos
               a~zdatctx
               a~zmotctx
               a~gpart                                 
               b~vkont
               d~zidbarcly                                     
               dzligne dzstatulig                            
               b~zmontdact                                     
               c~zrmot_statut                                 
               d~zcanal                                       
               g~crdat                                        
               p~schedpid
               f~ktokl                                        
          FROM zr025sar AS a
          INNER JOIN zr026sar AS b       ON bznumdos = aznumdos
          INNER JOIN zr027sar AS c       ON cznumdos = aznumdos
                                         AND cvkont   = bvkont
          INNER JOIN zr021sat AS d       ON czcanal = dzcanal
                                         AND czcontrat = dzcontrat
                                         AND czligne = dzligne
          INNER JOIN but000  AS g        ON agpart   = gpartner
          INNER JOIN fkkvkp  AS f        ON fvkont   = bvkont
                                        AND fgpart   = gpartner
          LEFT OUTER JOIN zr136sar AS p  ON pznumdos = aznumdos
          APPENDING TABLE t_ctr_data_2
        WHERE a~zcanal       IN r_canal                        
          AND a~zdatctx      NE c_null_date
          AND a~zdatctx       < l_date_act              
          AND a~zmotctx      IN r_motife              
          AND a~zetadoss     IN r_dossier              
          AND b~zdateevent    < l_date_his                
          AND d~zstatulig    IN r_ligne                           
          AND d~zdatstatulig NE c_null_date                         
          AND d~zdatstatulig LE l_date_mdf                   
          AND d~zplantarif   IN r_zptarif
          AND d~zstatugcr    IN r_statutgcr
          AND f~ktokl        IN r_categ.                       
    How can i use the for all entries in above code.. Will it enhance the performance of the code?

    unfortunately nobody can help you here.
    Your task depends on the actually used select-options (IN), on the actual distribution of the data and the available indexes on the z-tables.
    I would neither recommend you a view, which is just a dictionary stored join and also not a FOR ALL ENTRIES, which will not increase the performance but reduce duplicates at the end, whcih can change even the result.
    You must analyse the statement in detail and I would recommend you to get some support by somebody more experienced.
    Siegfried

  • MSS Performance for the top management

    Hi,
    We've just gone live with MSS and the top management are complaining about the performance of MSS when they select "All Employees" within any of the MSS links such as "General Information" or "Personnel Development". This is happening due to the number of records that the relevant RFC is trying to process for the top managers. Initially, we were getting lock exceptions but we have now increased the Lock timeout in Visual Admin to a longer interval of time.
    However, the business is very keen to know if we could actually enhance the performance of these iViews when a manager selects "All Employees" rather than "Direct Reports" only.
    Would really appreciate a quick response.
    Thanks,
    Vibhu

    Here is how I deal with Performance issues with portal iviews that call backend RFC, because the reason can vary:
    1. Ensure you have access to the backend system and transaction STAD, or a Basis Administrator you can work with.
    2. Log into the test system, or if you have to do this in production, get a top manager to log in and click the "All Employees" button
    3. Take that users backend id, and search it in STAD.
    4. Find the call that is taking too long. Look at the details and it should list the RFCs that are being called.
    5. If your, not too familiar with ABAP, then get someone who is and look at the RFC in SE37 to see what call is causing the problem. Also, search the RFC on the SDN / SAP Notes sites to see if there are any patches to enhance it.
    6. In this case, you may also want to ask the Functional Organizational Management person to review the config.
    Regards,
    Tom

Maybe you are looking for

  • How to create ALV as a POPUP in abap web dynpro?

    I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in E

  • Defect notification based on the operation

    Hi, We have task list operations and inspection characteristics attached to different operation. We are creating the inspection lot from the PM order release which has got task lists attached. We are doing the result recording through QE51N and recor

  • Commercial Invoice no at Migo

    Hi All, We are doing Migo for Imports PO , first we have done 103  and here the commercial invoice popup comes with no invoice number and we are just entering and saving the 103 document. Then  we are clearing the invoice for customs vendor in MIRO ,

  • IOS 7 devices do not sync with CalDAV on Mac OS X Server anymore

    Just like some Synology users I am facing troubles syncing my iOS 7 devices with my self-hosted calendars (CalDAV). I am using a Mac mini with 10.8.5 Server, a MacBook Pro with 10.8.5, an iPad 3 with iOS 7.0.2 and an iPhone 5 with iOS 7.0.2. What is

  • How to check that your FM is running from WS?

    Hi gurus! Are there any reliable methods to find out that your RFC FM is running from WebService? Thanks in advance.