What do the failed, reported and mapped response parameters contain, and how do you use them?
Say your answer out loud first.
Practise another way
Each EML call and each handler method gets three response structures. Mapped links the temporary content ID you gave a new instance to its real key, so it exists only for creates.
Failed lists the instances that could not be processed, with a cause. Reported carries messages, per instance and per field. In handler methods you fill failed and reported yourself, and the framework passes them to the caller.
The three parameters are deep structures: one table per entity of the BO. You get their types with TYPE RESPONSE FOR FAILED|REPORTED|MAPPED bdef. Their names are predefined in handler methods.
mapped
- Only exists for operations that create instances.
- Links the
%cidyou passed in to the final key, or to a preliminary%pidin late numbering. This is how you learn the generated UUID.
MODIFY ENTITIES OF zr_travel
ENTITY Travel CREATE FIELDS ( Description )
WITH VALUE #( ( %cid = 'T1' Description = 'Offsite' ) )
MAPPED DATA(mapped) FAILED DATA(failed) REPORTED DATA(reported).
DATA(new_uuid) = mapped-travel[ %cid = 'T1' ]-TravelUUID.
failed
- Identifies instances where an operation did not work, for example because a validation or a check rejected it.
- It logs the keys of the instances for which the operation failed, in one table per entity, with types derived by the framework.
- If you ignore
failed, you may continue on data that was never changed.
reported
- Carries messages:
%msg, the instance key, and optionally%elementto mark the field in error. - It is for the user (Fiori shows them), not for program flow. Branch on
failed, displayreported.
In handler methods
- Validation and action methods have
failedandreportedas changing parameters. A validation does not raise an exception. It appends to both:- to
failedto mark the instance as invalid, which stops the save, - to
reportedto say why, in plain words.
- to
mappedis available in create methods that you implement yourself, for example in unmanaged or when creating children.
Early and late variants. With late numbering you also see ... LATE types (RESPONSE FOR MAPPED LATE), which the saver methods use, because final keys appear in the save sequence.
Why it is designed this way: RAP never raises an exception to leave the transaction. Errors travel as data, so the framework can collect them from many instances at once.
Explains each parameter's purpose, that mapped is creates only, and that handlers append instead of raising.
Treats them as 'error tables' and cannot explain mapped or why exceptions are not used.
Reading messages from `reported` to decide program flow. Decide on `failed`, which tells you whether the operation actually happened.
- What is the difference between %cid and %pid?
- Can a validation raise an exception?
- How do you pass a field to the UI so it is highlighted?
- What happens if you ignore failed?
3 official pages. Confidence: high. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.