RAP Build-Along Part 9: Production Troubleshooting — Metadata, Behavior, Messages and Save
Preview · a free account unlocks the full lesson
Troubleshoot the Travel app layer by layer: missing fields or actions (metadata), disabled buttons (feature control vs authorization), messages that do not appear, and save failures — with a checklist and the right tools.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 8 built the Travel app; this final basics lesson is the support checklist you'll actually use week to week, and it's worth localizing the problem to a specific layer first — service/metadata, then behavior (feature control, authorization), then messages, then save. Further detail on each area lives in Service Definitions Part 4, CDS Annotations Part 5, Draft Handling Part 5, and OData V4 Part 5.
When a field or action is missing, check in order: whether the field is in the projection view's (ZC_RAP_Travel) element list, whether the action is listed in the projection behavior definition ("use action acceptTravel;"), whether the entity is exposed in the service definition with the binding refreshed and published, and finally whether $metadata actually contains it.
If it's missing from $metadata, the problem is in the backend layers above; if it's present in $metadata but still not showing, look at UI annotations (such as @UI.lineItem #FOR_ACTION or facets) or at caching.
When a button is disabled or an action gets rejected, the cause is usually one of two things. A disabled button generally means instance feature control (get_instance_features) is returning disabled for the current state — for example, a travel that's already accepted — so check the status. An action that's enabled but rejected with "not authorized" points instead to authorization (get_instance_authorizations or a global check) or roles. You can test which one decided the outcome with EML's GET PERMISSIONS or with a Cross Trace.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
More lessons in this topic
- RAP Basics Part 1: RAP Architecture — Layers, Artifacts and When RAP Fits
- RAP Basics Part 10: EML — Entity Manipulation Language
- RAP Basics Part 11: Draft, Locking and Authorization
- RAP Basics Part 2: Data Model Design — Tables, Keys, Administrative Fields and Interface Views
- RAP Basics Part 3: Projection Layer and Metadata Extensions
- RAP Basics Part 4: Implementation Types — Managed, Unmanaged, Additional Save and Unmanaged Save
- RAP Basics Part 5: Root Entity, Child Entity and Composition
- RAP Basics Part 6: Behavior Definition — CRUD, Field Control and Features
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.