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

table control in Module pool programming

Former Member
0 Likes
1,313

How to add the vertical scroll bar in table conrol in Module pool programming. can anyone give me the exact coding for adding that vertical scroll bar.

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
1,148

hi,

pls chk this stnd pgms. u will get good idea.

demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at
RSDEMO_TABLE_CONTROL

Regards

Anver

10 REPLIES 10
Read only

anversha_s
Active Contributor
0 Likes
1,149

hi,

pls chk this stnd pgms. u will get good idea.

demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at
RSDEMO_TABLE_CONTROL

Regards

Anver

Read only

Former Member
0 Likes
1,148

Hi,

Try defining the table control lines in PBO.

PROCESS BEFORE OUTPUT.

ZTR0300-CURRENT_LINE = 100.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
1,148

Joseph,

Automatically sysetem will take care.

Vertical scroll will add when the number of records are more than the displayed rows in table control.

Pls. reward if useful

Read only

Former Member
0 Likes
1,148

Hi,

No coding is required for adding the scroll bars.

In the Table control Attributes, down below the screen

just put/select "X" for both vertical and Horizontal scroll bar.

they will come automatic.

Regards,

Anji

Read only

Former Member
0 Likes
1,148

Joseph,

Automatically sysetem will take care.

Vertical scroll will add when the number of records are more than the displayed rows in table control.

Pls. reward if useful

Read only

Former Member
0 Likes
1,148

add module vertical_scroll in PBO and try.



module vertical_scroll output.

data n type i.
  describe table it_div lines n.
tabctrl-lines = n.

endmodule. 

reward if useful.

Read only

Former Member
0 Likes
1,148

hi

i think u can set them inthe tablecontrol properties

Read only

Former Member
0 Likes
1,148

hi,

after creating the table control to a screen,

check these table control attributes,

Resizing & Separators check them both for

vertical & horizontal,

try this,

kc

Read only

Former Member
0 Likes
1,148

you can add the following code in the PAI which is very easy to understand

//

DESCRIBE TABLE it LINES fill.

tc-lines = fill.

//

here the "tc" is the table control and the "it " and "fill" are two Integer variables.

Read only

Former Member
0 Likes
1,148

Hello Joseph,

Add a module in PBO,

module Scroll_bar.

If it_final is your final internal table(which you are outputting on table control)

data: lv_lines type n.

describle table it_final lines lv_lines.

tab_cntl-lines = lv_lines.

where tab_cntl is your table control.

Regards