Top 30 ABAP Interview Questions and Answers
Updated 28 Nov 2024
Q1. 10. Why we write IF GT_VBAK IS INITIAL statement in for all entries.
The IF GT_VBAK IS INITIAL statement is used to check if the internal table GT_VBAK is empty.
The statement is used to avoid processing an empty internal table.
It helps in preventing runtime errors when accessing the table.
By checking if the internal table is initial, we can handle the empty table scenario gracefully.
It is a good practice to use this statement before accessing the internal table.
Q2. 1.what is ddic T-code 2. what is package 3.what are objects in se11 3.what is domain and data element 4.steps to create table 5.what are different types of views 5.what is lock objects 6.what is TMG and events...
read moreSAP ABAP Consultant interview questions
1. DDIC T-code is used to access the Data Dictionary in SAP.
2. A package is a container for development objects in SAP.
3. Objects in SE11 refer to database tables, views, and data types.
4. A domain defines the technical attributes of a field, while a data element defines its semantic attributes.
5. Steps to create a table include defining the table structure, fields, and keys.
6. Different types of views in SAP include database views, proj...read more
Q3. What is t code to extend material.
The t-code to extend material in SAP MM is MM01.
MM01 is used to create a new material master record.
It allows you to extend the material to different organizational levels, such as plants or storage locations.
You can enter all the relevant information for the material, such as description, unit of measure, pricing, and accounting data.
Once the material is extended, it can be used in various SAP MM processes like purchasing, inventory management, and production planning.
Q4. What is Abap in sap
ABAP (Advanced Business Application Programming) is a high-level programming language created by SAP for developing business applications.
ABAP is the primary programming language used in SAP for customizing and developing reports, interfaces, forms, and workflows.
It is a 4th generation programming language that runs in the SAP ABAP runtime environment.
ABAP programs are stored in the SAP database and are executed on the application server.
ABAP code can be used to enhance stand...read more
Q5. what is ALV in reports
ALV stands for ABAP List Viewer, a tool used to display data in tabular format in SAP reports.
ALV is used to enhance the readability and usability of reports by displaying data in a structured format.
It allows users to sort, filter, and customize the display of data according to their requirements.
ALV can display data in various formats such as grid, list, tree, etc.
It provides features like column resizing, column freezing, subtotaling, and exporting data to Excel.
ALV can be...read more
Q6. New things which can be done with sap abap hana
SAP ABAP HANA offers new capabilities for real-time data processing and analytics.
Real-time data processing and analytics
In-memory computing for faster performance
Advanced data modeling and predictive analytics
Integration with other SAP technologies like SAP S/4HANA
Support for cloud deployment and mobile devices
Q7. Worked on Module Pool
Yes, I have worked on Module Pool in SAP ABAP.
Developed interactive user interfaces using Module Pool programming in SAP ABAP
Utilized screen painter to design screens and flow logic to control user interactions
Implemented data retrieval and processing logic within Module Pool programs
Used function modules and subroutines to modularize code and improve reusability
Q8. Report Events, why is At selection Screen Event used
At selection screen event is used to capture user input before executing a report.
At selection screen event is triggered before the selection screen is displayed to the user.
It is used to validate user input and set default values for selection screen parameters.
It can also be used to dynamically modify the selection screen based on user input.
Example: At selection screen event can be used to restrict the input values for a parameter to a specific range.
Example: At selection ...read more
ABAP Jobs
Q9. 20. What is implicit & explicit enhancements
Implicit enhancements are modifications to standard SAP code without changing the original code. Explicit enhancements are modifications to standard SAP code by adding new code.
Implicit enhancements are done using the Enhancement Framework and are implemented using Enhancement Spots and Enhancement Sections.
Explicit enhancements are done using the Enhancement Framework and are implemented using Enhancement Points and Enhancement Sections.
Implicit enhancements are used when th...read more
Q10. Difference between CDS view and AMDP
CDS views are used to define database views in ABAP, while AMDP is used to write database procedures in ABAP.
CDS views are defined using ABAP Development Tools (ADT) in Eclipse IDE.
AMDP allows writing database procedures directly in ABAP code.
CDS views are used for defining virtual data models, while AMDP is used for complex calculations or data manipulations directly in the database.
CDS views can be consumed in ABAP programs, while AMDP procedures are called from ABAP progra...read more
Q11. What is the different between call transaction method and session method?
Call transaction method is synchronous and session method is asynchronous.
Call transaction method executes the transaction immediately and waits for the response while session method creates a session and executes the transaction in the background.
Call transaction method is suitable for small data sets while session method is suitable for large data sets.
Call transaction method is faster than session method but session method provides better error handling and logging.
Call tr...read more
Q12. Tables types in SAP ABAP
Table types in SAP ABAP include transparent tables, pooled tables, cluster tables, and internal tables.
Transparent tables store data from a single database table.
Pooled tables store data from multiple tables with the same structure.
Cluster tables store data from multiple tables with different structures.
Internal tables are temporary tables used for data processing within a program.
Q13. What is implicit and explicit enhancement and how to identify it?
Implicit and explicit enhancements are ways to modify standard SAP code without modifying it directly.
Implicit enhancements are modifications made to standard SAP code without changing the original code. They are done using predefined hooks in the code.
Explicit enhancements are modifications made to standard SAP code by directly modifying the original code. They are done using custom code.
To identify implicit enhancements, look for predefined function modules or include progr...read more
Q14. How to debug smartform
To debug a smartform, use transaction SMARTFORMS and set breakpoints in the code.
Open transaction SMARTFORMS
Select the smartform to be debugged
Click on the 'Debugging' button
Set breakpoints in the code
Execute the smartform and the debugger will stop at the breakpoints
Q15. How touse sorted BADI's?
Sorted BADI's are used to execute multiple implementations in a specific order.
Sorted BADI's are used when multiple implementations need to be executed in a specific order.
The order is determined by a sort number assigned to each implementation.
The sort number can be set in the BADI definition or in the implementation.
To use sorted BADI's, the BADI interface must have a method to retrieve the sort number.
An example of a sorted BADI is BADI_MATERIAL_CHECK, which checks the val...read more
Q16. Tell me some t-codes
T-codes are transaction codes used in SAP to access specific functions or perform specific tasks.
T-code SU01 - User Maintenance
T-code SE38 - ABAP Editor
T-code SM21 - System Log
T-code SE11 - Data Dictionary
T-code SE16 - Data Browser
Q17. How can find an Enhancement point?
Enhancement points can be found using the Enhancement Framework in SAP.
Use transaction code SE19 to access the Enhancement Framework.
Select the relevant enhancement spot and enhancement option.
Create a new implementation or modify an existing one.
Activate the implementation and test the changes.
Enhancement points can also be found using the Enhancement Finder tool.
Check the SAP documentation for more information.
Q18. What is Alv reports, module pool program,smartforms
ALV reports, module pool programs, and smartforms are different types of tools used in SAP ABAP development.
ALV reports are interactive reports that display data in a tabular format with various functionalities like sorting, filtering, and editing.
Module pool programs are used to create interactive screens for user input and display in SAP applications.
Smartforms are used to design and generate professional-looking forms like invoices, purchase orders, and delivery notes in S...read more
Q19. What is ddic , domain, lock objects
DDIC is Data Dictionary, domain is a data type definition, lock objects are used for data consistency in SAP ABAP.
DDIC stands for Data Dictionary in SAP ABAP
Domain is a data type definition in DDIC
Lock objects are used for data consistency in SAP ABAP
Q20. what is tcode for po
ME21N is the tcode for creating a Purchase Order in SAP
ME21N is used to create a new Purchase Order
ME22N is used to change an existing Purchase Order
ME23N is used to display a Purchase Order
Q21. What is the difference bt BDC & Bapi
BDC is used for data transfer between SAP and non-SAP systems, while BAPI is used for data transfer between SAP systems.
BDC stands for Batch Data Communication and is used for transferring data between SAP and non-SAP systems.
BAPI stands for Business Application Programming Interface and is used for transferring data between SAP systems.
BDC requires recording of the transaction and is typically used for automating repetitive tasks.
BAPI is a standard interface provided by SAP ...read more
Q22. Difference between BAPI n BADI
BAPI is a standard interface provided by SAP for external applications to access business processes, while BADI is an enhancement technique used to add additional functionality to standard SAP applications.
BAPI stands for Business Application Programming Interface and is used for integrating external applications with SAP systems.
BAPIs are standardized and can be called from external systems to execute business processes in SAP.
BADI stands for Business Add-Ins and is used to ...read more
Q23. Difference between user exit and badi
User exits are older technology, while BAdIs are newer and more flexible.
User exits are static, while BAdIs are dynamic and can be implemented multiple times.
User exits require modification of standard SAP code, while BAdIs do not.
BAdIs can be implemented without modifying the original code, making them more flexible.
BAdIs can be filtered based on specific criteria, while user exits cannot.
BAdIs are object-oriented, while user exits are procedural.
Q24. 7.What is the annotation to expose CDS view in analytics
The annotation to expose CDS view in analytics is @Analytics.query: true.
Use @Analytics.query: true annotation in the CDS view definition
This annotation allows the CDS view to be exposed in analytics tools
Q25. Difference Between BADI and UserExit?
BADI is an enhancement technique in SAP that allows adding additional functionality to standard SAP programs, while UserExit is a legacy technique for modifying standard SAP programs.
BADI stands for Business Add-In and is a newer enhancement technique in SAP.
BADI allows multiple implementations to be active at the same time, providing flexibility.
BADI implementations are independent of each other and can be activated or deactivated individually.
UserExit is an older enhancemen...read more
Q26. Explain interactive report and module pool report
An interactive report is a type of report in SAP ABAP that allows users to interact with the data displayed, while a module pool report is a collection of screens and flow logic used for creating interactive applications.
Interactive report: Allows users to interact with the data displayed
Module pool report: Collection of screens and flow logic for creating interactive applications
Interactive report can have user input fields, drill-down functionality, and sorting options
Modul...read more
Q27. what is writing ABAP
Writing ABAP is a programming language used in SAP systems for developing custom programs and enhancements.
ABAP stands for Advanced Business Application Programming.
It is used to write code for SAP applications, including SAP BW (Business Warehouse).
ABAP programs can be used to extract, transform, and load data in SAP BW.
It allows for the creation of custom reports, interfaces, and enhancements.
ABAP code can be written in the ABAP Editor within the SAP system.
Examples of ABAP...read more
Q28. How to find badis, different between user exit and customer exit
Badis can be found using transaction code SE18. User exits are older and customer exits are newer enhancements in SAP.
Badis can be found using transaction code SE18.
User exits are older enhancements in SAP.
Customer exits are newer enhancements in SAP.
Badis provide a more flexible and object-oriented approach compared to user exits and customer exits.
Badis can be implemented multiple times, while user exits and customer exits can only be implemented once.
Badis are implemented ...read more
Q29. Introduction and technical aspects of ABAP
ABAP is a programming language used for developing SAP applications.
ABAP stands for Advanced Business Application Programming.
It is a high-level programming language used for developing SAP applications.
It is used for developing reports, interfaces, forms, and enhancements.
ABAP is an event-driven programming language.
It supports object-oriented programming concepts.
ABAP programs run on the SAP NetWeaver ABAP application server.
ABAP programs can be developed using the ABAP Wor...read more
Q30. Basic concepts of ABAP. New technologies in ABAP.
ABAP is a programming language used for SAP applications. New technologies include SAP HANA, SAPUI5, and SAP Fiori.
ABAP is used for developing applications in SAP systems
SAP HANA is an in-memory database technology used for faster data processing
SAPUI5 is a user interface technology used for developing web applications
SAP Fiori is a design language used for creating responsive and intuitive user interfaces
ABAP supports object-oriented programming concepts
ABAP also supports in...read more
Q31. What exact code to be written when there are two field in selection screen if one field is filled the display second field and in which event it need to be written.
Use AT SELECTION-SCREEN OUTPUT event to display second field based on first field input.
Use AT SELECTION-SCREEN OUTPUT event to check if first field is filled.
If first field is filled, display the second field using the statement 'SET PF-STATUS'.
Example: AT SELECTION-SCREEN OUTPUT. IF sy-abcde = 'X'. SET PF-STATUS 'SECOND_FIELD'. ENDIF.
Q32. what is the use of container to development abap object. to display output in the screen container is used .
Containers are used in ABAP development to display output on the screen.
Containers are used to hold and display UI elements in ABAP programs.
They can be used to display text, images, tables, and other UI components.
Containers can be added to screens using the SAP GUI for Windows or Web Dynpro ABAP technology.
Example: DATA container TYPE REF TO cl_gui_container.
Example: container->add( text ).
Q33. Kernel badi vs classic badi
Kernel BAdI is implemented in the SAP kernel while Classic BAdI is implemented in the ABAP application server.
Kernel BAdI is implemented in the SAP kernel and is used for modifying the standard SAP behavior.
Classic BAdI is implemented in the ABAP application server and is used for enhancing the standard SAP functionality.
Kernel BAdI is more powerful and can be used to modify the system behavior at a lower level.
Classic BAdI is easier to implement and provides a higher level o...read more
Q34. Events in ABAP reports?
Events in ABAP reports are triggers that are executed based on certain conditions or user actions.
Events can be defined at different levels in an ABAP report, such as initialization, start-of-selection, end-of-selection, etc.
These events help in controlling the flow of the report and executing specific logic at different stages.
For example, the initialization event is triggered only once at the beginning of the report execution.
Another example is the end-of-selection event, w...read more
Top Interview Questions for Related Skills
Interview Questions of ABAP Related Designations
Interview experiences of popular companies
Reviews
Interviews
Salaries
Users/Month