Hi Priyaranjan,
Also add the following coding in PBO.
PROCESS BEFORE OUTPUT:
IF SY-UCOMM = 'GO'
LOOP AT SCREEN.
IF SCREEN-group1 = 'GRP'.
SCREEN-INPUT = 1.
SCREEN-INVISIBLE = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-group1 = 'GRP'.
SCREEN-INPUT = 0.
SCREEN-INVISIBLE = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
Regards
Rajkumar Narasimman