‎2007 Feb 23 9:20 AM
Hi,
I have created Table Control using table control wizard, but I am not getting the vertical scroll in the table control.
I have another requirement only 20 entries should be allowed in the table control.
Regards,
Ramu N.
‎2007 Feb 23 9:36 AM
Hi,
In PBO, just use the below code but make only 20 entries in enable mode using loop at screen.
t_ctrl-lines = 100.
Jayanthi Jayaraman
‎2007 Feb 23 9:21 AM
‎2007 Feb 23 9:22 AM
Hello,
In PBO of the screen give the describe stmt.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
DESCRIBE TABLE IT_TC01 LINES TC-LINES.
ENDMODULE. " STATUS_0100 OUTPUTVasanth
‎2007 Feb 23 9:26 AM
Hi,
Try defining the table control lines in PBO.
PROCESS BEFORE OUTPUT.
ZTR0300-CURRENT_LINE = 100.
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 Feb 23 9:27 AM
Hi,
Check whether you have selected the vertical resizing option in the attributes of the screen painter.
Regards,
Prasanth
Reward if it helps
‎2007 Feb 23 9:36 AM
Hi,
In PBO, just use the below code but make only 20 entries in enable mode using loop at screen.
t_ctrl-lines = 100.
Jayanthi Jayaraman
‎2007 Feb 23 10:04 AM
Hi,
Have u created TC through wizard or manually??
If through wizard there is a perform for scrolling jus
check its not commented one more thing it only
appears when the TC has more records and if u have
created manually u have to write the proper code for
it like this-
DATA: I TYPE I,
J TYPE I.
WHEN 'P--'. tc_9000-current_LINE = 1.
WHEN 'P-'.
tc_9000-TOP_LINE = tc_9000-TOP_LINE - LINE_COUNT.
IF tc_9000-TOP_LINE LE 0. tc_9000-TOP_LINE = 1. ENDIF.
WHEN 'P+'.
I = tc_9000-TOP_LINE + LINE_COUNT.
J = tc_9000-LINES - LINE_COUNT + 1.
IF J LE 0. J = 1. ENDIF.
IF I LE J.
tc_9000-TOP_LINE = I.
ELSE.
tc_9000-TOP_LINE = J.
ENDIF.
WHEN 'P++'.
tc_9000-TOP_LINE = tc_9000-LINES - LINE_COUNT + 1.
IF tc_9000-TOP_LINE LE 0. tc_9000-TOP_LINE = 1. ENDIF.
Hope this helps u.
Regds,
Seema.
‎2007 Feb 23 10:58 AM
Hi Seema,
I have created using Wizard there I am getting an option for scroll when I checked it is giving an error. So I have checked the scroll.
I have tried your code still i am not get the vertical scroll.
Regards,
Ramu N.
‎2007 Feb 23 1:40 PM
Hi
DATA : N TYPE I.
Write the following code in PBO
DESCRIBE TABLE TCONTROL LINES N.
TCONTROL-lines = N.
Regards,
MB
‎2007 Apr 17 10:00 AM
Hi,
I also faced the same problem in table control with wizard.
Then i got the solution for it.
Whenver u create tbcl with wizard, the system genrates a program in which there is a select statement.
If there is a where condition to that select statement then vertical scroliing is disabled, but if ther is no where condiditon then vertical scrolling is displayed.