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

Tabel Control - Module Pool

Former Member
0 Likes
585

I have created a table control on my screen and also had given the text filed names as header of it..

it is working fine but it is not giving me vertical scroll bar which in turn is unabling me to see my all records in the table control..

it is showing horizontal scroll bar and it is workign fine but vertical scroll bar is not visible..

can anybody tell me which setting i need to change so tht vertical scroll bar would get working..

amit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541
PROCESS BEFORE OUTPUT.
 MODULE STATUS_0200.
  MODULE clear_ok_code.



  module data_retrieval.
  Loop  with Control TABCONT.
  module populate_screen.
  endloop.
    module vertical_scroll.

*&---------------------------------------------------------------------*
*&      Module  vertical_scroll  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module vertical_scroll output.
  DATA N TYPE I.
  describe table itab lines N.
tabcont-lines = N.
4 REPLIES 4
Read only

Former Member
0 Likes
542
PROCESS BEFORE OUTPUT.
 MODULE STATUS_0200.
  MODULE clear_ok_code.



  module data_retrieval.
  Loop  with Control TABCONT.
  module populate_screen.
  endloop.
    module vertical_scroll.

*&---------------------------------------------------------------------*
*&      Module  vertical_scroll  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module vertical_scroll output.
  DATA N TYPE I.
  describe table itab lines N.
tabcont-lines = N.
Read only

gopi_narendra
Active Contributor
0 Likes
541

no setting for that.

what u need to do is, in the PBO write these statements

suppose itab is the table which is passed on to the table control

suppose name of tab ctril is tab_ctrl.

data : N type I.

in PBO just write this code

<b>describe table itab lines N.

tab_ctrl-lines = N.</b>

Regards

- Gopi

Read only

Former Member
0 Likes
541

hi,

write the following in ur PBO

DATA L TYPE I.

DESCRIBE TABLE IT_TABLE LINES L. "ur internal table

TC1-LINES = L.

regards,

shan

Read only

Former Member
0 Likes
541

HI,

In PBO just write this..

tabc-table control name..

itab-internal table used in table control,which contains data.

data : wf_lines type i.

<b>describe table itab lines wf_lines.

tabc-lines =wf_lines + 1.</b>

Rgds,

Ajith

Reward if helpful.