Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

have you used performance tunig?what major steps will you
use for those

have you used performance tunig?what major steps will you use for those..

Answer / malli.gontla

These are all performance tuning steps:

performance techniques

Run Extended syntax checks with character literals check box
switched on & Code Inspector to rectify all relevant errors
and warning

Transaction SE30 (ABAP Runtime Analysis) must be checked to
measure/compare program performance/runtime

Use transaction ST05 (SQL Trace) to see what indices your
database accesses are using. Check these indices against
your "where" clause to assure they are significant. Check
other indices for this table and where you have to change
your "where" clause to use it. Create new indices if
necessary, but do not forget to check the impact by
consulting onsite coordinator.

Internal Table is defined with "TYPE STANDARD TABLE OF" &
Work-Areas is used instead of header lines

Global variables are minimized by declaring local variables
or by passing variables through parameters & arguments while
creating internal subroutine(s)

In SELECT statement, only the required fields are selected
in the same order as they reside on the database

For selecting single row from a database table, "SELECT UP
to 1 Rows" is used. "Select Single" is used only when full
primary key combination is known

No SELECT * is used


Always specify as many primary keys as possible in WHERE
clause to make the Select efficient

Always select into an internal table, except when the table
will be very large (i.e., when the internal table will be
greater than 500,000 records). Use "Up to N Rows" when the
number of records needed is known

Select statement within a GET event is not used

Wild cards like 'A%' is avoided as much as possible

Nested Select is not used instead "Inner Join" and/or "For
all Entries" is used. "For all Entries" is to be used over
"Loop at ITAB / Select / ENDLOOP" (FOR ALL ENTRIES retrieves
a unique result set so ensure you retrieve the full key from
the database)

When creating joins over database tables there should be an
index at least on the inner table for the fields in the join
condition else use " FOR ALL ENTRIES" select statement

Usage of JOIN is limited to a maximum of 2 i.e. not more
than 3 database tables are joined at one time

CHECK that the internal table used in FOR ALL ENTRIES is NOT
empty as this will retrieve all entries from the table

Delete adjacent duplicate entries from internal table before
selection from database table using " FOR ALL ENTRIES" statement

For copying internal tables use '=' operator instead of
Looping & Appending

SORT inside a LOOP is not used

Sort internal table by fields in the correct order, which
are used in a READ TABLE statement using BINARY SEARCH. If
the order of sorting is invalid the BINARY SEARCH will never

For large internal tables where only some rows are to be
processed, use SORT and then the READ TABLE command is used
to set index to first relevant row before looping from that
index. Use CHECK or IF…EXIT…ENDIF as appropriate to exit
from the loop

Sort fields and Sort Order on the SORT statement should be
mentioned explicitly (e.g. SORT ITAB BY FLD1 FLD2 ASCENDING)

Hashed table is used for processing large amount of data
(provided that you access single records only, and all with
a fully specified key)

DELETE or SORT is not used on a hashed table since it
increases memory consumption

Sorted table is used for range accesses involving table key
or index accesses

Fields specified in the WHERE condition with the critical
operators NOT and <> (negative SQL statements) cannot be
used for a search using database indexes. Whenever possible
formulate SQL statements positively

When coding IF or CASE, testing conditions are nested so
that the most frequently true conditions are processed
first. Also CASE is used instead of IF when testing multiple
fields "equal to" something


Also READ TABLE INTO WORKAREA should be used instead of only

After the APPEND statement inside a loop, the work area that
has been appended is cleared

Internal tables, Work areas & Global Variables are freed
when no longer needed (e.g. using the FREE / REFRESH
command), especially when the tables are large or the
program is a batch program

Do not delete the records of internal table inside the Loop
– End loop.

Do not use: LOOP AT ITAB WHERE EQUNR = '00001011'.



Use: DELETE ITAB WHERE EQUNR = '00001011'.

Use the MODIFY ITAB ... TRANSPORTING f1 f2 ... for single
line, and MODIFY ITAB ... TRANSPORTING f1 f2 ... WHERE
condition for a set of line, to accelerate the updating of
internal table

If possible, Update/Insert statement is used instead of Modify

Is the following steps ensured during database updates?

* Lock data to be edited
* Read current data from the database
* Process data and write it to the database
* Release the locks set at the beginning

Try to avoid logical databases. If your program uses a
logical database, but does not require all fields belonging
to a certain GET event, always use the FIELDS addition to
reduce the amount of data selected by the logical database

Avoid the aggregate (Count, Max, Min) functions in the
database selection

Use Parallel Cursor methods for nested loop into the
internal tables if second internal table contains
considerable number of records

In Smartform/ Sapscript do not make redundant data retrieval
where data is available in interface

Is This Answer Correct ?    19 Yes 0 No

Post New Answer

More SAP ABAP Interview Questions

20) What is the difference bewtween client dependent tables and client independent tables?

3 Answers  

With out any Write statement will the Top of the Page and End of Page trigger?

8 Answers   Accenture, TCS,

how do you transport FORM from one server to another server ?

2 Answers  

What are datasets in abap?

0 Answers  

Explain what is a foreign key relationship? Explain this with the help of an example.

0 Answers  

Events in Interactive Report?

12 Answers   Intel,

How is batch input process different from processing online?

1 Answers  

A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

0 Answers  

What happens when we initialized the internal table with OCCURS 5 ?

4 Answers   Genpact,

What is an “on request field” statement?

0 Answers  

What are the 3 types of tables in sap? : abap data dictionary

0 Answers  

What are the different OK Codes that can be used in batch input processing?

1 Answers  

  • SAP Basis Interview Questions SAP Basis (1260)
  • SAP ABAP Interview Questions SAP ABAP (3937)
  • SAPScript Interview Questions SAPScript (236)
  • SAP SD (Sales & Distribution) Interview Questions SAP SD (Sales & Distribution) (2695)
  • SAP MM (Material Management) Interview Questions SAP MM (Material Management) (902)
  • SAP QM (Quality Management) Interview Questions SAP QM (Quality Management) (99)
  • SAP PP (Production Planning) Interview Questions SAP PP (Production Planning) (523)
  • SAP PM (Plant Maintenance) Interview Questions SAP PM (Plant Maintenance) (252)
  • SAP PS (Project Systems) Interview Questions SAP PS (Project Systems) (138)
  • SAP FI-CO (Financial Accounting & Controlling) Interview Questions SAP FI-CO (Financial Accounting & Controlling) (2753)
  • SAP HR (Human Resource Management) Interview Questions SAP HR (Human Resource Management) (1179)
  • SAP CRM (Customer Relationship Management) Interview Questions SAP CRM (Customer Relationship Management) (432)
  • SAP SRM (Supplier Relationship Management) Interview Questions SAP SRM (Supplier Relationship Management) (132)
  • SAP APO (Advanced Planner Optimizer) Interview Questions SAP APO (Advanced Planner Optimizer) (90)
  • SAP BW (Business Warehouse) Interview Questions SAP BW (Business Warehouse) (896)
  • SAP Business Workflow Interview Questions SAP Business Workflow (72)
  • SAP Security Interview Questions SAP Security (592)
  • SAP Interfaces Interview Questions SAP Interfaces (74)
  • SAP Netweaver Interview Questions SAP Netweaver (282)
  • SAP ALE IDocs Interview Questions SAP ALE IDocs (162)
  • SAP Business One Interview Questions SAP Business One (110)
  • SAP BO BOBJ (Business Objects) Interview Questions SAP BO BOBJ (Business Objects) (388)
  • SAP CPS (Central Process Scheduling) Interview Questions SAP CPS (Central Process Scheduling) (14)
  • SAP GTS (Global Trade Services) Interview Questions SAP GTS (Global Trade Services) (21)
  • SAP Hybris Interview Questions SAP Hybris (132)
  • SAP HANA Interview Questions SAP HANA (700)
  • SAP PI (Process Integration) Interview Questions SAP PI (Process Integration) (113)
  • SAP PO (Process Orchestration) Interview Questions SAP PO (Process Orchestration) (0)
  • SAP BI (Business Intelligence) Interview Questions SAP BI (Business Intelligence) (174)
  • SAP BPC (Business Planning and Consolidation) Interview Questions SAP BPC (Business Planning and Consolidation) (38)
  • SAP BODS (Business Objects Data Services) Interview Questions SAP BODS (Business Objects Data Services) (49)
  • SAP BODI (Business Objects Data Integrator) Interview Questions SAP BODI (Business Objects Data Integrator) (0)
  • SAP Ariba Interview Questions SAP Ariba (8)
  • SAP Fiori Interview Questions SAP Fiori (45)
  • SAP EWM (Extended Warehouse Management) Interview Questions SAP EWM (Extended Warehouse Management) (58)
  • Sap R/3 Interview Questions Sap R/3 (150)
  • SAP FSCM Financial Supply Chain Management Interview Questions SAP FSCM Financial Supply Chain Management (101)
  • SAP WM (Warehouse Management) Interview Questions SAP WM (Warehouse Management) (31)
  • SAP GRC (Governance Risk and Compliance) Interview Questions SAP GRC (Governance Risk and Compliance) (63)
  • SAP MDM (Master Data Management) Interview Questions SAP MDM (Master Data Management) (0)
  • SAP MRS (Multi Resource Scheduling) Interview Questions SAP MRS (Multi Resource Scheduling) (0)
  • SAP ESS MSS (Employee Manager Self Service) Interview Questions SAP ESS MSS (Employee Manager Self Service) (13)
  • SAP CS (Customer Service) Interview Questions SAP CS (Customer Service) (0)
  • SAP TRM (Treasury and Risk Management) Interview Questions SAP TRM (Treasury and Risk Management) (0)
  • SAP Web Dynpro ABAP Interview Questions SAP Web Dynpro ABAP (198)
  • SAP IBP (Integrated Business Planning) Interview Questions SAP IBP (Integrated Business Planning) (0)
  • SAP OO-ABAP (Object Oriented ABAP) Interview Questions SAP OO-ABAP (Object Oriented ABAP) (70)
  • SAP S/4 HANA Finance (Simple Finance) Interview Questions SAP S/4 HANA Finance (Simple Finance) (142)
  • SAP FS-CD (Collections and Disbursements) Interview Questions SAP FS-CD (Collections and Disbursements) (0)
  • SAP PLM (Product Lifecycle Management) Interview Questions SAP PLM (Product Lifecycle Management) (0)
  • SAP SuccessFactors Interview Questions SAP SuccessFactors (33)
  • SAP Vistex Interview Questions SAP Vistex (0)
  • SAP ISR (IS Retail) Interview Questions SAP ISR (IS Retail) (28)
  • SAP IdM (Identity Management) Interview Questions SAP IdM (Identity Management) (0)
  • SAP IM (Investment Management) Interview Questions SAP IM (Investment Management) (0)
  • SAP UI5 Interview Questions SAP UI5 (59)
  • SAP SCM (Supply Chain Management) Interview Questions SAP SCM (Supply Chain Management) (51)
  • SAP XI (Exchange Infrastructure) Interview Questions SAP XI (Exchange Infrastructure) (49)
  • SAP Cloud Platform Interview Questions SAP Cloud Platform (34)
  • SAP Testing Interview Questions SAP Testing (89)
  • SAP SolMan (Solution Manager) Interview Questions SAP SolMan (Solution Manager) (63)
  • SAP MaxDB Interview Questions SAP MaxDB (116)
  • SAP GUI Interview Questions SAP GUI (15)
  • SAP AllOther Interview Questions SAP AllOther (329)