Beyond ABAPdesigned by@Tejoram97
Beyond ABAP / Clean Core / Interview Questions

Interview Questions

Clean Core · ABAP Development ·

Open the interactive lesson →

All Clean Core interview questions in one place, grouped by page. Each group is copied from the "Interview questions" part of its page – read the page when an answer needs more depth. ABAP Cloud language questions are on BTP Foundations › 05 and RAP questions on RAP › 14 · Interview Questions.

How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.

01 · Clean Core

Q1. What is clean core?

Keeping S/4HANA standard unmodified, with all extensions decoupled and built only on SAP-released, upgrade-stable interfaces – across processes, extensibility, data, integration and operations.

Q2. Why is greenfield ideal for clean core?

No legacy custom code; fit-to-standard adopts best practices from day one; every extension built the clean way from the start.

Q3. Name the extensibility options.

Key user (in-app), developer (on-stack ABAP Cloud), side-by-side (BTP). Classic only in Private Edition / on-premise.

Q4. What is ABAP Cloud?

SAP's cloud-ready ABAP development model: "ABAP for Cloud Development" language version, released APIs only, ADT, CDS, RAP. Works in Public, Private, on-premise (2022+) and SAP Business AI Platform, ABAP environment.

Q5. What is a released API? C0 / C1 / C2?

An SAP object with a stability contract. C0 = stable for extension, C1 = use inside ABAP Cloud, C2 = stable remote API.

Q6. What happens if you SELECT from MARA in ABAP Cloud?

Syntax error – MARA isn't released. Use successor CDS view I_Product.

Q7. Explain the 3-tier model / Clean Core Levels.

3-tier: Tier 1 ABAP Cloud, Tier 2 wrappers around unreleased APIs, Tier 3 classic. Levels: A fully clean, B classic APIs, C internal objects (tracked), D not recommended (modifications etc.).

Q8. What is a wrapper and when do you use it?

A small classic-ABAP class released for C1 that encapsulates an unreleased SAP object when no released API exists – isolates risk, easy to replace.

Q9. What is RAP? Components?

ABAP RESTful Application Programming Model – standard for transactional apps/APIs. CDS data model, behavior definition, behavior implementation, projection, service definition, service binding. More: RAP › 14 · Interview Questions.

Q10. What is VDM? I_ vs C_?

Virtual Data Model – SAP's layered CDS views. I_ = interface/basic (build on these), C_ = consumption. P_ = private, never use.

Q11. How do you know if an object is released?

ADT API State tab, Released Objects tree, Cloudification Repository, api.sap.com for remote APIs.

Q12. How do you add a custom field to a standard object cleanly?

Custom Fields key user app – automatically available in UI, CDS, APIs, forms.

Q13. ATC's role in clean core?

Static checks (cloud readiness / clean core level), ideally enforced at transport release so non-compliant code can't reach production.

Q14. Key user vs developer extensibility – how do you decide?

Key user for simple fields/logic business experts can maintain; developer for complex logic, custom apps, reusable services.

Q15. When side-by-side on BTP?

Separate apps, external users, combining multiple systems, heavy processing, AI, independent lifecycle.

Q16. Data migration in greenfield?

S/4HANA Migration Cockpit with standard migration objects (staging tables/files) – not custom BDC/LSMW.

Q17. Business events and why they matter?

S/4 publishes events (sales order created); consumers react asynchronously – no custom code inside SAP's transaction (loose coupling).

Q18. Statements forbidden in ABAP Cloud?

WRITE, dynpros, CALL TRANSACTION, SUBMIT, OPEN DATASET, native SQL, unreleased objects; use cl_abap_context_info instead of sy-datum/sy-uname.

Q19. Clean ABAP vs clean core?

Clean ABAP = coding style guide. Clean core = architecture/upgrade-safety principle.

Q20. Can you still use BAPIs?

In ABAP Cloud only if released; otherwise released RAP BO (EML) or a wrapper. In classic ABAP, BAPIs are "classic APIs" (Level B).

Q21. Forms and workflow in clean core?

SAP Interactive Forms by Adobe with S/4HANA output control (output management); Flexible Workflow and SAP Build Process Automation.

Q22. As a beginner, how would you contribute to clean core here?

"I'd follow ABAP Cloud by default, always check released APIs/successors first, keep ATC clean, write ABAP Unit tests, document every exception, and escalate gaps to the design authority instead of shortcuts like modifications."

💡 Honest beginner tip: if you don't know, say so and explain how you'd find out ("I'd check the API State in ADT and the Cloudification Repository"). The right method beats memorised facts.

02 · Clean-Core Report

Q1. How do you build a report in a clean-core S/4HANA system?

As a read-only Fiori elements list report on CDS: a CDS view entity on released SAP views with @UI annotations, a service definition and an OData V4 UI service binding. If ABAP logic is needed, a custom entity with a query class; background work as an application job.

Q2. What replaces the selection screen and the ALV?

The Fiori filter bar (@UI.selectionField, value helps via @Consumption.valueHelpDefinition, @Consumption.filter for mandatory/default) and the Fiori elements table (@UI.lineItem) with built-in sorting, variants and export.

Q3. What replaces AUTHORITY-CHECK in such a report?

A CDS access control (DCL) with @AccessControl.authorizationCheck: #CHECK – the database filters the rows for every consumer. On a view over a released SAP view, inherit SAP's conditions (inheriting conditions from entity …).

Q4. When do you use a custom entity instead of a CDS view?

When the data can't be read by CDS SQL alone: ABAP calculations, calls to released classes or remote APIs, combining sources. The custom entity defines the structure, @ObjectModel.query.implementedBy names the class that implements IF_RAP_QUERY_PROVIDER~SELECT.

Q5. What must the SELECT method of a query provider do?

Read filter (get_filter( )->get_as_ranges( )), sorting (get_sort_elements( )) and paging (get_paging( )), apply them, then return the count only if is_total_numb_of_rec_requested( ) and the rows only if is_data_requested( ) – never more rows than the page size.

Q6. What happens if the filter can't be converted to ranges?

get_as_ranges( ) raises cx_rap_query_filter_no_range. Use get_as_sql_string( ) instead, or raise an exception derived from cx_rap_query_provider – never silently ignore the filter.

Q7. What replaces an SM36 background job?

An application job: a class (IF_APJ_RT_RUN, legacy IF_APJ_DT_EXEC_OBJECT + IF_APJ_RT_EXEC_OBJECT), an application job catalog entry and a template, scheduled in the Application Jobs app; results in an application log written with CL_BALI_LOG.

Q8. How are job parameters defined?

With IF_APJ_RT_RUN as public attributes of the class (ABAP Doc short text = label). In the legacy interfaces in get_parameters: et_parameter_def (selname, kind, datatype, length, param_text …) and default values in et_parameter_val; execute reads them from it_parameters.

Q9. A report must let users change the status of rows – still a report?

No – data changes need a RAP business object with an action (and validations, locking, authorization). The UI is still a list report, but with buttons; never UPDATE from a query class.

Q10. Why not just keep the SE38 report in private cloud?

It is possible but outside ABAP Cloud: at best Level B (classic APIs only), Level C if it reads SAP tables directly. It blocks a move to the cloud and gives users SAP GUI instead of Fiori – so keep it thin, logic in a class, and plan the replacement.

Q11. Which tests and checks would you run before transporting a clean-core report?

ABAP Unit with cl_cds_test_environment for the CDS views and cl_osql_test_environment for ABAP SQL in the query or job class; ATC with the cloud-readiness / clean-core variant; a preview test of filters, sorting, paging and authorization with a test user.