Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with table control

Former Member
0 Likes
500

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

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

3 REPLIES 3
Read only

Former Member
0 Likes
468

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

Read only

0 Likes
467

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

Read only

Former Member
0 Likes
467

calling table control in the layout with right name solved the problem.

thanks for the reply though.