Hi Ashish,
You are Awesome. Its Done.
Solution:
1. In PBO:
if o_cont is initial.
XXXXXXXXXX
else.
call method o_grid->refresh_table_display
exceptions
finished = 1
others = 2.
endif.
2. Code Remains Same:
if sy-ucomm eq 'SELECT_ALL'.
loop at gt_outtab.
if gt_outtab-doc_no is not initial.
gt_outtab-check_box = 'X'.
modify gt_outtab index sy-tabix transporting check_box.
endif.
endloop.
endif.
or
* IF sy-ucomm EQ 'SELECT_ALL'.
* LOOP AT gt_outtab ASSIGNING <fs_outtab>.
* IF <fs_outtab>-doc_no IS NOT INITIAL.
* <fs_outtab>-check_box = 'X'.
* ENDIF.
* ENDLOOP.
* ENDIF.