Select Category 
 

SAP ABAP Interview Questions Answers

SAP ABAP Interview Question - 1 : -

What is lock object ?

SAP ABAP Interview Answer - 1 : -

LockObjects used to synchornize access of several users using same data.
 

SAP ABAP Interview Question - 2 : -

What is the differences between ABAP and OOABAP. In which situation we use OOABAP?

SAP ABAP Interview Answer - 2 : -

OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.
 

SAP ABAP Interview Question - 3 : -

What is foreign key relationship?

SAP ABAP Interview Answer - 3 : -

A relationship which can be defined between tables and must be explicitly defined at field level. Foreign keys are used to ensure the consistency of data. Data entered should be checked against existing data to ensure that there are now contradiction. While defining foreign key relationship cardinality has to be specified. Cardinality mentions how many dependent records or how referenced records are possible.
 

SAP ABAP Interview Question - 4 : -

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

SAP ABAP Interview Answer - 4 : -

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
 

SAP ABAP Interview Question - 5 : -

From Excel to ABAP - Is batch mode possible ?

SAP ABAP Interview Answer - 5 : -

DATA w_file TYPE string.
* Convert the file path into string
w_file = p_input.

* Internal Table should have same field sequence as EXL File.

CLEAR t_upload.
REFRESH t_upload.

* Call function to upload the data into internal table
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = w_file
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = t_upload
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc NE 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ELSE.
* Delete the first row of heading from the uploaded table
DELETE t_upload INDEX 1.
ENDIF. " IF sy-subrc EQ 0.

 

 

SAP ABAP Interview Question - 6 : -

What is the use of pretty printer ?

SAP ABAP Interview Answer - 6 : -

Exactly where can we link the functional module to abap coding.

Pretty Printer is used to format the ABAP Code we write in ABAP Editor ,like KEY WORDS in Capitals and remaining are in small letters which is also depend on system settings.

We can call the function module in the ABAP Code .Press the Pattern button on Appl. tool bar then u will get box where u write the function module NAME which u want to call in the code by selecting the radio button CALL FUNCTION. In this way we link function module to ABAP Code.

 

SAP ABAP Interview Question - 7 : -

On ABAP: Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

SAP ABAP Interview Answer - 7 : -

Yes.
Execute the Txn SWDD(Creating a new Workflow).
In the header of the Workflow, define the Business Object and Event you refer to for triggering the Wf.
Create the Steps required for your workflow(Activity).
Inside the Activity, Create the task and assign the Business Object and the related method for that business object.
Activate the Workflow.
 

SAP ABAP Interview Question - 8 : -

What is the difference between Table and Template?

SAP ABAP Interview Answer - 8 : -

table is a dynamic and template is a static
 

SAP ABAP Interview Question - 9 : -

What are the advantages and disadvantages of using views in ABAP programming ?

SAP ABAP Interview Answer - 9 : -

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
 

SAP ABAP Interview Question - 10 : -

What are internal tables?

SAP ABAP Interview Answer - 10 : -

Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organizing the contents of database tables according to users need.
 

SAP ABAP Interview Question - 11 : -

What is ALV programming in ABAP? When is this grid used in ABAP?

SAP ABAP Interview Answer - 11 : -

ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.
 

SAP ABAP Interview Question - 12 : -

What is difference between dialog program and a report?

SAP ABAP Interview Answer - 12 : -

Report is a excecutable program
Dialog is a module pool program.It has to be executed via a transaction only.
Dialog programming is used for customization ofscreens
 

SAP ABAP Interview Question - 13 : -

Explain about roll area , Dispatcher, ABAP-Processor.

SAP ABAP Interview Answer - 13 : -

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.


Dispatcher recieves the request from client and assigns the request to one of the work process.
Roll area: Each workprocess works in a particular memory that memory is known as Role Area, which consists of User context and session data.
ABAP- Processor :is an interpretor which can execute logic

 

SAP ABAP Interview Question - 14 : -

How can you debug a script form?

SAP ABAP Interview Answer - 14 : -

SE71 -> give the form name -> utilities -> activate debugger
 

SAP ABAP Interview Question - 15 : -

What is an ABAP/4 Query?

SAP ABAP Interview Answer - 15 : -

ABAP/4 Query is a powerful tool to generate simple reports without any coding. ABAP/4 Query can generate the following 3 simple reports: Basic List: It is the simple reports. Statistics: Reports with statistical functions like Average, Percentages. Ranked Lists: For analytical reports. - For creating a ABAP/4 Query, programmer has to create user group and a functional group. Functional group can be created using with or without logical database table. Finally, assign user group to functional group. Finally, create a query on the functional group generated.