Skip to Content
0
Former Member
Sep 03, 2008 at 08:50 PM

Module Pool - Table Control - Data not getting displayed in Control

920 Views

Hi,

I have a table contol in my module pool program. In my processing I am filling an internal table & then in my PBO I am linking the internal table to table control. The issue is that even though the internal table is getting filled correctly (found through debugging), the data is not getting populated in table control. Nothing is populated on screen. I am writing part of code below

Declaration:

Types: begin of ty_control,

SELECTED TYPE C,

TEXT TYPE DPR_CAUSE_T-TEXT,

end of ty_control.

CONTROLS : TBL_CONT TYPE TABLEVIEW USING SCREEN '9001'.

DATA: lt_table_cont type TABLE OF ty_control with header line.

Fields in TBL_CONT:

TBL_CONT-SELECTED

TBL_CONT-TEXT

PBO Flow Logic:

MODULE STATUS_9001.

MODULE fill_data.

LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.

ENDLOOP.

PAI Flow Logic:

Loop at lt_table_cont.

MODULE UPDATE_DATA.

endloop.

MODULE USER_COMMAND_9001.

PLZ let me know what might be the problem. I have been trying to figure out but cant.

Thanks.