Hi Mamatha ,
In the form compute_scrolling_in_tc , while calling the FM SCROLLING_IN_TABLE , pass the value of ok_code as P++
like this :
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
entry_act = <tc>-top_line
entry_from = 1
entry_to = <tc>-lines
last_page_full = 'X'
loops = <lines>
ok_code = 'P++'
overlapping = 'X'
IMPORTING
entry_new = l_tc_new_top_line
EXCEPTIONS
* NO_ENTRY_OR_PAGE_ACT = 01
* NO_ENTRY_TO = 02
* NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
If it is working then change the function code of DOWN as P++
Regards
Yogendra Bhaskar