ERPClimb logoERPClimb
Login
All topics
RAP_CDS_ODATAintermediate

Behavior Implementations

Learn how RAP behavior pools implement actions, determinations, validations, authorization and unmanaged persistence while respecting bulk-processing and save-sequence rules. The emphasis is thin framework handlers, reusable domain services and correct FAILED/REPORTED messaging.

Overview

Learn how RAP behavior pools implement actions, determinations, validations, authorization and unmanaged persistence while respecting bulk-processing and save-sequence rules. The emphasis is thin framework handlers, reusable domain services and correct FAILED/REPORTED messaging.

Lessons in this topic

Interview questions covered

  • What is a behavior pool, and what is the difference between its handler and saver classes?
  • Explain %tky, %key, %cid, %pid, %control and %param. Which mistake happens when developers use key fields instead of %tky?
  • A purchase request total is sometimes doubled after editing in draft. The determination adds the changed item's amount to the total. What is wrong and how do you fix it?
  • What rules must determinations and validations follow, and what must they never do?
  • An integration called the approve action for requests in status New and approved them, bypassing the workflow. The Fiori button was correctly disabled. What went wrong?
  • Implement a 'copy request' feature in RAP. Which action type do you use and how does it return the new instance?
  • When does a managed RAP BO need a saver class, and what goes into adjust_numbers and save_modified?
  • An audit log written in a determination contains duplicate entries and entries for changes that were never saved. How do you fix it?
  • How do you test and debug a RAP behavior implementation effectively?
  • You review an inherited behavior pool before go-live. What checklist do you apply?

How to study Behavior Implementations

Behavior Implementations has 5 lessons (3 intermediate, 2 advanced) with about 57 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 10 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 15 mock questions to check recall. Finish with the 1 code lab scenario: 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.

  • Which statement about the structure of a behavior pool is correct?
  • An API approved requests in status New although the Fiori Approve button was disabled. What is the correct fix?
  • Saver code calls a remote REST service synchronously during save. Why is this a problem?
  • Mass approval works for five orders but times out for 800. Which tool shows the repeated database statements fastest?
  • When enabling draft handling for a RAP business object, which additional artifact must typically be created alongside the transactional behavior definition?
  • In a RAP behavior definition, a determination is defined with the trigger point 'ON SAVE'. What is the key characteristic of this trigger point compared to 'ON MODIFY'?
  • A behavior pool implements a custom action that is defined as a factory action in the behavior definition. What distinguishes a factory action from a regular instance action?
  • During implementation of the standard CREATE operation in an unmanaged RAP behavior pool, which method signature parameter is used to report newly assigned keys back to the framework?
  • A validation checks suppliers with SELECT SINGLE inside a loop over all instances. What is the recommended fix?
  • In an unmanaged RAP implementation, the developer chooses NOT to implement a LOCK method in the behavior pool. What is the consequence for concurrent access to the business object?
  • A behavior definition includes both a managed implementation type for standard operations and a custom action implemented in a behavior pool. Which statement about combining managed and self-implemented elements in the same behavior definition is correct?
  • A RAP business object needs optimistic concurrency control so that OData clients must supply an ETag when updating an entity. How is this typically enabled in the behavior definition?
  • Which sequence correctly reflects the order of RAP save sequence methods called by the framework during the SAVE phase of an unmanaged or managed implementation with custom save logic?
  • A developer needs to ensure that a customer order cannot be saved if its total amount is negative. Which behavior implementation construct is the correct choice for this requirement?
  • In a managed RAP business object, a developer wants to prevent the 'Approve' action from being executed when the order status is already 'Approved'. Where should this logic be implemented?

Code lab scenarios

  • SELECT Inside LOOP in a RAP ValidationA validation checks that every travel item''s plant exists in T001W before allowing save. It works correctly but times out on travels with more than a couple hundred items.

Related topics

Interview questions on this topic