‎2006 Dec 07 5:59 AM
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
‎2006 Dec 07 6:01 AM
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.
‎2006 Dec 07 6:01 AM
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.
‎2006 Dec 07 6:04 AM
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
‎2006 Dec 07 6:04 AM
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
‎2006 Dec 07 6:08 AM
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.