Fine Tuning REPORT

Hi,
I want to know about fine tuning a report. One way, I know is to break the query which extracts data from different tables separately and finally joining it using FOR ALL ENTRIES.  What are the different methods to fine tune a report.
Please reply with suitabe answers.

Hi
see this
1) Dont use nested select statements
2) If possible use for all entries in addition
3) In the where addition make sure you give all the primary key
4) Use Index for the selection criteria.
5) You can also use inner joins
6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234
ABAP performance depends upon various factors and in devicded in three parts:
1. Database
2. ABAP
3. System
Run Any program using SE30 (performance analys) to improve performance refer to tips and trics section of SE30, Always remember that ABAP perfirmance is improved when there is least load on Database.
u can get an interactive grap in SE30 regarding this with a file.
also if u find runtime of parts of codes then use :
Switch on RTA Dynamically within ABAP Code
*To turn runtim analysis on within ABAP code insert the following code
SET RUN TIME ANALYZER ON.
*To turn runtim analysis off within ABAP code insert the following code
SET RUN TIME ANALYZER OFF.
Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
Avoid for all entries in JOINS
Try to avoid joins and use FOR ALL ENTRIES.
Try to restrict the joins to 1 level only ie only for tables
Avoid using Select *.
Avoid having multiple Selects from the same table in the same object.
Try to minimize the number of variables to save memory.
The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
Avoid creation of index as far as possible
Avoid operators like <>, > , < & like % in where clause conditions
Avoid select/select single statements in loops.
Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
Avoid using ORDER BY in selects
Avoid Nested Selects
Avoid Nested Loops of Internal Tables
Try to use FIELD SYMBOLS.
Try to avoid into Corresponding Fields of
Avoid using Select Distinct, Use DELETE ADJACENT
Check the following Links
Re: performance tuning
Re: Performance tuning of program
http://www.sapgenie.com/abap/performance.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
check the below link
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
See the following link if it's any help:
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Check also http://service.sap.com/performance
and
books like
http://www.sap-press.com/product.cfm?account=&product=H951
http://www.sap-press.com/product.cfm?account=&product=H973
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Performance tuning for Data Selection Statement
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
Debugger
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
Run Time Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
SQL trace
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
CATT - Computer Aided Testing Too
http://help.sap.com/saphelp_47x200/helpdata/en/b3/410b37233f7c6fe10000009b38f936/frameset.htm
Test Workbench
http://help.sap.com/saphelp_47x200/helpdata/en/a8/157235d0fa8742e10000009b38f889/frameset.htm
Coverage Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
Runtime Monitor
http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
Memory Inspector
http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
ECATT - Extended Computer Aided testing tool.
http://help.sap.com/saphelp_47x200/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
Just refer to these links...
performance
Performance
Performance Guide
performance issues...
Performance Tuning
Performance issues
performance tuning
performance tuning
You can go to the transaction SE30 to have the runtime analysis of your program.Also try the transaction SCI , which is SAP Code Inspector.
1 Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
2 Avoid for all entries in JOINS
3 Try to avoid joins and use FOR ALL ENTRIES.
4 Try to restrict the joins to 1 level only ie only for 2 tables
5 Avoid using Select *.
6 Avoid having multiple Selects from the same table in the same object.
7 Try to minimize the number of variables to save memory.
8 The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
9 Avoid creation of index as far as possible
10 Avoid operators like <>, > , < & like % in where clause conditions
11 Avoid select/select single statements in loops.
12 Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
13 Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
14 Avoid using ORDER BY in selects
15 Avoid Nested Selects
16 Avoid Nested Loops of Internal Tables
17 Try to use FIELD SYMBOLS.
18 Try to avoid into Corresponding Fields of
19 Avoid using Select Distinct, Use DELETE ADJACENT.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Small fine tuning is required in the calculation

    Hi Gurus,
       BI PM module for the report Schedule attainment filtered for one order.
    The result supposed to be Total job scheduled = 1, completed orders = 1 and No of orders completed on Schedule = 0. However, the report shows, Total job scheduled = 7, completed orders = 1 and No of orders completed on Schedule = 0.
       By this what happens is that total jobs scheduled become 930 for Plant = 2200, Planner Group = P01, Order Type = PM03 while Completed orders and Completed orders on Schedule is correct.
        ie Formulae in update routine IF( IS_INITIAL( /BIC/ZIBFDCH ), 1, 0 ).
        Please tell the small fine tuning in the calculation, points will be assigned.
    Regards,
    Kiran A

    Answer Finded

  • SCOM fine tuning

    Hi, 
    i've basic question in system center world.
    i've deployed scom new installation with big workload all Microsoft products. once i imported Management pack, i received tons of error and notifications, servers status goes critical in about 18 server.
    how i can quick check and fix that, should i do that one by one or i can apply setting generally to do basic fine tuning and how i do that ?
    i red some and used most common report but i don't know i can disable all this events for time been.
    thanks, 

    Hi,
    Usually, you don´t want to import a lot of management packs at a time since they require different amounts of configuration and tuning once imported. If you haven´t done so, read the Mangaement Pack documentation that comes with every MP (or download the
    documentation if you´ve downloaded imported the MP´s from inside the SCOM console). Some MP´s requires almost no configuration while others requires a lot of configuration to function properly.
    There is no quick fix as you will have to tune the thresholds to better suit the needs of your organization. To find out what is wrong with each server, navigate to Monitoring -> Windows Computers -> Pick on of the crititical servers -> Righ click,
    choose Open and then Health Explorer.
    Inside the Health Explorer you will see what you have to do to that server but you really need to look through the Management Packs documentation, other wise you won´t get a proper monitoring.
    Regards,
    Daniel
    IT Consultant at Viridis IT

  • To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    To extend a clip I have `Show Fine Tuning controls' turned on in my iMovie 11 preferences, but the blue forward/backward buttons don't appear.  To get the orange handle bar, is there a hotkey?

    That's a comment in the file. It has no effect at all.

  • Fixing Radio: Fine tuning songs (Hits, Variety or Discovery Mode)

    Our radio has always been weird, you never know what songs it plays, and it always REPEATS THE SAME GOD darn SONG over the past hour.
    It's time to fix it. 
    If you've tried, or at least clicked into an app of a competing service, this is how it looks like:
    You can kinda tune the station to WHAT YOU LIKE, for eg, Hits, Variety, or Discovery and the radio will adapt what you want to hear.
    Here's another example (A not very solid example though):
    As you may know, Echo Nest is now a Spotify company, anyway, this shows the radio where you can slide to whether artist only or discovery in general (This might not be a good example, as if I just wanted to listen to the artist, I would've just went into the artist page and click on Shuffle Play.)
    Here's another example:
    This is a relatively new music service, but if you've tried its radio, you wil find out that its really really spectacular. You can tell the service what is your mood and it plays songs based on that, but if that's not enough. It actually has brand new algorithms that is built just for this, I read somewhere that it even monitors your location, the songs you play in that location/event, the volume the song is playing and when you hit the radio mode, it will analyze all of this algorithms and play based on that.
    So the radio needs improvements in its really bad algorithms and a fine tuning option.
    PS: If you go the comments section of this idea, in page 2,  bought up a really good visual of a competing music service vs Spotify when using the radio, if you've time you should take a look and if possible share more of the problems that you face with Spotify Radio.

    "Improving Station" is a joke.  I have a station based on Laura Nyro.  I keep getting the same very popular Nyro songs (but even that rarely) and some other 60s, 70s, 80s female vocalists.  Nothing newer.  I also get a ton of stuff nothing like Nyro, including male vocalists and male bands.  How many times do I reject anything of Elvis Costello before you stop playing it?  Same for many other artists.  You really need to track that if someone has rejected every one of an artist, quit playing that artist. Or, better, provide as has been suggested elsewhere here, a button "reject artist."  I've nothing against Costello, or Lightfoot, or the Doobies, or Bread, or many of the artists you put forth on my Nyro station.  I just don't want anything besides lilting female vocalists on my Nyro station.  (As well as much more Nyro.) Your learning algorithms are a joke, song by song is useless-- I have to come running back to the computer to keep rejecting stuff, even though I've been trying to "improve" the station for weeks.

  • Configurable Code-list not Extendable in Fine-Tuning.

    Hi
    I am facing some problems while changing the values in Code-list while using fine tuning process in Configuration. I have created three code-lists and then being added to configuration using BAC.
    In this BAC I have created one business Topic and three separate business options. Each business option is linked with each bcc (business Configuration Set).
    Now when I go to and “Edit project scope” I am able to get the code list on my UI using extension fields and values are there too. But the problem I am facing is that in “Open Activity list” when I open the Business Options NOT all the options are opening properly.
    Although I have got some of them opening fine and let me make changes while others are showing errors.
    Any Advice Please.
    Many thanks in Advance.
    Regards
    Asad

    Yes i have regenerated now and still the same problem is there.
    Yes the flag has been selected in the BC SET.
    in Fine tuning there is slight difference in BOTH BC views.
    One with normal behavior only shows the code in code list while the one with Issues/Problems is showing code & Description in same CODE column while some Times it does show only code though?? 
    Any guess here?
    Regards
    Asad

  • Few Methods of fine tuning query

    I want to know few methods of fine tuning the query

    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/toc.htm

  • Fine-Tuned Control: Purchase Order

    Hello
    When I make : SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define message type for purchase order->Fine-Tuned Control: Purchase Order
    What means the  U=>Update print-dependent data
    Somebody could tell when I can use it, and tell me the impact of this.
    Thanck you very much for your help.

    Hi,
    If you select this indicator "Update print-dependent data" under Fine-Tuned Control option then in PO, if you click on "Print Preview" button then system will not show the pop-up screen (which contains all the print parameters, default printer, Logical destination, etc...). And system will consider the output type as default for print preview for which "Update print-dependent data" is marked.

  • Raw Fine Tuning 2.0 not available?

    I'm using the Trial version of Aperture 2.1.2 and tried editing FujiFilm FinePix S2 Pro raw images. For Raw Fine Tuning, only versions 1.0 and 1.1 could be selected (and thus sliders such as "Recovery" are unavailable). I did a Software Update (which installed Raw Converter 2.5), and I restarted my system. No apparent change: only 1.0 and 1.1 are the choices.
    Does this mean that Raw Fine Tuning 2.0 is not available for FinePix S2 Pro raw images?

    Perhaps...
    I can understand if Apple chooses not to support or to discontinue support for a particular image type, especially given the Fuji circumstances. And I appreciate the ability to do a 30-day free trial. I guess where I got a little irked is that I had to spend time troubleshooting a problem I thought should have been documented (it is not a bug; it was a decision that affects the availability of product features).
    Thanks for the replies, Brian.

  • Latest batch of RAW files has all the raw fine tuning options greyed out

    I shoot about 1000 images a week with my 40d and edit/organize all of them in Aperture... the latest batch (a pretty important batch at that) of 800 or so imported fine but does not allow me to use the 'Raw Fine Tuning' options as if they are JPGs. I can still go to the images i imported last week and the RAW fine tuning works fine, even some in the same album... any ideas?
    Aperture 1.5.6

    more informaion:
    today's images imported fine, so you can rule out the security patch.
    even more peculiar i exported some of the images, and imported the same masters back in and much to my suprise the RAW fine tuning works. I rebuilt the library hoping that would help but it didn't, I'm just going to go back through the library and re-tag and rate my picks from the shoot, but any idea on how to keep this from happening again? it has to be some wacky setting or something, I can export the broken image and the import it again and it works fine.
    any help would be appreciated
    mark

  • RAW Fine tuning

    The RAW Fine tuning options are not showing up in my adjustments hud. I have Aperture 1.5.6. I can't find a way to add this to my adjustments hud. How can I add this?

    What camera are you using? I don't think that Aperture supports raw fine tuning for every camera—only those with optimized support.
    Cheers,
    Andreas

  • Fine tuning with 3D roatation tool?

    Hi,
    I'm wondering if there is (and I feel there HAS to be) a way to fine tune movements with the 3D rotation tool. Using the mouse works to an extent, but just like nudging movements with the arrow keys, it's sometimes impossible to get the placement I want with mouse dragging. I'm pretty new to using these tools so maybe it's super obvious and I'm missing it?
    Thanks!

    Use the Motion Editor to do some great fine tuning. You can adjust each property separately and it will give you much better control.

  • Windows Operating system Fine tuning for Hyper-v 2012 role

    Hi Team,
    we are installling windows 2012 Hyper-v in GUI Mode in Datcenter Edition. i have 5 host and each carrying 128 GB of RAM with 600 GB of RAID harddisk.
    please let me know if we have any fine tuning guide for windows 2012 OD to host hyper-v role which can guide the Virtual/Page file memory, partion size and etc.
    Ravi

    Hi,
    Also you can refer the following KB it have a checklist about optimizing Hyper-V environment:
    Checklist: Optimizing Performance on Hyper-V
    http://msdn.microsoft.com/en-us/library/dd722835(v=bts.10).aspx
    Regards.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Customising the RAW fine tuning as default for importing. In Aperture 3

    RAW Fine Tuning.
    I use a Canon G11 PowerShot camera.
    I’m being unsuccessful customising the RAW fine tuning as default for importing new files, so each new RAW file imported come into Aperture 3 with the changes from the Apple default.
    All I want to do is: reduct the boost from 1.0 to 0.5 and Hue Boost from 1.0 to 0.5.
    I made the said changes by moving the sliders.
    Then from the cog wheel (in RAW fine tuning) click on save as preset ( give it a name )
    I now see it in the list , I click on it - click save as camera default - it now say camera default next to my custom settings.
    However when I import new RAW files into Aperture 3, it imports the file with the Apple settings not my custom settings that are marked with camera default.
    NB, I had not problem changing the above in Aperture 2 - I have done it before and I believe I have gone through the procedure correctly
    Can anyone please help
    Thanks Martin

    Hi Matthew
    What I'm doing is: setting the RAW fine tuning camera default ( to my custom settings) , so all new files being imported into Aperture 3 will take my custom settings as they are imported into Aperture 3.
    I did this will Aperture 2 without any trouble . now I have upgraded to Aperture 3 the RAW fine tuning camera default is Apples and I have to change it from Apples to my custom preset.
    It shows I have changed the RAW camera default to my custom settings in the drop down list but when I import files - they take the Apple preset not my custom settings ? ?
    Martin

  • RAW Fine Tuning Engine with 5D mark II  - Aperture 3

    When comparing the raw fine tuning engine btw AP3 and AP2, I noticed that there are different...I have the feeling the settings on AP3 are too strong
    Anyone noticed the same ?
    Thanks
    Vadim

    Oh I see. Can't comment any further then since I don't own a 5D mk2.
    But FWIW my D700 files are not that much different.

Maybe you are looking for