‎2009 Sep 07 12:32 PM
Hello experts
The data from the internal table is not populating in my table control , i dont know what I am missing but i can see the structure populating with values in internal table.
this is my code to move data from internal table to table control.
PROCESS BEFORE OUTPUT.
MODULE status_1301.
LOOP WITH CONTROL gt_con.
MODULE FILL_TABLE_CONTROL.
ENDLOOP.
MODULE status_1301 OUTPUT.
DESCRIBE TABLE gt_del_items LINES gv_fill.
gt_con-lines = gv_fill.
MODULE fill_table_control OUTPUT.
READ TABLE gt_del_items INTO ZLOTAB_CONTRL INDEX gt_con-current_line.
ENDMODULE. " FILL_TABLE_CONTROL OUTPUT
here zlotab_contrl is my structure.
with mandt , delivery and item fields.
plz advise..
Thanks
‎2009 Sep 07 1:10 PM
Hi,
Declare your internal table same as that of your table control structure. In PBO of the screen you need to write the code to fetch the data from the internal table and display in the table control.You need to declare the variable globally in TOP INCLUDE and not locally in PBO
Regards,
Pradyumna
‎2009 Sep 07 1:10 PM
Hi,
Declare your internal table same as that of your table control structure. In PBO of the screen you need to write the code to fetch the data from the internal table and display in the table control.You need to declare the variable globally in TOP INCLUDE and not locally in PBO
Regards,
Pradyumna
‎2009 Sep 07 2:08 PM
give your internal table name same as the name your have used for table in the table control.
just use the Wizard. that will give you the code automatically
‎2009 Sep 07 2:08 PM
calling table control in the layout with right name solved the problem.
thanks for the reply though.