‎2007 Jun 28 9:12 AM
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.
‎2007 Jun 28 9:15 AM
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
‎2007 Jun 28 9:15 AM
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
‎2007 Jun 28 9:24 AM
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.
‎2007 Jun 28 9:29 AM
‎2007 Jun 28 9:19 AM
Hi,
In PBO, add this.
PROCESS BEFORE OUTPUT.
MODULE LINES.
module LINES output.
DESCRIBE TABLE IT_cus LINES Contrl-LINES.
endmodule. " LINES OUTPUT
‎2007 Jun 28 9:25 AM
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