cancel
Showing results for 
Search instead for 
Did you mean: 

FAILED vs REPORTED Table

lloydfernandes
Advisor
Advisor
0 Kudos

In RAP, I understand that the REPORTED table is used to pass all types of messages. However, I see that the REPORTED table is also used for error messages when there is an explicit FAILED table to report errors. Why is it not enough to fill only the FAILED table in this case?

Accepted Solutions (1)

Accepted Solutions (1)

SiddharthaR
Advisor
Advisor

Hi Llyod ,

Failed is to indicate that a particular transaction has failed or part of a particular transaction has failed. You will not be able to display custom messages in UI or API through failed structure. For example in context of an API you can use failed structure to set the status code to "400" to indicate that the interaction failed and send the exact message through reported.


Reported on the other hand is a message handling structure that is used to pass on Success , Warnings or Information messages to either API or UI based on your requirement. Based on the nature of the message ( State or Transactional ) you can control how the message would appear in the UI .

Answers (0)