ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  ERP CRM  >>  SAP  >>  ABAP
 
 


 

 
 Basis interview questions  Basis Interview Questions
 ABAP interview questions  ABAP Interview Questions
 SAPScript interview questions  SAPScript Interview Questions
 SD interview questions  SD Interview Questions
 MM interview questions  MM Interview Questions
 QM interview questions  QM Interview Questions
 PP interview questions  PP Interview Questions
 PM interview questions  PM Interview Questions
 PS interview questions  PS Interview Questions
 FI CO interview questions  FI CO Interview Questions
 HR interview questions  HR Interview Questions
 SAP CRM interview questions  SAP CRM Interview Questions
 SRM interview questions  SRM Interview Questions
 APO interview questions  APO Interview Questions
 Business Warehouse interview questions  Business Warehouse Interview Questions
 Business Workflow interview questions  Business Workflow Interview Questions
 SAP Security interview questions  SAP Security Interview Questions
 SAP Interfaces interview questions  SAP Interfaces Interview Questions
 Netweaver interview questions  Netweaver Interview Questions
 SAP ALE IDocs interview questions  SAP ALE IDocs Interview Questions
 SAP B1 interview questions  SAP B1 Interview Questions
 SAP AllOther interview questions  SAP AllOther Interview Questions
Question
have you used performance tunig?what major steps will you 
use for those
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: have you used performance tunig?what major steps will you use for those
Answer
# 1
These are all performance tuning steps:

performance techniques

Ans:
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
table/structure/view
           

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
           

Use "SELECT INTO TABLE" rather than "SELECT INTO
CORRESPONDING FIELDS OF TABLE"
           

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
work
           

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
           

LOOP AT ITAB INTO WORKAREA WHERE K = 'XXX' should be used
instead of LOOP AT ITAB INTO WORKAREA / CHECK ITAB-K = 'XXX'.

Also READ TABLE INTO WORKAREA should be used instead of only
READ TABLE.
           

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'.

DELETE ITAB.

ENDLOOP.

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 ?    2 Yes 0 No
Malli.gontla
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
what is the diffrence between Field String & normal Work area?  3
difference between at new and on change of pl its urgent CSC4
29) Difference between check table and value table?  2
How to sort internal table?  5
in scripts 1,2,3,4,5,6,7,8,9,10.............50 pages.then i want only 4 to 50 how it is possible?ans also iwant only 1,3,5,7,9 .....how it is possible? Satyam1
What is user specific parameter?  2
Hi, My question: Iam an ABAP Programmer with 3+yrs exp would like to learn ABAP CRM . Plz let me know the best institues(coaching centers) in HYd to learn the same.  3
In Badi wher is the standard prograam name to add the additional progaram CSC1
What is the difference between open sql & native sql ? DELL3
diff between BADI and ENHANCEMENT ??  2
In the scripts,Which is mandatory function module means with out Open_form and can we write the print prg Deloitte1
What is table maintenance generator? CSC4
what is single screen maintainence?  1
in scripts if u want to add the field using itcsy structure iknow this concept,then i want to add some logic at a time in S.ORDER AND P.ORDER HOW,IF POSSIBLE WHERE U CAN ADD THE LOGIC, HOW? Satyam1
After sending the data(any type) from SENDER to RECEIVER can we send the same data to SENDER by using ALE? Wipro1
8) What are the compulsary values in RESUSE_LIST_DISPLAY and RESUSE_LIST_GRID? TCS1
What is the difference between User Exits and BADI? SAP-Labs3
WHEN TO GO LSMW ,BAPI,BDC FOR UPLOADING DATA.GIVE ME DIFFERENT SCENARIOS(EXAMPLES).  3
In one of our zflash against collections report is not matching with the actual collections i.e invoice valuse of 200000 and payment had received for entire invoice and as per accounts of the particular customer this invoice is cleared but when we had tken z flash for collections which had developed my ABAP tem it's not matching.it's happened for many invoices how to get right report as per the payment details?  1
difference betn top-of-page and top-of-page during at- line-selection? in an interactive report, after going to 5th list, can you come back to 2nd list? how? TCS6
 
For more ABAP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com