ERPClimb logoERPClimb
Login
All topics
RAP_CDS_ODATAintermediate

EML

Use RAP Entity Manipulation Language to read and modify RAP business objects directly from ABAP with type-safe operations. Learn READ/MODIFY ENTITIES, create-by-association, actions, MAPPED/FAILED/REPORTED, local mode and transaction handling with COMMIT ENTITIES.

Overview

Use RAP Entity Manipulation Language to read and modify RAP business objects directly from ABAP with type-safe operations. Learn READ/MODIFY ENTITIES, create-by-association, actions, MAPPED/FAILED/REPORTED, local mode and transaction handling with COMMIT ENTITIES.

Lessons in this topic

Interview questions covered

  • A mass-upload program inserts purchase requests directly into the BO tables. Requests appear in the app without status or number and some violate rules. How do you rewrite it?
  • What is EML, which statements does it have, and why should programs use EML instead of updating tables directly?
  • Explain %cid, %cid_ref, MAPPED, FAILED and REPORTED using a deep create of a header with two items.
  • Your EML MODIFY returns no FAILED entries, but the data is not saved. Why, and how should the program evaluate results?
  • What does IN LOCAL MODE skip, what does it not skip, and why is it needed inside a behavior pool?
  • A purchase request action must create a budget reservation in a finance BO, but the user lacks finance authorization. A developer wants to use IN LOCAL MODE or write the table directly. What do you advise?
  • How do two RAP business objects stay consistent when an action in one creates data in the other?
  • A program creates records in two RAP BOs and commits after each. When the second fails, orphans remain. How do you fix the program?
  • Why must EML-based tests of validations call COMMIT ENTITIES, and how do you keep such tests isolated?
  • Design a test suite for a RAP business object before go-live. What must it cover?

How to study EML

EML has 5 lessons (3 intermediate, 2 advanced) with about 49 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 19 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.

  • Inside a purchase request action, a developer writes MODIFY ENTITIES OF a finance BO IN LOCAL MODE. What happens?
  • A program changes two RAP BOs that must be saved together. How should it commit?
  • Which checks does IN LOCAL MODE skip?
  • Where is IN LOCAL MODE allowed?
  • A unit test modifies an instance with invalid data but the validation never fails. What is missing in the test?
  • How do you keep EML unit tests isolated from real data?
  • In an EML CREATE statement for a RAP business object, what is the primary purpose of the %cid field?
  • Which EML statement is used to retrieve data from RAP business object instances, including via associations?
  • In a RAP unmanaged scenario, why might a developer explicitly issue the COMMIT ENTITIES statement in EML, for example within an ABAP Unit test?
  • A batch program inserts requests directly into the BO tables. Which consequence is most likely?
  • A program creates headers and then needs their keys to add items. What is the correct approach?
  • What is the correct use of MAPPED as an EML response parameter after a CREATE operation with client-generated %cid values?
  • Which EML response parameter provides the actual message texts (e.g., error, warning, success) generated during processing of an entity operation?
  • A unit test for a validation only calls MODIFY ENTITIES and passes, although the validation is broken. Why?
  • How can a deep create be performed in EML to create a child instance together with its parent in one statement chain?

Code lab scenarios

  • EML MODIFY Without Checking reported/failedAn action is supposed to cancel a booking and log the cancellation reason. Sometimes the booking status changes but no cancellation reason ends up recorded, with no error shown anywhere.

Related topics

Interview questions on this topic