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

can we have auto scroll functionality in table control?

Former Member
0 Likes
853

I have a table controlw ith 11 rows.

As the user scans the items, the serial numbers start filling into the table control.

Once it reaches 11 rows, they have to press ENTER button to input furhter.

Can we avoid this pressing of any key and allow the scan to continue beyond the 11 rows at a time?

This is somewhat like an auto scroll - probably may not be posiible - right?

5 REPLIES 5
Read only

Former Member
0 Likes
638

hi,

there is a scrolling optoin in a table control. Double click on you table contol in layout editor . now click on the two checkbox ( vertical , horizontal ) below Resizing label. It will create vertical and horizontal scrolling. You can specify the number of lines initialy as 11 and then can create a customized insert kind of button which will insert a blank row after 11th line . For that. code like this,

READ TABLE ITAB INDEX TAB_SCHEDULE-CURRENT_LINE.

DESCRIBE TABLE ITAB LINES LIN1.

IF SY-UCOMM = 'ADD' AND LIN1 =11.

APPEND INITIAL LINE TO ITAB.

ENDIF.

Read only

0 Likes
638

Rajneesh,

Can we automate this button?

Read only

Former Member
0 Likes
638

If you are going to do an upload BDC it is going to be hectic. It is better for you to go for a BAPI to upload data

Read only

former_member787646
Contributor
0 Likes
638

Hi

Try this and check.

DATA: N_LINES TYPE I.

DESCRIBE TABLE ITAB LINES N_LINES.

TABLE_CONTROL-LINES = N_LINES.

( Now it will show the Vertical Scrollbar for the table control. )

Hope this would help you.

Murthy

Read only

Former Member
0 Likes
638

By setting the cursor position and topline of the table control this can be achieved - but ultiamtely an enter button is passed at the end of each scan.