You have a new database table and 30 minutes. How do you get a working RAP Fiori app on it with the ADT generator, what does the generator create, and what do you still check by hand?
Say your answer out loud first.
Practise another way
I right-click the table in ADT, choose Generate ABAP Repository Objects and the RAP OData UI Service generator. It creates the base CDS view and a draft-enabled managed behavior definition with its class and a draft table.
It also creates the projection view and projection BDEF, the service definition and an OData V4 UI binding. I publish the binding and open the Fiori elements preview.
Then I review keys, numbering, authorization, field properties and names, because the generator only gives a starting point.
Step 1: the table
Give it the fields RAP needs: a key, and admin fields typed with the RAP data elements such as abp_creation_user, abp_locinst_lastchange_tstmpl and abp_lastchange_tstmpl. SAP's RAP100 tutorial uses exactly these; the generator turns them into ETag and admin fields.
Step 2: run the generator Right-click the table, Generate ABAP Repository Objects, pick ABAP RESTful Application Programming Model: OData UI Service. The wizard proposes names per layer; the RAP100 tutorial sets them like this:
| Layer | Object |
|---|---|
| Base BO | CDS entity ZRAP100_R_TRAVELTP_###, behavior class, draft table |
| Projection | ZRAP100_C_TRAVELTP_### and projection behavior class |
| Service | definition ZRAP100_UI_TRAVEL_###, binding ..._O4_###, type OData V4 - UI |
The result is transactional, draft-enabled and has UI annotations (a metadata extension), so the preview already shows columns.
Step 3: publish and preview
- Open the binding and Publish. On S/4HANA on-premise or Private Edition, publish the service group with /IWFND/V4_ADMIN instead (tutorial step 6).
- Select the root entity, Preview, press Go. A data generator class (
if_oo_adt_classrun) fills test rows.
Step 4: what to check by hand
- Keys and numbering: generated UUID keys with managed numbering are fine technically; if users need a readable number, add it with a determination or late numbering.
- Authorization: the generated BO declares authorization; implement the global and instance methods and a CDS access control, or anyone with the app can change data.
- Field characteristics:
readonlyfor admin and calculated fields,mandatorywhere the business demands it. - Mapping: CDS names versus table columns.
- UI annotations: labels, column order, value helps, texts.
- Naming: align with the project convention before the first transport; renaming later means recreating objects.
- Behavior: add validations, determinations and actions; the generator creates none.
Why interviewers ask: candidates who only watched videos describe the layers. Candidates who built one know where the generator stops and what it does not do for them.
Walks through the wizard by name, lists the generated objects per layer with the V4 binding and draft, and names concrete hardening steps (authorization, numbering, field properties, mapping).
Says 'the generator creates everything' and stops there, or cannot say which objects come out and which ones still need real code.
Shipping the generated BO as is. It has no business checks and its authorization methods still need real logic; treat it as scaffolding.
- Which objects would you have to create by hand if the generator were not available?
- The generated app works in preview but a business user can change any record. What did you forget?
- How do you publish the generated V4 service on S/4HANA on-premise?
2 official pages and 2 prep guides. Confidence: high. Checked 2 Dec 2026.
- Prep guide Gives the question.
- Prep guide Describes the round.
- Official page Backs the answer.
- Official page Backs the answer.