Hi Amit ,
Thanks for the reply . Now it is working fine by the way u have suggested .
Now finally my code is as follows and it is working fine :
PROCESS BEFORE OUTPUT.
MODULE status_0001.
MODULE get_data . " to get the data into the internal table
LOOP WITH CONTROL tabctrl1 .
MODULE fill_table_control . " to fill the table control
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL tabctrl1.
MODULE user_command_0001.
ENDLOOP.
MODULE get_data OUTPUT.
SELECT * FROM ysuv_employee1 INTO TABLE it_emp1.
ENDMODULE. " get_data OUTPUT
MODULE fill_table_control OUTPUT.
IF it_emp1 IS NOT INITIAL .
READ TABLE it_emp1 INTO wa_emp1 INDEX tabctrl1-current_line .
ENDIF.
ENDMODULE. " fill_table_control OUTPUT
What I have Observed That in the flow logic we only need to write Loop with Control .....Both in PBO and PAI and not to write Loop at Itab into work-area (This Does Not work) . And the Module where we fill the table-control must be within Loop......Endloop.