SAP ABAP Complete Mock Interview: 50 Questions, Scenarios and Final Revision

SAP ABAP INTERVIEW PREPARATION SERIES • PART 15

This complete mock interview combines technical fundamentals, modern ABAP, real-project troubleshooting and S/4HANA thinking. Attempt every question aloud before reading the model answer.

SEO summary: Practice 50 SAP ABAP interview questions with concise answers, practical code, project scenarios, scoring guidance and a final rapid-revision checklist.

How to use this mock interview

  1. Set a 60-minute timer and answer without notes.
  2. For every scenario, explain hypothesis → evidence → solution → verification.
  3. Give version-aware answers; features depend on the ABAP platform and language version.
  4. Score yourself with the rubric near the end, then repeat weak rounds.
Interview rule: A strong answer is not a transaction code list. It connects business impact, ABAP design, performance evidence, security and a safe verification plan.

Round 1 — ABAP foundations

1. What is ABAP?
ABAP is SAP's application programming language for developing business applications on Application Server ABAP. Modern ABAP development commonly uses ADT and can combine procedural code, ABAP Objects, ABAP SQL, CDS and released APIs.

2. Report vs module pool?
An executable report is started as a program and normally follows event blocks such as selection-screen and start-of-selection. A module pool is dialog-oriented and works with dynpro flow logic and PBO/PAI modules.

3. Work area vs internal table?
A work area holds one structured row; an internal table holds multiple rows in memory. Field symbols or references can avoid unnecessary copies when changing table rows.

4. What are system fields?
They are predefined runtime fields such as sy-subrc, sy-tabix, sy-datum and sy-uname. Use only when the called statement documents their meaning, and read them immediately because later statements can overwrite them.

5. Why avoid obsolete statements?
Obsolete constructs reduce readability, testability and cloud readiness. Prefer explicit, supported language elements and validate compatibility with ATC and the active ABAP language version.

Round 2 — Internal tables and modern syntax

6. Standard, sorted and hashed table?
Standard tables suit index access and append-heavy processing; sorted tables maintain key order and support efficient key/range access; hashed tables provide unique-key access with constant average lookup behavior but no index access.

7. READ TABLE vs table expression?
READ TABLE reports success through sy-subrc. A table expression is concise but can raise CX_SY_ITAB_LINE_NOT_FOUND unless OPTIONAL, DEFAULT, line_exists( ) or exception handling is used appropriately.

8. What does CORRESPONDING do?
It constructs or assigns values between structures/tables by matching component names, with additions such as MAPPING, EXCEPT and BASE for controlled transformations.

9. FILTER vs REDUCE?
FILTER returns selected rows from an internal table; REDUCE iterates an input and builds a single result such as a total, structure or reference.

10. When not to use compact expressions?
When an expression hides business rules, complicates debugging or causes repeated expensive work. Readability, predictable runtime and team conventions matter more than minimum line count.

DATA(active_customers) = FILTER #( customers WHERE status = 'A' ).
DATA(total) = REDUCE decfloat34(
  INIT sum = CONV decfloat34( 0 )
  FOR item IN items
  NEXT sum += item-amount ).

Round 3 — Dictionary, locking and LUW

11. Domain vs data element?
A domain defines technical value attributes and optional fixed values; a data element adds semantic meaning and field labels and refers to a domain or built-in type.

12. Transparent table vs CDS view entity?
A transparent table persists application data. A CDS view entity models reusable semantic read access over one or more sources and can carry annotations and associations.

13. What is a search help?
It supplies reusable input help and selection logic for fields. Collective search helps can combine multiple elementary search paths.

14. Why use SAP enqueue locks?
They coordinate logical business locks across application servers. Lock the correct business key, handle collisions, and release locks on every success and error path.

15. COMMIT WORK vs database commit?
COMMIT WORK closes the SAP LUW and triggers registered update tasks; application code should respect transaction boundaries instead of issuing database-specific commits.

Round 4 — ABAP SQL and performance

16. Why avoid SELECT inside LOOP?
It can cause many database round trips. Prefer set-oriented access, joins, associations or a bulk key selection after proving equivalent business semantics.

17. INNER JOIN vs LEFT OUTER JOIN?
An inner join returns matching rows from both sides; a left outer join keeps every left-side row and supplies initial/null-derived values where the right side has no match.

18. What are host variables?
ABAP operands in modern ABAP SQL are escaped with @, separating ABAP data from SQL syntax and improving clarity.

19. ST05 vs SAT?
ST05 provides database trace evidence such as SQL duration and executions. SAT measures ABAP runtime and call hierarchy. Use the tool that matches the symptom, often both for end-to-end analysis.

20. How do you prove a performance fix?
Measure the same workload before and after, confirm identical results, compare total time/executions/resource use, and test realistic data volume plus negative cases.

SELECT FROM zsales AS s
  INNER JOIN zcustomer AS c ON c~id = s~customer_id
  FIELDS s~document_id, c~name, s~amount
  WHERE s~status = @status
  INTO TABLE @DATA(result).

Round 5 — ABAP Objects and testing

21. Encapsulation, inheritance and polymorphism?
Encapsulation protects state behind behavior; inheritance specializes a base class; polymorphism lets client code call a common interface while different implementations provide behavior.

22. Interface vs abstract class?
An interface defines a contract without shared instance state. An abstract class can provide state, protected helpers and partial implementation while preventing direct instantiation.

23. Static vs instance method?
Static methods belong to the class and cannot depend on object-specific state. Instance methods operate on an object's state and support substitution through interfaces.

24. Why dependency injection?
Passing dependencies through constructors or interfaces decouples business logic from infrastructure and makes ABAP Unit tests fast and deterministic.

25. What should an ABAP Unit test cover?
A single business behavior with arrange-act-assert structure, including happy path, boundary and error cases. Tests should avoid uncontrolled database, time or network dependencies.

Round 6 — Enhancements, forms and integration

26. BAdI vs user exit?
BAdIs belong to the Enhancement Framework, support object-oriented implementations and may allow multiple/filter-dependent implementations. Classic user exits are older predefined enhancement hooks.

27. How do you choose an enhancement?
Use the released/stable enhancement point closest to the business requirement, avoid modifications, verify call timing and filters, and document upgrade impact.

28. Smart Forms vs Adobe Forms?
Both generate business documents; Adobe Forms support interactive/dynamic PDF scenarios, while Smart Forms are common in classic output. The correct choice depends on landscape and business requirements.

29. IDoc vs RFC vs BAPI?
IDocs support message-oriented asynchronous integration; RFC calls remote-enabled functions; a BAPI is a stable business API usually implemented as a remote-enabled function with defined business semantics.

30. How do you troubleshoot an IDoc?
Check control/data records, status history, partner profile, port, process code, application log and the exact failing segment—then reprocess only after correcting the cause.

Round 7 — Workflow, CDS and AMDP

31. Workflow event, task and agent?
An event signals a business occurrence, a task represents work or an executable step, and agent determination selects the responsible users/positions/rules.

32. CDS association vs join?
A join combines sources directly in a view definition. An association models a reusable relationship that consumers can follow; its generated join behavior depends on actual use and cardinality.

33. What is DCL?
CDS Data Control Language defines authorization roles for CDS entities. Access control must be designed and tested together with application authorization checks.

34. When use AMDP?
For database-intensive logic that benefits from SAP HANA execution and cannot be expressed clearly/efficiently with ABAP SQL or CDS. Keep orchestration and business semantics maintainable.

35. CDS table function?
A CDS table function exposes a tabular result implemented by an AMDP method. Use it only when ordinary CDS modeling is insufficient and document database dependence.

Round 8 — OData, Gateway and Fiori/UI5

36. Entity type vs entity set?
An entity type defines the structure and keys of a business entity; an entity set exposes a collection of those entities through the service.

37. Deep insert?
One create request contains a root entity plus related child data. Validate the full payload and handle it within a consistent transactional boundary.

38. How do you debug a failed OData call?
Capture HTTP status and payload, inspect Gateway error logs, verify service registration/routing/authorization, then use an external breakpoint for the executing user if the request reaches ABAP.

39. MVC in SAPUI5?
The model stores data/state, the view declares UI, and the controller handles interaction. Keep business rules in reusable services rather than burying them in event handlers.

40. Why does a Fiori app show stale content?
Possible causes include model binding, browser/cache layers, Launchpad content, OData metadata/data caching or backend logic. Identify the stale layer before clearing caches.

Round 9 — S/4HANA migration and clean core

41. First step in custom-code migration?
Establish usage and quality evidence: scope custom objects, run ATC with relevant checks, review simplification impacts and prioritize by business criticality.

42. What is clean core?
A strategy to minimize modifications and use released extension points/APIs so upgrades remain predictable. It does not mean zero custom code; it means governed, upgrade-stable extensibility.

43. What does ATC provide?
Central static checks for syntax, performance, security, compatibility and cloud-readiness rules, with findings that teams triage, correct or govern through justified exemptions.

44. How do you handle obsolete tables/APIs?
Map usage to supported successors, verify semantics and data ownership, refactor behind tests, and validate end-to-end processes—not just syntax.

45. Side-by-side vs on-stack extension?
On-stack extensions run in the ABAP environment near core business logic; side-by-side extensions run on a separate platform and integrate through released APIs/events. Choose by latency, lifecycle, data and upgrade constraints.

Round 10 — Real project scenarios

46. Program works online but fails in background—what do you compare?
User/authorization, variant, locale/time zone, frontend dependencies, file access, job log, spool and short dump. Reproduce under the batch context where permitted.

47. Save says success but data is missing?
Inspect return messages, update tasks, locks, commit/rollback boundaries and update failures. A debugger stop before COMMIT does not prove persistence.

48. Intermittent duplicate records?
Check lock key/granularity, race conditions, retries, number-range handling, unique constraints and idempotency. Build a concurrent reproduction instead of adding arbitrary waits.

49. Production issue cannot be reproduced?
Collect non-sensitive evidence: timestamp, user/context, document key, correlation ID, message, code/configuration level and execution channel. Add targeted logging through change control.

50. Tell us about a defect you solved.
Use STAR plus technical evidence: situation/business impact, task/constraints, actions and tools, root cause, low-risk fix, test coverage and measurable result.

Three live coding challenges

Challenge 1: Safe table lookup

Return a customer name without an unhandled missing-row exception.

DATA(name) = VALUE #( customers[ id = customer_id ]-name OPTIONAL ).
IF name IS INITIAL.
  "Handle not-found according to business semantics
ENDIF.

Challenge 2: Remove SELECT in LOOP

Collect unique keys, fetch data once, and read through a sorted/hashed lookup table. Explain empty-key behavior and result equivalence.

Challenge 3: Testable service

Define an interface for data access, inject it into a service class, and test business rules with a fake implementation.

Common interview mistakes

  • Reciting definitions without a project example.
  • Giving a transaction code without explaining the evidence it produces.
  • Claiming one table type, API or tool is always best.
  • Ignoring authorization, locking, commits and error paths.
  • Using production debugging or broad traces without controls.
  • Inventing experience instead of clearly separating knowledge from hands-on work.

Self-scoring rubric (100 points)

AreaPoints
Correct technical concepts30
Scenario reasoning and evidence25
Code quality, performance and testing20
S/4HANA and clean-core awareness15
Clear, honest communication10

80–100: strong interview readiness. 65–79: revise weak rounds. Below 65: repeat the series with hands-on exercises.

Final practice exercise

  1. Record a 60-minute spoken mock interview.
  2. Write one ABAP Unit test and one SQL-performance refactoring example.
  3. Prepare three STAR stories: defect, performance improvement and stakeholder conflict.
  4. Create a one-page project architecture: UI, API, ABAP logic, persistence, integration, authorization and monitoring.
  5. Repeat the mock after 48 hours without reading answers.

Rapid revision checklist

  • Internal table choice follows access pattern and key.
  • ABAP SQL is set-oriented; measure with ST05/SAT.
  • Interfaces and dependency injection improve testability.
  • Locks, LUW, commits and update tasks protect consistency.
  • CDS models semantics; DCL controls CDS access.
  • Use AMDP only for justified HANA pushdown.
  • Debug the real execution user and channel.
  • ATC plus released APIs support clean-core upgrades.
  • Every fix needs repeatable evidence and regression tests.

Official SAP references

← Part 14   |   Complete Interview Series Index   |   Course Complete ✓
Course completion: You have finished all 15 parts. Keep this page bookmarked as your final revision and mock-interview worksheet.

 

Post a Comment

0 Comments