Thanks for response saddam,
My program stuck at below block and does not get back to at selection screen output block.
AT SELECTION-SCREEN.
if P1 is INITIAL and G1 is INITIAL.
MESSAGE 'Error message' TYPE 'E'.
CALL SELECTION-SCREEN 1000.
LEAVE PROGRAM.
endif.