SAP ABAP Interview Questions and Answers
1) Which interface converts SQL requirements in the SAP development system to those of the database?
2) How many types of size categories and data classes are there?
There are five size categories (0-4) and 11 data classes only three of which are appropriate for application tables:
- APPL0- Master data (data frequently accessed but rarely updated).
- APPL1- Transaction data (data that is changed frequently).
- APPL2- Organizational data (customizing data that is entered when system is configured and then rarely changed).
The other two types are:
- USR1 – Intended for customer's own developments.
3) What is the function of the transport system and workbench organizer?
The function of the transport system and the Workbench Organizer is to manage any changes made to objects of the ABAP/4 Development Workbench and to transport these changes between different SAP systems.
4) What are the Data types of the ABAP/4 layer?
Possible ABAP/4 data types:
D: Date, format YYYYMMDD.
F: Floating-point number in DOUBLE PRECISION (8 bytes).
N: Numerical character string of arbitrary length.
P: Amount of counter field (packed; implementation depends on h/w platform).
S: Time Stamp YYYYMMDDHHMMSS.
V: Character string of variable length, length is given in the first two bytes.
X: Hexadecimal (binary) storage.
5) What are the features of ABAP/4 Dictionary?
The most important features are:
- Integrated to aABAP/4 Development Workbench.
- Active in the runtime environment.
6) Name the ABAP/4 Modularization techniques?
- Source code module.
7) Is it possible to pass data to and from include programs explicitly?
No. If it is required to pass data to and from modules it is required to use subroutines or function modules.
8) What are subroutines?
Subroutines are program modules, which can be called from other ABAP/4 programs or within the same program.
9) What are the types of Subroutines?
- Internal Subroutines: The source code of the internal subroutines will be in the same ABAP/4 program as the calling procedure (internal call).
- External Subroutines: The source code of the external subroutines will be in an ABAP/4 program other than the calling procedure.
10) It is not possible to create an ABAP/4 program, which contains only Subroutines (T/F).
11) A subroutine can contain nested form and endform blocks. (T/F)
12) What are the different types of parameters?
Formal Parameters: Parameters, which are defined during the definition of subroutine with the FORM statement.
Actual Parameters: Parameters which are specified during the call of a subroutine with the PERFORM statement.
13) How can one distinguish between different kinds of parameters?
- Input parameters are used to pass data to subroutines.
- Output parameters are used to pass data from subroutines.
14) What are the different methods of passing data?
- Calling by reference: During a subroutine call, only the address of the actual parameter is transferred to the formal parameters. The formal parameter has no memory of its own, and we work with the field of the calling program within the subroutine. If we change the formal parameter, the field contents in the calling program also changes.
- Calling by value: During a subroutine call, the formal parameters are created as copies of the actual parameters. The formal parameters have memory of their own. Changes to the formal parameters have no effect on the actual parameters.
- Calling by value and result: During a subroutine call, the formal parameters are created as copies of the actual parameters. The formal parameters have their own memory space. Changes to the formal parameters are copied to the actual parameters at the end of the subroutine.