SAP ABAP Interview Questions and Answers
Question - 41 : - Which one is not an exit comand ? (Exit, cencle, stop, back)
Answer - 41 : - STOP.
Effect :The statement STOP is only to be used in executable programs
EXIT.
Effect :If the EXIT statement is executed outside of a loop, it will immediately terminate the current processing block.
BACK.
Effect : This statement positions the list cursor on the first position of the first line in a logical unit.
So "Cancle" is not an exit command
Question - 42 : - What is Field symbol ?
Answer - 42 : -
You can use field symbols to make the program more dynamic. In this example the name of a table control is substituted by a field symbol. Thus you cal call the form with any internal table, using the name of the table control as a parameter.
Example
form insert_row
using p_tc_name.
field-symbols type cxtab_control. "Table control
assign (p_tc_name) to .
* insert 100 lines in table control
-lines = 100.
==================
fieldsymbol has the same concept as pointer in c,
fieldsymbol don't point to a data type like char, num instead of that it points to the memory block. the syntax for fieldsymbol is
FIELD-SYMBOL .
EG. FOR FIELD SYMBOL.
DATA: DAT LIKE SY-DATUM,
TIM LIKE SY-UZEIT,
CHAR(3) TYPE C VALUE 'ADF'.
FIELD-SYMBOL : .
MOVE DAT TO .
WRITE:/ .
MOVE TIM TO .
WRITE:/ .
MOVE CHAR TO .
WRITE:/ .
The output will be
Today's date
current time
Question - 43 : - What is lock object ?
Answer - 43 : - LockObjects used to synchornize access of several users using same data.
Question - 44 : - Why BAPI need then BDC ?
Answer - 44 : - BAPI"S provide the standard interface to other applications apart from SAP and within differnt vesions of SAP too. Also it is OOD bases so dosen"t depends on screen flow. BDC gets failed if we make changes for screen changes through IMG customization
Question - 45 : - What are the advantages and disadvantages of using views in ABAP programming ?
Answer - 45 : - advantages: view is used to retrieve the data very fastly from the database tables
*memory wastage is reduced
*faster than joins to retrieve the data from database tables
disadvantages:
view is not a container,it will not hold the data
*view memory is not permanent memory
Question - 46 : - How data is stored in cluster table?
Answer - 46 : - A cluster table conatins data from mulitple DDIC tables.
It stores data as a name value pair ( varkey, vardata)
Question - 47 : - Have you used performance tuning? What major steps will you use for these?
Answer - 47 : - First of all tunning can be done
In three ways: disk i/o ,sql tunning , memory tunning,
Before tunning u have to get the status of your database using
Oracle utility called statpack , tkprof, then you should go for tunning
Question - 48 : - How to create client independent tables?
Answer - 48 : - client independent tables:
the table in which the first field is not mandt is the client independent tables
*mandt is the field with mandt as the data element
*automatically client which we login is populated to mandt
Question - 49 : - What type of user exits have you written?
Answer - 49 : - there are four types
1.function exit
2.menu ixit
3.screen exit.
4.field exit.
these are the user exits
Question - 50 : - How can you debug a script form?
Answer - 50 : - SE71 -> give the form name -> utilities -> activate debugger