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
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com