In my program logic start-of-selection i am retrieving data from DB tables based on selection parameters. How if the data is not found then i am displayed a error message. The problem is after the error message is displayed instead of going back to selection screen it is goin to sap main screen. how to fix this issue.
SELECT BUKRS
BELNR
GJAHR
BLDAT
BLART
WAERS
KURSF
BKTXT
STODT
STGRD
FROM BKPF INTO TABLE GT_REVERSAL
WHERE BUKRS IN S_BUKRS AND
BELNR IN S_BELNR AND
GJAHR IN S_GJAHR AND
STODT IN S_RBDAT AND
XSTOV EQ 'X' AND
STBLG EQ ''.
IF GT_REVERSAL[] IS INITIAL.
MESSAGE E062(YF).
ENDIF.