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

Former Member
0 Likes
568

Hi,

I have displayed data in a table control from the internal table . But the internal table contains 160 rows. but the table control is displaying some 40 rows. Whe I am pressing Vertical Scroll bar it is not moving . Shall we write any code for moving of vertical scroll bar ? If yes how we have to write the code ?

Can I have any example of that code ? and Help on table control .

Bye,

Satya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

hi,

in a PBO module we code it like this

module user_command_0200 input.
describe table itab lines tbc-lines.
tbc-lines = tbc-lines + 5.
endmodule.

now u can see 5 lines open for input others in display mode. ofcourse a vertical scroll bar in your case give 160

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

5 REPLIES 5
Read only

Former Member
0 Likes
541

hi,

in a PBO module we code it like this

module user_command_0200 input.
describe table itab lines tbc-lines.
tbc-lines = tbc-lines + 5.
endmodule.

now u can see 5 lines open for input others in display mode. ofcourse a vertical scroll bar in your case give 160

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

0 Likes
540

Hi Sonthosh,

One More Problem is that I have displayed the records with a check box in the Table control. If the user checks the record then press the save button then corresponding record or records should be saved in the Zdbtable. How can we do it ? and also after check the record and press the save button the record should come in the display mode.

Can I have help on this ?

Bye,

Satya.

Read only

0 Likes
540

hi,

Refer to these related threads

Regards,

Santosh

Read only

Former Member
0 Likes
540

Hi,

In PBO, add this.

PROCESS BEFORE OUTPUT.

MODULE LINES.

module LINES output.

DESCRIBE TABLE IT_cus LINES Contrl-LINES.

endmodule. " LINES OUTPUT

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
540

Hi,

You need to code by increasing the height by some no. say 100 as shown below.

PROCESS BEFORE OUTPUT.

MODULE get_t_ctrl_lines.

MODULE get_t_ctrl_lines OUTPUT.

DESCRIBE TABLE itab LINES ln.

  • To make the vertical scroll bar to come on runtime

t_ctrl-lines = ln + 100.

ENDMODULE. " get_T_CTRL_lines OUTPUT