You must add a new editable field to your own draft-enabled managed RAP business object. Which objects do you change, in which order, and what breaks if you skip one?
Say your answer out loud first.
Practise another way
I go bottom up: the active table, then the base CDS view, then I regenerate the draft table with the quick fix in the behavior definition. In the BDEF I add the mapping and field properties and extend determination or validation triggers if needed.
Then the projection view, the metadata extension for the UI, and any draft query view. Skip the draft table and the BDEF will not activate; skip the mapping and the value is silently not saved.
The order (bottom up)
- Active table: add the column with a proper data element. If it is an amount or quantity, add the currency or unit reference.
- Base CDS view entity (
ZR_...): add the element with its alias. - Draft table: the draft table must mirror the CDS entity field by field, with alias names and exactly matching types. Adding a field is a structural change: open the BDEF, put the cursor on the draft table name, Ctrl+1, choose recreate draft table. SAP's tutorial and TechEd 2025 exercise do exactly this. SAP's guide warns the quick fix overwrites the whole table definition, so re-add any manual changes.
- Behavior definition:
field ( mandatory ) Priority;
determination setDefaults on modify { create; field Priority; }
mapping for ztravel corresponding
{
Priority = priority;
}
- Mapping, if the alias differs from the column.
- Field characteristics:
readonly,mandatory,features : instance. - Trigger lists of determinations, validations and side effects that should react to the field.
- Draft
Preparelist if a new validation must run before activation.
- Projection view (
ZC_...): add the element, value help, text. - Metadata extension:
@UI.lineItem,@UI.identification, field group. - Draft query view, if the BDEF names one with
query: add the field there too. - Projection BDEF usually needs nothing; it inherits fields.
What breaks when you skip a step
| Skipped | Symptom |
|---|---|
| Draft table | BDEF error on the draft table line |
| Mapping | Saved without error, value missing in the table |
| Projection | Field not in the service |
| Metadata extension | Field in the service, invisible in the app |
| Trigger lists | Totals or checks ignore the new field |
Release-dependent alternative. For BOs designed for extensibility, SAP puts an extension include into both the active table and the draft table, so a field is added once. That is how released SAP BOs are built and what developer extensibility uses.
Test. Edit, save as draft, leave, resume, activate. Then check open drafts created before the change still activate, and run your ABAP Unit tests.
Lists the objects bottom up including draft table regeneration, BDEF mapping and trigger lists, and ties each skipped step to its symptom.
Adds the field to the table and the UI only, then wonders why draft activation fails or the value never persists.
Regenerating the draft table and losing manual adjustments, or not regenerating it at all. The quick fix overwrites the definition; the developer owns keeping both tables aligned.
- Why must the draft table match the CDS entity and not the active table?
- What is a draft query view and when do you need to touch it?
- How would you design the BO so that new fields are added only once?
6 official pages. Confidence: high. Checked 2 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.