Application Development 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: 

How to activate the Vertival Scroll Bar to Table control

Former Member
0 Kudos

Hi All,

I Have created a Module pool table control(Wizard) with Input control,where user can enter the values in the screen.

In my screen 15 lines are visible,once i enter all 15 rows,vertical scroll bar is active,but rest of all lines are in deactivate mode.

My requirement is:Once i enter all the visible lines,the remaining lines should be in activ mode(In put control).

I appreciate your response.

Best Regards,

Seshadri

1 ACCEPTED SOLUTION

gopi_narendra
Active Contributor
0 Kudos

in the PBO include these lines

<tabctrlname> is the name of the table control placed on the screen.

it_tabctrl is the internal table data that is being passed to the table control.

describe table it_tabctrl lines N.

<tabctrlname>-lines = N.

Regards

Gopi

3 REPLIES 3

gopi_narendra
Active Contributor
0 Kudos

in the PBO include these lines

<tabctrlname> is the name of the table control placed on the screen.

it_tabctrl is the internal table data that is being passed to the table control.

describe table it_tabctrl lines N.

<tabctrlname>-lines = N.

Regards

Gopi

Former Member
0 Kudos

IN PBO use

TC_MAT-Lines = 20..

Tc_mat is the table control

Former Member
0 Kudos

DATA : BEGIN OF IT_MARA OCCURS 1,

MATNR LIKE MARA-MATNR,

ERSDA LIKE MARA-ERSDA,

ERNAM LIKE MARA-ERNAM,

MTART LIKE MARA-MTART,

MBRSH LIKE MARA-MBRSH,

V_FLAG TYPE C,

END OF IT_MARA.

DATA : WA_MARA LIKE it_MARA .

CONTROLS TABLE TYPE TABLEVIEW USING SCREEN 100.

MODULE POPULATE_100 INPUT.

CASE SY-UCOMM.

WHEN 'DISP'.

SELECT MATNR

ERSDA

ERNAM

MTART

MBRSH FROM MARA INTO WA_MARA .

APPEND WA_MARA TO IT_MARA.

ENDSELECT.

DESCRIBE TABLE IT_MARA LINES V_TEXT.

TABLE-LINES = V_TEXT.

CLEAR IT_MARA.

Regards..

Balaji ( assign if this helps u ..)