SAP ABAP - Interview Questions?
SAP ABAP - Interview Questions?
INTERVIEW QUESTIONS
1. What are some best practices for writing efficient, maintainable, and scalable code in
SAP ABAP?
Answer:
Adhering to best practices in SAP ABAP development ensures that your code remains robust,
maintainable, and performs optimally. Here are key guidelines:
Use clear, descriptive, and consistent naming conventions for variables, classes, methods, and
other identifiers. This improves code readability and eases future maintenance.
Break your code into modular components using function modules, methods, or classes. This
follows the DRY (Don’t Repeat Yourself) principle and allows code reuse across different
projects.
• Avoid using SELECT * queries. Instead, specify only the fields you need.
• Use proper joins and indexes to enhance performance when retrieving data.
Implement robust error handling (using exception classes, messages, or custom error
handlers) and log important events. This aids in diagnosing issues quickly and ensures
smoother runtime behavior.
• Performance Analysis:
Use SAP tools like SAT, ST05, or Code Inspector to analyze and optimize performance.
Refactor code sections identified as bottlenecks to ensure efficient execution.
Instead of modifying standard code, use SAP’s enhancement frameworks (user exits, BADIs,
enhancement spots) to implement custom logic. This minimizes upgrade risks and maintains
system integrity.
Use version control systems for tracking changes and ensure regular peer code reviews. This
helps in early detection of issues and enforces adherence to coding standards.
Implementing these practices not only improves the quality and maintainability of your code
but also contributes to overall system performance and long-term project success.
Answer:
• ALV Reports: Advanced reports using the ABAP List Viewer (ALV) with features like
sorting, filtering, and exporting.
Answer:
Answer:
Answer:
6. Explain the difference between User Exits, BADI, and Enhancement Spots.
Answer:
Answer:
OData (Open Data Protocol) is a REST-based protocol for creating and consuming SAP data.
It supports CRUD operations and works via HTTP/S with JSON or XML.
Answer:
9. What is a CDS view and how is it different from a normal SAP view?
Answer:
• CDS View:
Answer:
Answer:
SAP Proxy interfaces enable synchronous and asynchronous communication between SAP
and external systems. They use SOA Manager for configuration.
Answer:
13. Explain the difference between Smart Forms and Adobe Forms.
Answer:
Answer: Displays ALV report with grid functionality like sorting, filtering, and exporting.
Answer:
Answer:
Answer:
SAP RAP (RESTful Application Programming) is used to build OData-based Fiori apps
using ABAP on SAP BTP or S/4 HANA.
Answer:
Answer:
Answer:
SAP WRAP simplifies RAP implementation for building transactional OData services with
less coding.
21. What is the use of $metadata in OData?
25. Explain the difference between SAP BTP and SAP Gateway.
Answer:
Answer:
• Inner Join
• Association (Preferred)
27. Explain the $batch operation in OData.
Answer: Include SEGW project in a transport request and move it to the target system.
Answer:
Answer: