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

Automatic scrolling in TABLE CONTROLS

HelgaRaemaekers
Participant
0 Likes
1,984

Hi,

i have a question concerning automatic scrolling in a TABLE CONTROL .

The number of lines available on the screen of your TABLE CONTROL you decide by creating the table control. For example I have a table control with 20 lines of input possible.

Now I show an internal table of 28 lines in the table control, where they can add changes into 1 column. The cursor automatically jumps from 1 line to the next. This is great !! Now, when I come to the last line of my screen and i put my input in the last cell he jumps back to the first line of my table control

Is there no possibility that he shows the next line (= line 21, 22, ...) automatically ??

When you use an ALV he automatically jumps to the next line ... but here he does not jump automatically from 1 cell to the next ..

so I'm searching a combination of these 2 possibilities.

thx,

Helga

*#* If nothing goes right, just go left *#*
10 REPLIES 10
Read only

Former Member
0 Likes
1,533

I'm not sure if this is possible in a table control. But you should be able to use the page down key (instead of tab) to view the next set of records.

- April King

Read only

0 Likes
1,533

I would be pleased with using the page down key if there is a solution to the fact that when you entered your input in the last line he automatically jumps back to the first line. My users are "typing blind" and so they keep on putting input over the values that they already have given ... There should be some kind of alarm or a stop in overwriting the input ?

Is this possible?

Thx for reacting!

Helga

*#* If nothing goes right, just go left *#*
Read only

0 Likes
1,533

I don't know if this will help. It seems to reference forced (rather than user-controlled) scrolling. This is from the SAP ABAP keyword documentation:

For program-controlled scrolling, it is sufficient to assign a value to the component TOP_LINE of the structure CXTAB_CONTROL during PBO processing. For page by page scrolling, the number of pages to be scrolled can be obtained from the system field sy-loopc during the loop processing. sy-loopc contains the number of currently displayed rows, while the component LINES of the structure CXTAB_CONTROL contains the number of rows in the entire table control.

- April

Read only

0 Likes
1,533

Hi April,

this would work if I came into my PBO ...

The user automatically jumps from line to line on the input screen and does not use the ENTER key.

*#* If nothing goes right, just go left *#*
Read only

Former Member
0 Likes
1,533

Hi,

Try defining the table control lines in PBO.

PROCESS BEFORE OUTPUT.

ZTR0300-CURRENT_LINE = 100.

Regards,

bhaskar

Read only

0 Likes
1,533

Unfortunately, using the current_line = 100, this doesn't work.

grtz,

Helga

*#* If nothing goes right, just go left *#*
Read only

Former Member
0 Likes
1,533

Hi Helga,

when you have fecthed your records from table in to an internal table,then you can find the entries of an internal table.suppose if you have an entries of n.

You need to assign the dynamically the vertical scroll bar using the following logic.

data : t_ctrl type tableview using screen 'xxxx'.

t_ctrl-lines = ln + 100.

Please let me know whether this is ok for vertical scroll bar active at run time. Else let me know what is the solution.

Read only

0 Likes
1,533

Hi Reddy,

the vertical scroll bar is ok (I had already build in the functionality you describes) - but he doesn't jump to the other lines of the table control - he jumps to the first line again instead to the next ...

*#* If nothing goes right, just go left *#*
Read only

0 Likes
1,533

Hi,

I have once used this, it worked :

CONTROLS : ctrl_restab TYPE TABLEVIEW USING SCREEN 'xxxx'.

Then you can manipulate the parameters lines and top_line of ctrl_restab

If you add 1 to TOP_LINE when the user is in the last line and presses the enter-key the TC will jump to the following line.

Best regards,

Dirk.

Read only

0 Likes
1,533

Hi Dirk,

inderdaad, dit zou werken indien mijn users de ENTER zouden gebruiken ...

Maar ze gebruiken deze TC als "snelinvoer", ze tikken een waarde in van 2 cijfers in 1 kolom van de TC en ze gaan zo automatisch door naar de volgende lijn... totdat het scherm vol is natuurlijk en dan komt het probleem : ipv naar de volgende lijn van de TC te springen (die nog niet zichtbaar is op dat moment) springt hij terug naar de eerste lijn van de TC en als de users niet opletten () overtikken ze al hun pas ingevoerde waardes opnieuw ...

*#* If nothing goes right, just go left *#*