Hi,
What is the use of g_functab_lines = sy-loopc?
Not all modules are visible.
Yo can check the settings for table control in debugging...
Put a break point at loop in PBO... double click on table control name. Observe the values coming.. in top_line.
Regards
Sreekanth