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 controll vertical scroll not comming

Former Member
0 Likes
961

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.

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
917

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

9 REPLIES 9
Read only

Former Member
0 Likes
917
Read only

Former Member
0 Likes
917

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  OUTPUT

Vasanth

Read only

Former Member
0 Likes
917

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
917

Hi,

Check whether you have selected the vertical resizing option in the attributes of the screen painter.

Regards,

Prasanth

  • Reward if it helps

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
918

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

Read only

Former Member
0 Likes
917

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.

Read only

0 Likes
917

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.

Read only

Former Member
0 Likes
917

Hi

DATA : N TYPE I.

Write the following code in PBO

DESCRIBE TABLE TCONTROL LINES N.

TCONTROL-lines = N.

Regards,

MB

Read only

Former Member
0 Likes
917

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.