LoopProof

RAP fundamentals

The ABAP RESTful Application Programming Model from the ground up: business objects, behavior definitions, managed vs unmanaged, EML, numbering, draft, projections, service definition and binding.

Start with question 1

75 questions, in the order to study them. All free. How we order them

As you check answers, each question gets a mark: done, due, missed.

7 · Learn early 1 question

7 of 10, full marks on two or more checks, with interview evidence.

  1. In what ways does a RAP business object take advantage of the SAP HANA database underneath it?Sources name Accenture

4 · Good to know 15 questions

4 of 10.

  1. What are the service definition and the service binding, and which binding type do you choose?Sources name International Business Machines
  2. Which RAP operations are static and which are instance-bound? What does that mean for global and instance authorization, and why can create not use instance authorization?Sources name International Business Machines
  3. Where do you define a RAP action and where do you implement it? How do you give it an input parameter and show it as a button in the Fiori app?Sources name International Business Machines
  4. What is a behavior definition in RAP, and what do you actually write in one?Sources name International Business Machines
  5. In an unmanaged RAP business object, what do you code for create, read, update and delete? When is your read method actually called, and how do you keep several entities consistent until the save?Sources name PricewaterhouseCoopers (PwC)
  6. Managed, unmanaged, and managed with unmanaged save: what is the difference and how do you choose?Sources name Tech Mahindra
  7. For a new RAP business object today, would you still create a DDIC database table? What is a CDS table entity, and what changes for RAP persistence?
  8. Requirement: employees submit expense claims with line items, managers approve or reject them, and finance's system needs an API to read approved claims. Sketch the RAP business object you would build and defend each choice.
  9. Users of your RAP list report want totals and grouping, like the subtotals they had in ALV. How do you give them that in a RAP UI service today?
  10. FAILED and REPORTED only reach the caller and are never stored. Where and how do you keep a persistent error log and a change log for a RAP business object?
  11. Once a travel is accepted, its booking fee must be read-only, Accept must be greyed out, and no new bookings may be added. Rejected travels must not get bookings either. Write your BDEF lines and your get_instance_features.
  12. Your SAP S/4HANA 2023 system has custom business objects built with CDS and BOPF from the old ABAP programming model for SAP Fiori. What is SAP's position on them, and how would you move them to RAP?
  13. When do you need COMMIT ENTITIES, and why can't you call it inside a behavior implementation? If your action changes a second business object with EML, how does that change get saved?
  14. What does IN LOCAL MODE do in EML, and when should you use it?
  15. What do the failed, reported and mapped response parameters contain, and how do you use them?

3 · Later 28 questions

3 of 10.

  1. In a CDS projection view of a RAP BO, how do you handle associations: compositions, the to-parent association, plain associations, and fields you read through them? What breaks if you get it wrong?
  2. RAP, BOPF, SEGW or CAP: for each of these, which would you choose today and why? A new custom app in SAP S/4HANA 2025 on-premise. A SEGW service a partner already calls. A cloud-native app combining S/4HANA and non-SAP data. A small change to an old CDS-plus-BOPF app.
  3. What are the limitations of RAP? Where have you seen it fit badly, and how did you work around it?
  4. What is RAP, and why did SAP build it when SEGW, BOPF and CAP already existed?
  5. Walk me through the layers of a RAP application, from the database table to the running Fiori app.
  6. What are root and child entities in a RAP business object, and how do compositions work?
  7. Why does RAP have a projection layer, and what is a business object interface?
  8. What do lock master, etag master and authorization master mean, and how do the dependent variants work for child entities?
  9. Explain numbering in RAP: early versus late, external versus internal, and managed versus unmanaged numbering.
  10. Why do you build RAP objects in ABAP Development Tools for Eclipse and not in SE80?
  11. What is a business object in RAP? How is it more than a database table or a CDS view?
  12. Where can you use RAP today, and how do you find out whether a RAP feature you read about exists on your customer's release?
  13. 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?
  14. Is a projection layer mandatory in RAP? Can you expose the interface (R_) view directly in the service definition, and do you even need a behavior definition for a read-only app?
  15. A user reports an error, or a dump, every time they trigger a particular action in your RAP Fiori app. Walk me through how you debug it, including the order in which RAP calls your handler and saver methods.
  16. Your new RAP service previews, you press Go, but the list report table has no columns, and the object page is empty. Why, and what do you add?
  17. Your RAP app's flight value help shows all connections instead of those for the airline already entered. Users can type an ID that does not exist, and on another field the help is empty. How do value helps work in a RAP projection, and how do you fix each problem?
  18. The business wants readable order numbers from a number range object. You can draw the number in early numbering, keep a UUID key and set the number in an on-save determination, or use late numbering. Which do you choose, and why?
  19. Users type the order number themselves when they create an order. It must be mandatory then and never changeable afterwards, and the audit fields must stay read-only. Write the field lines of your behavior definition and explain each one.
  20. In your draft app, validation messages pile up or never disappear. How do RAP messages work: %msg, %element, %state_area, and state versus transition messages?
  21. Most users want the system to assign a UUID key, but a migration program must keep the IDs from the old system. How do you let both work in one managed RAP business object?
  22. Three travels are saved in one request, and check_before_save finds an error in only one of them. What happens to all three, which saver methods run next, what is left in the buffer, and what does your EML caller see?
  23. Your unmanaged save must post through a legacy function module that can still reject the data. How do you design the saver so nothing fails after the point of no return, and what do you do when that cannot be guaranteed?
  24. The business wants your RAP app to suggest values while users type, for example the likely destination from a free-text description, possibly with AI. How do RAP recommendations work, and how do you keep the suggestions safe?
  25. What are field characteristics, strict mode and mapping in a behavior definition?
  26. What is RAP collaborative draft, how do you enable it, and when would you choose it over the classic exclusive draft?
  27. Users of a draft app want to see a validation error while they edit, not only when they press Save. How do determine actions and side effects make that work?
  28. Your action changes a second business object through EML, for example a requisition owned by another team. Its error texts must appear on your object page in your users' words. How do you pass them on, both during the interaction phase and when they arise during the save?

2 · Later 27 questions

2 of 10.

  1. Why do teams move RAP logic out of the handler and saver classes into auxiliary classes, and how do you do it correctly?
  2. What is a behavior pool? Explain handler and saver classes and the method types you use.
  3. Explain the interaction phase, the save sequence and the transactional buffer. Why must you not write COMMIT WORK in a behavior implementation?
  4. Write a managed behavior definition for a Book entity with create, update and delete, one validation and one determination, and explain each line.
  5. How can you use parallel or asynchronous processing together with a RAP business object without breaking its transaction?
  6. What is the difference between a precheck and a validation in RAP, and when do you use each?
  7. In an unmanaged RAP business object, who handles draft and locking: the framework or you? And if locking is generic, why do you get a lock method to implement?
  8. A user changes a field in your managed RAP app, gets no error, but the new value never reaches the database table. How do you find out why?
  9. One RAP business object must serve an existing OData V2 Fiori app and a new OData V4 app on SAP S/4HANA on-premise. How do you bind, publish and transport both services, and what differs between them?
  10. Does a managed RAP business object need any ABAP code at all? What works without a behavior pool, and when do handler and saver classes show up?
  11. A colleague's validation appends an error message to REPORTED but never adds the instance to FAILED. What do you tell them about what the user sees, whether the save stops, and why RAP treats the two parameters differently?
  12. Your RAP business object must keep a technical log that support can open later, also when the request itself failed. In ABAP Cloud, which object do you create, which API do you call, and where do you save the log?
  13. Your action returns a success message, and a validation on the draft returns an error on a field. Explain how each message travels from REPORTED to the Fiori elements screen over OData V4.
  14. One action needs no result, one should return the changed travel, and one should return a different entity. How do you declare each action's result in the BDEF, and what does the caller actually get back?
  15. Users want a 'Create from template' button on the list report. It should open a dialog for the customer and the dates, create a travel with preset values, and open it. How do you build that in RAP?
  16. Walk me through the RAP save sequence phase by phase. For each saver method, what may your code do there, and what is forbidden?
  17. Audit wants a field-level history of changes to your custom managed RAP business object: who changed which field, when, and from what to what. What does RAP give you for that today, what must be in place, and where does it not work?
  18. A partner system calls your RAP Web API and tries to update a travel that your Fiori app shows as read-only. Is feature control a real check or only a UI hint? What stops the update, and what would not?
  19. A user creates a new agency in draft and, in the same session, travels for it, which are a separate RAP business object. Discarding the agency should discard the travels too. How do you model this with RAP draft scope?
  20. What is draft in RAP, and how do the draft table, the draft actions and the total ETag work?
  21. You have a working managed RAP business object with a root and a child entity. The business now wants draft. What exactly do you change?
  22. 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?
  23. Draft or no draft: when would you leave draft out of a RAP business object? And what do users lose if you switch it off on an object they edit over several steps?
  24. What is EML? Show me how you read, change and save a RAP business object from ABAP.
  25. Why does EML work with BDEF derived types and %control instead of a plain database-table row?
  26. How is a child instance created in RAP? What do you declare in the behavior definition, and how do you do it with EML?
  27. In a managed RAP BO, an on-save determination must notify finance only when the status of an existing request really changed in this transaction, not for new requests. How do you find out what changed?

Next topic: SAP BTP, CAP & integration