Below is the code snippet  to display error message, in report after selection of data.

Normal type 'E' report prevent user to back to original selection screen.

IF ta_report[] IS NOT INITIAL.
    
PERFORM display_report.
ELSE.
    
MESSAGE s000(zfi01WITH  'Data Does Not Exists' DISPLAY LIKE 'E'.
    
LEAVE LIST-PROCESSING.
ENDIF.


Serkan AKKAVAK
Computer Engineer
serkurumsal@yandex.com