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

Scrolling problem in Table Control

Former Member
0 Likes
384

Hi experts,

I have created module pool with table control. I have one problem.

When we start the run the program only first 10 lines are visible to user.

When user enters 10 entries and press the ENTER key in table control the first five entries should be hide and at the five blank lines visible for user.

Can you please tell me how to implement this logic?

Thank you in advace.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
346

Hi Ruchit,

In PBO,

MODULE STATUS_100.

LOOP AT ITAB WITH CONTROL TC.
ENDLOOP.

in Program.

MODULE status_100.
DESCRIBE TABLE ITAB LINES tc-lines.
IF tc-lines = 0.
tc-lines = 10.
ELSE.
tc-lines = tc-lines + 5.
ENDIF.
ENDMODULE.

Cheerz

Ram

2 REPLIES 2
Read only

Former Member
0 Likes
347

Hi Ruchit,

In PBO,

MODULE STATUS_100.

LOOP AT ITAB WITH CONTROL TC.
ENDLOOP.

in Program.

MODULE status_100.
DESCRIBE TABLE ITAB LINES tc-lines.
IF tc-lines = 0.
tc-lines = 10.
ELSE.
tc-lines = tc-lines + 5.
ENDIF.
ENDMODULE.

Cheerz

Ram

Read only

Former Member
0 Likes
345

In PBO, check the number of lines that are to be diplayed in the internal table.

IF all are initial then diplay all the 10 lines else display 5 blank lines more. use tc-lines variable fot his.

Hope you understand it.