ERPClimb logoERPClimb
Login
All topics
ARCHITECTAdvanced

RAP Basics

Master ABAP RAP fundamentals with CDS root views, behavior definitions, managed and unmanaged scenarios, actions, determinations, validations, EML, draft, locking, authorization and service binding.

Overview

Master ABAP RAP fundamentals with CDS root views, behavior definitions, managed and unmanaged scenarios, actions, determinations, validations, EML, draft, locking, authorization and service binding.

Lessons in this topic

Interview questions covered

  • How does RAP fit S/4HANA Clean Core?
  • What is a determination?
  • How do you expose a RAP service to Fiori?
  • What is the difference between action, determination and validation in RAP?
  • How would you design a RAP business object with header and items?
  • What is the role of behavior definition in RAP?
  • What is RAP in SAP ABAP?
  • Explain the difference between managed and unmanaged RAP business objects.
  • Why should direct database updates be avoided for RAP business objects?
  • Your team must decide between managed and unmanaged RAP for a new requirement. Which questions do you ask?
  • An approve action for expense claims reads each selected claim with a separate SELECT SINGLE in a loop and raises a message when one fails, but the other claims still get approved without any explanation for the failed one. How do you improve the implementation?
  • In a travel app, the total price is calculated in a determination on save. Users entering bookings in the Fiori object page see a total of zero until they press Save and think the app is broken. What do you change?
  • A batch program called MODIFY ENTITIES to create orders and immediately reported success, but nothing appeared in the database and some records were never explained. What is wrong?
  • An expense app put defaulting, validation and status transitions all into one big determination on save. Users get no immediate feedback, and wrong amounts are silently corrected. How would you restructure the logic?
  • A new approval app on custom tables needs standard CRUD, draft, and in addition must write change documents and an application log entry whenever an approval request is saved. Which RAP implementation type do you choose and where does the extra logic go?
  • Your team designed a draft-enabled RAP BO for trade promotions with the promotion number (from a number range) as the table key, drawn in early numbering. Auditors now complain about large gaps in promotion numbers. What went wrong and how would you redesign the keys?
  • A Fiori app hid the Approve button for approved or foreign-region requests, but an integration partner using the OData API was still able to approve such requests. Where should this rule have been implemented?
  • A RAP-based Fiori app suddenly shows an empty list after a transport. How do you localize the problem?
  • What key design decisions do you make when starting a new RAP business object?
  • Explain RAP feature control for operations and fields, and how to troubleshoot it.

How to study RAP Basics

RAP Basics has 20 lessons (3 beginner, 13 intermediate, 4 advanced) with about 294 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 43 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 59 mock questions to check recall. Finish with the 4 code lab scenarios: read the buggy code first, say what is wrong, and only then open the optimized version.

Mock test questions covered

Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.

  • In managed with unmanaged save, how should a legacy posting function be called?
  • An action button is visible but disabled for some instances. Which method most likely decides this?
  • Requests must get gap-free numbers only when actually saved. Which technique fits?
  • A RAP OData request fails with HTTP 500. Where do you look first?
  • A new field is in the projection and $metadata, but the Fiori app does not show it. What should be checked?
  • Deep create of a travel with bookings fails with "operation not allowed" for bookings. What is missing?
  • Which declaration makes a field read-only only after the instance is created?
  • In a managed RAP app, which part do developers typically NOT implement?
  • A validation on save does not show errors when the user edits a draft and clicks Save. What is the most likely cause?
  • A booking price change updates the total in the backend, but the UI shows the old total. What is missing?
  • A value help shows no entries for one user but works for others. What is the most likely cause?
  • In which phase must all errors be detected so the save phase cannot fail?
  • A user sees "Locked by" herself on a travel. What is the most likely explanation?
  • What does draft handling provide in a RAP business object?
  • Which requirement is the weakest fit for building a RAP business object?

Code lab scenarios

  • Convert a BAPI into a RAP unmanaged serviceLegacy BAPI_TRAVEL_CREATE must be exposed as an OData V4 service consumable by Fiori without rewriting persistence.
  • Validation Not Returning Failed and Reported MessagesA RAP validation detects an invalid amount, but the Fiori app still does not show a proper error on the row.
  • Wrong Choice: Unmanaged RAP for Simple CRUDA developer builds an unmanaged RAP object for a simple custom table maintenance app and writes unnecessary save logic.
  • Direct Table Update Bypassing RAP BehaviorA background program directly updates the RAP persistence table and bypasses validations and determinations.

Related topics

Interview questions on this topic