SAP ABAP Interview Question

Q.1 What is difference between dialog program and a report? 
Report is a executable program 
Dialog is a module pool program.It has to be executed via a transaction only. 
Dialog programming is used for customization of screens

Q.2 How do you connect to the remote server if you are working from the office for the client in remote place?

WAS web application server or ITS are generally used for this purpose. If you are sitting at your office with a server which is in the system and the other server is at the clients place you can generate IDOC, intermediate documents which carry the data you want to transfer or the documents you want to transfer, these IDOC are interpreted by the system at the receiving end with the message class with which it is bound with. If you want to log on a system which is very distant..then remote login can be used this depends on the internet speed.

Q.3 Explain about roll area , Dispatcher, ABAP-Processor. 
Answer 1: 
Roll area is nothing but memory allocated by work process. It holds the information needed by R/3 about programs execution such as value of the variables. 
Dispatcher: All the requests that come from presentation server will be directed first to dispatcher. Further dispatcher sends this requests to work process on FIFO(First In and First Out) basis. 

Answer 2: 
Dispatcher receives the request from client and assigns the request to one of the work process. 

Roll area: Each work process works in a particular memory that memory is known as Role Area, which consists of User context and session data. 

ABAP- Processor :is an interpreter which can execute logic

Q.4 Which one is not an exit command ?
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 "Cancel" is not an exit command


Q.5 What is Field symbol? 
Answer 1:
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 <tc> type cxtab_control. "Table control

assign (p_tc_name) to <tc>.

* insert 100 lines in table control
<tc>-lines = 100.

Answer 2:

field symbol has the same concept as pointer in c,
field symbol don't point to a data type like char, num instead of that it points to the memory block. the syntax for field symbol is
FIELD-SYMBOL <N>.
EG. FOR FIELD SYMBOL.
DATA: DAT LIKE SY-DATUM,
TIM LIKE SY-UZEIT,
CHAR(3) TYPE C VALUE 'ADF'.
FIELD-SYMBOL : <FS>.
MOVE DAT TO <FS>.
WRITE:/ <FS>.
MOVE TIM TO <FS>.
WRITE:/ <FS>.
MOVE CHAR TO <FS>.
WRITE:/ <FS>.
The output will be
Today's date
current time

Q.6 What is lock object ? 

Lock Objects are used to synchronize access of several users using same data.

Q.7 Why BAPI need after BDC ? 

BAPI"S provide the standard interface to other applications apart from SAP and within different versions of SAP too. Also it is OOD bases so does not depends on screen flow.
BDC gets failed if we make changes for screen changes through IMG customization

Q.8 Explain the advantages and disadvantages of using views in ABAP programming
Advantages: 
                       view is used to retrieve the data speedily 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

Q.9 How data is stored in cluster table? 

A cluster table contains data from multiple DDIC tables. 
It stores data as a name value pair ( varkey, vardata)

Q.10 Have you used performance tuning? What major steps will you use for these? 

First of all tuning can be done in three ways: disk i/o ,sql tuning , memory tuning,
Before tuning you have to get the status of your database using
Oracle utility called statpack , tkprof, then you should go for tuning

No comments:

Post a Comment