Is there any Program for Perfornance Calculation?

Hi,
Is there any standard program for calculating ABAP program performance? Please help me in this.
Thanks in Advance.
Siva Sankar.

Hi
These are the main performance points where u have to look
there is no program for this
reward if usefull
Performance Tuning is nothing but optimizing the performance of your program through various techniques thus increasing the productivity of the user.
Purpose
In this world of SAP programming, ABAP is the universal language . Often due to the pressure of schedules and deliveries, the main focus of making a efficient program takes a back seat. An efficient program is one which delivers the required output to the user in a finite time as per the complexity of the program, rather than hearing the comment “I put the program to run , have my lunch and come back to check the results”
Use
Leaving aside the hyperbole, a performance optimized ABAP Program has the following uses:
Saves the time of the end user.
Increases the productivity of the user.
In turn keeps the user and hence the management happy.
Challenges
Performance of a program is also often limited due to hardware restrictions, which is out of the scope of this tutorial.
Ways of Performance Tuning
Selection Criteria
Select Statements
Select Queries
SQL Interface
Aggregate Functions
For all Entries
Select Over more than one Internal table
Internal tables
4. Typing
5. Control Statements (If, Case, While..)
6. Field Conversion
7. ABAP Objects
8. Tools for Performance Analysis
Selection Criteria
Restrict the data to the selection criteria itself, rather than filtering it out using the ABAP code using CHECK statement. 
Select with selection list.
Note: It is suggestible to make at least on field mandatory in Selection-Screen as mandatory fields restrict the data selection and hence increasing the performance.
SELECT * FROM SBOOK INTO SBOOK_WA.
CHECK: SBOOK_WA-CARRID = 'LH' AND
SBOOK_WA-CONNID = '0400'.
ENDSELECT.
The above code can be much more optimized by the code written below which avoids CHECK, selects with selection list
SELECT CARRID CONNID FLDATE BOOKID FROM SBOOK INTO TABLE T_SBOOK
WHERE SBOOK_WA-CARRID = 'LH' AND
SBOOK_WA-CONNID = '0400'.
Select Statements Select Queries
Avoid nested selects
Select all the records in a single shot using into table clause of select statement rather than to use Append statements.
When a base table has multiple indices, the where clause should be in the order of the index, either a primary or a secondary index.
For testing existence , use Select.. Up to 1 rows statement instead of a Select-Endselect-loop with an Exit.
Use Select Single if all primary key fields are supplied in the Where condition .
Point # 1
SELECT * FROM EKKO INTO EKKO_WA.
  SELECT * FROM EKAN INTO EKAN_WA
      WHERE EBELN = EKKO_WA-EBELN.
  ENDSELECT.
ENDSELECT.
The above code can be much more optimized by the code written below.
SELECT PF1 PF2 FF3 FF4 INTO TABLE ITAB
    FROM EKKO AS P INNER JOIN EKAN AS F
      ON PEBELN = FEBELN.
Note: A simple SELECT loop is a single database access whose result is passed to the ABAP program line by line. Nested SELECT loops mean that the number of accesses in the inner loop is multiplied by the number of accesses in the outer loop. One should therefore use nested SELECT loops  only if the selection in the outer loop contains very few lines or the outer loop is a SELECT SINGLE statement.
Point # 2
SELECT * FROM SBOOK INTO SBOOK_WA.
CHECK: SBOOK_WA-CARRID = 'LH' AND
SBOOK_WA-CONNID = '0400'.
ENDSELECT.
The above code can be much more optimized by the code written below which avoids CHECK, selects with selection list and puts the data in one shot using into table
SELECT CARRID CONNID FLDATE BOOKID FROM SBOOK INTO TABLE T_SBOOK
WHERE SBOOK_WA-CARRID = 'LH' AND
SBOOK_WA-CONNID = '0400'.
Point # 3
To choose an index, the optimizer checks the field names specified in the where clause and then uses an index that has the same order of the fields . In certain scenarios, it is advisable to check whether a new index can speed up the performance of a program. This will come handy in programs that access data from the finance tables.
Point # 4
SELECT * FROM SBOOK INTO SBOOK_WA
UP TO 1 ROWS
WHERE CARRID = 'LH'.
ENDSELECT.
The above code is more optimized as compared to the code mentioned below for testing existence of a record.
SELECT * FROM SBOOK INTO SBOOK_WA
WHERE CARRID = 'LH'.
EXIT.
ENDSELECT.
Point # 5
If all primary key fields are supplied in the Where condition you can even use Select Single.  Select Single requires one communication with the database system, whereas Select-Endselect needs two.

Similar Messages

  • Are there any programs for MBP (Universal Binaries) that allow you to...

    Rip or at least play DVDs from any region?
    Thanks for the help!

    Try these:
    http://www.versiontracker.com/dyn/moreinfo/macosx/22715
    and
    http://www.dvd2one.com/?loc=download
    William
    PS the non-binary version of DVD2OneX works on mine ...

  • Any program for advanced clipboard usage?

    Hi everybody!
    I need to make a clipboard the same for everything, so it's like syncronized. I need data in clipboard to be saved there when I close an application where data was copied. And I need data to be available everywhere inside one user, for example in OpenOffice, in Terminal, in Mozilla, etc...
    Is there any program for this? Or maybe system settings to configure?

    skanky wrote:
    Sorry if this is going OT:
    Another silent fail for me, second one this evening:
    anamnesis --start
    No error, and a ps check returns nothing. This means anamnesis -a fails (I assume that's why it fails, as the help says it needs it running).
    All/most other anamnesis functions seem to work.
    EDIT: actually it seems to be problem with the -a option and the log file says the daemon is running. I'll post an error to the bug tracker.
    Just to update here to finalise, a fix is apparently in the pipeline.

  • Any program for Deletion the normal Parked documents in Standard SAP

    Hi All,
    is there any program for delete the normal parked documents in Standard SAP ??  we have nearly 2000 documnets so we can't do manually one by one at FBV2/FBV6.
    please help.
    Raj

    Hi,
    You can create a CATT/LSMW project, by recording the relevant transactions and then make a mass change by executing it.
    Regards,
    Eli

  • Are there any recommendations for virus checking/removal programs for the Mac?

    Is there any recommendations for virus checking/removal programs for the iMac and MacBrook Pro running OS 10.6.7?

    as has been said, you need no AV on your Mac. more info here: Mac Virus/Malware Info.
    if, however, you exchange files with windows users on a regular basis, you might want to install ClamXav lest you pass an infected file on without realizing it.

  • Standard Program for Retirement Calculation or Year of Service

    Hi,
    I like to know whether there is any standard report program for Retirement Calculation or Year of Service. If it is available please share it ..

    Year of service     s_ph9_46000216
    or u can run flexible employee data S_AHR_61016363, select seniority, date of entry etc
    S_L9C_94000095  choose employment status 'retiree'

  • I accidentally formatted my portable hard drive when setting it up for time machine. Is there any way for me to get back my lost files?

    I have an external hard drive of the brand Western Digital.
    Before I got my iMac I moved a lot of my important files from my PC to the hard drive and today I went on and connected it to my iMac to move my files over to it.
    When it had connected a window popped up that asked if I wanted to use this hard drive with the program Time Machine and create backups. Without thinking it trough enough and reading the warning properly (I'm stupid I know) I clicked "yes". I then realised how stupid it was and cancelled the formatting of the hard drive. But somehow the program still managed to delete all my important files and can't find any way to get them back. Neither can I connect the hard drive to my PC anymore so I can't check if the files are still there (which I doubt they are since I can't see them on my iMac either).
    And now I wonder: is there any way for me to get back my lost files or are they lost forever?
    Thank you in advance!
    //Gina

    A data recovery specialist or some data recovery programs should be able to help.  Most format simply rewrite the directory tree saying no files are on this disk.  The bits that represent the files are still flipped appropreiately so they still exists, you just don't have the location info to get at them.  Secure formats and erases rewrite each bit to a zero or 1 or random so the data is then truely gone.  This type of format takes a long time to complete.
    I'm not making a recomendation of a particular program but here is one company that does what you ask:
    http://www.remosoftware.com/mac-recovery  The cost is pretty high but I'm sure they don't sell many copies and need to cover their development costs.
    Good luck and don't write anything on the freshly formatted disk until you decide what to do.

  • Is there any solution for convert document spreadsheet presentation to images with Office Web Apps?

    Hi there!
    Is there any solutions for convert document spreadsheet presentation to images with Office Web Apps?

    Hi,
    As far as I know, there is no build-in feature that convert Office file to image format in Office web app yet.
    I'll collect the information, and submit it with internal ways. Then, we could also submit the feedback here:
    http://office.microsoft.com/suggestions.aspx
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Are there any fixes for iPad 2 with OS 8.1.1.

    Are there any fixes for the iPad 2 IOS 8.1.1?  I've had problems with Safari and other Apps crashing or locking up, and with extremely slow touch response.  These problems have been occurring since the last update.  At times the iPad becomes unusable.  I have been keeping all programs closed and history and web site data cleared.  Thanks for any help you can give.

    Hi, dannilee,
    I have exactly the same problem. The device was my favorite computer until 8.1.1. Now it runs s-l-o-w-l-y, requires endless reboots.
    To improve the performamce, I have tried these:
    1.Go to Setting->General->Accessibility->Reduce Motion. Turn on.
    2.Reset iPad device settings using Setting->General->Reset->Reset All Settings. Its increase iPad performance little better.
    3.Hold the sleep/wake button and home button upto 8 seconds. This will turn off your iPad. Then turn on iPad. Wait few moments. Do the same thing twice to solve this issue.
    Solution 3 worked for me. And, I always recommend you to backup your iPad first before any action to avoid any data loss.
    Hope it is useful for you.

  • Is there any certification for e-commerce business?

    Is there any certification for e-commerce business?

    Please check Oracle's certification FAQ website at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=82#6Q14Ahead :
    ===========================
    Q: Can I still get ATG certified? What should I do?
    Ans: As of February 28, 2011, Oracle retired the current ATG Certification Program. This includes the ATG Certified Commerce Platform Developer credential and the following exams associated with this credential:
    * ATG Commerce Developer Exam
    * ATG Platform Fundamentals Developer Exam
    In the future, there may be an ATG offering through the Oracle Partner Network (OPN) Certified Specialist Certification offerings. Check the Oracle Certification Program website for news about ATG certification.
    ===========================
    Nitin
    Edited by: nb on Jun 29, 2011 11:11 AM
    Edited by: nb on Jun 29, 2011 11:11 AM

  • Is there any program to change the color of requests

    Hi,
    I want to know is there any program to change the traffic color of requests.
    It is showing wait time until 'next months' date'.
    The option to change time out is greyed out in the Infopackage schedueler.
    Please sugegst anything.

    In RSMO Settings -> incorrect waiting time for request -> Change the time
    Regards,
    B

  • Is there any program to read the archived information structrue data ?

    Hi,
    The tcode MCSX can archive information structure, however it can't read the archived data, is there any program has this function?
    Thanks.

    Hi
    You may look into some of the FMs mentioned below.
    ARCHIVE_GET_NEXT_OBJECT
    ARCHIVE_OPEN_FOR_READ
    ARCHIVE_READ_OBJECT
    ADDRESS_READ_ARCHIVE_OBJECT
    Also in SE37, you can put a F4 on ARCHIVE to get some FMs for this purpose.
    You can consult with your technical guy, who can give some insights into this.
    Hope this helps you.
    Reward if this helps.

  • Is there any limit for DAQ_Start(​)'s count parameter?

    Is there any limit for DAQ_Start()'s count (the fifth) parameter? It seems that the limit is between 16 million and 18 million. I use PCI-MIO-16E-1 and LabWindows/CVI.

    Hello,
    This depends on whether you are performing a single-buffered or double-buffered acquisition.
    In a single-buffered acquisition, the "count" corresponds to the number of samples the DAQ device acquires and is an unsigned 32-bit value. The largest number that this number can represent is (2^32)-1.
    In a double-buffered acquisition, the "count" corresponds to the size (in number of samples) of buffer that fills up in a circular fashion. It must be an even number. The range of this value depends on the DAQ device you are using and can be referenced by the chart located in the NI-DAQ Function Reference Help file. To access this file, go to your desktop and click [Start]>>[Programs]>>[National Instruments]>>[NI-DAQ]>>[Traditional NI-DAQ Function Reference
    Help]. Then, search for "DAQ_Start" without the quotations.
    I hope this helps clear up any confusion. Please let me know if you need any further assistance. Have a great day!
    Regards,
    Joe Des Rosier
    National Instruments

  • Is there any program i can use to batch delete the inbound delivery ?

    Hello, everyone.
        Is there any program i can use to batch delete the inbound delivery ? Thanks.
    Xinzhou gao.

    Hi,
       VL66 is used for deleting temporary inbound deliveries that have been marked with the deletion flag in the database, the temporary deliveries should have the deletion flag selected in the database, but i want to delete the normal inbound delivery without deletion flag now, is there any  other solutions? Thanks.
    Xinzhou gao.

  • I have an I Pad 1 with 64 gigs. It constantly drops me off the Internet for no apparent reason. Is there any fix for this problem?

    My I Pad 1 constantly drops me off the Internet and programs. Is there any fix for this problem?  It started after the last update and continues to get worse.
    Doug

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

Maybe you are looking for

  • Customer Payment Pattern

    Hi All, Is there any report in SAP that gives the payment history of customers. I am looking for report in which can analyse for a certian period that how much has the customer paid within payment due dates. Based on his payment history and sales the

  • "Organizational Unit for the vendor" not defined in SRM portal

    Hi, Iu2019m trying to create a supplier from the vendor list that appears in SRM portal in u201CStrategic Purchasingu201D u2013 u201CBusiness Partneru201D u2013 u201CCreate business partner: Supplieru201D u2013 u201CAdd external Supplier fromu201D. W

  • Document types for late entry using bar code

    Hi, We want to enable bar codes for Delivery document types for late archiving. We got the same for slaes order type in below mentioned path SPRO --> Sales and Distribution --> Data transfer and Archiving --> Assign document type --> Document types f

  • Uppercase / Lower case

    Dear Master's, I created editable alv,when i press save from report data get saved in table as UPPER case.But i want data will save as UPPER/LOWER case. Please help Thanks & Regards Atul Singh

  • Related to business rule

    Hi, I have one question, i need to migrate the business rule from dev to prod ,in that i need to change the server name for that or no need to change,please let me know . Regards Ravi