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

Doubt about table control.

ronaldo_aparecido
Contributor
0 Likes
953

Good Morning Comunnity.

I have a table control.

This table control receives data from an internal table with 255 records.

Why when I run the program appear only twelve records in table control?

PROCESS BEFORE OUTPUT.

   MODULE status_0100.

   MODULE image2.

   LOOP AT t_message WITH CONTROL tc_tela2.

   ENDLOOP.

*

PROCESS AFTER INPUT.

   MODULE exit_command AT EXIT-COMMAND.

   LOOP AT t_message.

   ENDLOOP.

Thanks.


1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
915

Hi ,

Check whether there is any filter set for displaying records , Also pls make sure whether you have 255 records in the Internal table.

8 REPLIES 8
Read only

Former Member
0 Likes
916

Hi ,

Check whether there is any filter set for displaying records , Also pls make sure whether you have 255 records in the Internal table.

Read only

former_member226225
Contributor
0 Likes
915

Hi Ronaldo,

Can you please provide a screen shot of Internal Table of 255 rows and can you check table properties

how many rows a table can display.

Thanks & Regards,

Raghunadh Kodali.

Read only

eduardo_hinojosa
Active Contributor
0 Likes
915

Hi

Try to write in your PAI (in a module type USER_COMMAND... where you control the scroll with SY-UCOMM P++, P--)

describe table t_messages lines tc_tela2-lines.

Debug your report and check if TC_TELA2-LINES = 11 (I can count 11 lines) and why.

I hope this helps you

Regards

Eduardo

Read only

hiriyappa_myageri
Participant
0 Likes
915

hi Ronaldo,

1).Check the table Properties,

2).Check weather some where internal table records will be deleting or not.

3).Better way is Use Table Control Wizard it reduce your all coding part.

Thanks,

Hiriyappa.

Read only

davis_raja
Active Participant
0 Likes
915

In the PBO module make sure that you have added this line.

DATA : v_lines TYPE i.

DESCRIBE TABLE t_message LINES v_lines.

tc_tela2-lines = v_lines.

Read only

sivaganesh_krishnan
Contributor
0 Likes
915

HI ronaldo,

First check if the values in the internal table gets modified or not . If that is ok , then as edurado suggested , try writing the describe table and see the response.

Also you can refer the standard program,  DEMO_DYNPRO_TABCONT_LOOP_AT and DEMO_DYNPRO_TABCONT_LOOP.

Regards,

Sivaganesh

Read only

0 Likes
915

Hi Ronaldo,

Please ensure ...

1) Your internal table contains 255 records before its getting looped to table control.

2) You must describe your internal table in PBO to make vertical scrolls available for you.

     ex: DATA : lv_records TYPE i.

          DESCRIBE TABLE t_message LINES lv_records.

          tc_tela2-lines = lv_records.

Try to provide the cursor position while looping your internal table in PBO like...

     LOOP AT t_message WITH CONTROL tc_tela2 CURSOR current_line.

     ENDLOOP.

Regards,

Aabid Khan

Read only

former_member209120
Active Contributor
0 Likes
915

Hi Ronaldo Aparecido

First debug and see how many records you are getting in internal table.

If it is ok...

In PBO do like this

data: v_line type i.

DESCRIBE TABLE  gt_table LINES v_line.

table_control-lines = v_line + 1.

http://help.sap.com/saphelp_470/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm