SAP ABAP Interview Questions and Answers
Question - 31 : - What is the use of pretty printer ?
Answer - 31 : - 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.
Question - 32 : - What is the difference between SAP memory and ABAP memory?
Answer - 32 : - 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
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.
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.
Question - 33 : - What is the differences between structure and table in data dictionary in ABAP?
Answer - 33 : - Structure and table both are 2/2 matrices but there are many differences between table and structure.
1. Table can store the data physically but a structure dose not store.
2. Table can have primary key but a structure dose not have.
3. Table can have the technical attribute but a structure dose not have.
structure doesn't contain technical attributes.
structure doesn't contain primary key.
structure doesn't stores underline database level.
Question - 34 : - What is the difference between Type and Like?
Answer - 34 : -
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.
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.
type refers the existing data type
like refers the existing data object
Question - 35 : - What is the difference between macro and subroutine?
Answer - 35 : - Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (I’ve never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.
Question - 36 : - What is Tcode SE16. For what is it used. Explain briefly?
Answer - 36 : -
SE16 is a T-code for object browser.
Generally used to search the fields of SAP Tables . and respective data.
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
Question - 37 : - What are different ABAP/4 editors? What are the differences?
Answer - 37 : - 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 thedevelopmet 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 ur programs) and BSP applications .
Question - 38 : - What is difference between dialog program and a report?
Answer - 38 : - 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
Question - 39 : - How do you connect to the remote server if you are working from the office for the client in remote place.
Answer - 39 : - 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, intermidiate documents which carry the data you want to transfer or the documents you want to transfer, these IDOC are interpretted by the system at the recieving end with the message class with which it is bound with. If you want to logon a system which is very distant..then remote login can be used this depends on the internet speed.
Question - 40 : - Explain about roll area , Dispatcher, ABAP-Processor.
Answer - 40 : - 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