Hi Gita,
Hope it helpful.
Try this code.
AT SELECTION-SCREEN.
DATA: fname(30),
fval(30).
GET CURSOR field fname value fval.
CASE fname.
WHEN 'P_DEST'.
IF fval IS INITIAL.
MESSAGE 'Enter the p_dest values' type 'S' DISPLAY LIKE 'E'.
STOP.
ENDIF.
WHEN 'P_IPADDR'.
IF fval IS INITIAL.
MESSAGE 'Enter the P_IPADDR values' type 'S' DISPLAY LIKE 'E'.
STOP.
ENDIF.
WHEN 'P_INSTNO'.
IF fval IS INITIAL.
MESSAGE 'Enter the P_INSTNO values' type 'S' DISPLAY LIKE 'E'.
STOP.
ENDIF.
ENDCASE.
Regards,
Venkat.