SAP ABAP Interview Questions


Q.1 When do we use End-of-selection? 

End-of-selection event are mostly used  when we are writing HR-ABAP code. In the HR-ABAP code, data is retrieved in the Start-of-selection event and Printing on the list and all will be done in End-of-selection event.

Q.2 In events start-of-selection is default event. When we have to use this event explicitly? Why? 

The default event in the ABAP is Start-of-selection.We have to call explicitly this event when you are writing other than ths event , that is when you write AT SELECTION-SCREEN EVENTS OR INITIALIZATION EVENT etc,you have to explicitly mention the Start-of-selection event while you are writing the logic. 

Before these events called ,all the code you have written come into this default Start-of-selection screen event.

Q.3 Explain the differences between ABAP and OOABAP. In which situation we use OOABAP? 

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

Q.4 What is table buffer? Explain type of tables used this buffer.

Buffer is nothing but a memory area. table is buffered means that table information is available on application server. when you call data from database table it will come from application server. 


Transparent and pooled tables are buffered. cluster tables can not buffered.

Q.5 What is the use of pretty printer ?
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 Application 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.

Q.6 What is a collect statement? How is it different from append? 
APPEND :
IT IS USED TO GET THE RECORD FROM THE INTERNAL TABLE HEADER TO THE BODY AREA
IT ALLOWS DUPLICATION

COLLECT:
IT IS USED TO A GET A RECORD FROM HEADER TO THE BODY AREA BUT IT WILL NOT ALLOW ANY DUPLICATION EXCEPT IF THERE IS ANY NUMERIC FIELS IT ADDS THAT FIELDS DATA BUT NOT AS A NEW RECORD

Q.7 Explain the difference between SAP memory and ABAP memory 
Answer 1:
data sending between main sessions using get parameter and set parameter is sap memory
data sending between internal sessions using import or export parameters is abap memory

Answer 2:
sap memory is a global memory whereas abap memory is local memory.

For example, we have four programs in abap memory and assigned some varibles to a particular program in abap memory then those varibles can't be used by anyother program in abap memory i.e., the variables are only for that program and also local to that memory,whereas sap memory can access all the abap memory or else it can perform any kind of modifications.

Answer 3:
SAP memory is available to the user during the entire terminal session.
ABAP memory is available to the user during life time of external session.

Q.8 What is the difference between Type and Like?
Answer 1:
TYPE, you assign datatype directly to the data object while declaring.
LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.

Answer 2:
Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.

Answer 3:
type refers the existing data type
like refers the existing data object

Q.9 Explain Tcode SE16 briefly

Answer 1:
SE16 is a T-code for object browser.
Generally used to search the fields of SAP Tables . and respective data.

Answer 2:
SE16 is a data browse and it is used to view the contents of the table and we cannot change or append new fields to the existing structure of the table as we cannot view the structure level display using the SE16

Q.10 What are different ABAP/4 editors? What are the differences? 


The 2 editors are SE38 and SE80 both have the ABAP editor in place. In SE38 you can go create programs and view online reports and basically do all the development of objects in this editor. In SE80 ( object navigator) there are additional features such as creating packages,module pool , function group ,classes, programs ( where you can create your programs) and BSP applications .

No comments:

Post a Comment