Should be something like below. It's important to set as type S(uccess) and display like E(rror).
MESSAGE 'Your error message here.' TYPE 'S' DISPLAY LIKE 'E'.
LEAVE LIST-PROCESSING.
Should be something like below. It's important to set as type S(uccess) and display like E(rror).
MESSAGE 'Your error message here.' TYPE 'S' DISPLAY LIKE 'E'.
LEAVE LIST-PROCESSING.