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

problems on table control

Former Member
0 Likes
594

When I scoll any table control in my dialog program , the screen will jump to the top of screen automaticllay. I don't know why.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

Hi,

Now your Cursor is by default on the First field of the Screen.

so 
in PBO 

set cursor field 'ITAB-MATNR' line 1. " or TC-TOP_LINE or TC-CURRENT_LINE.
" or in PAI GET CURSOR FIELD 'ITAB-MATNR' line line  
" declare a variable in Top include data line type i.

Cheerz

Ram

4 REPLIES 4
Read only

Former Member
0 Likes
570

Please check if any of follwoinf variables of TC..

TOP_LINE

CURRENT_LINE

Set to 0 or 1 in PBO of screen

Nag

Read only

Former Member
0 Likes
571

Hi,

Now your Cursor is by default on the First field of the Screen.

so 
in PBO 

set cursor field 'ITAB-MATNR' line 1. " or TC-TOP_LINE or TC-CURRENT_LINE.
" or in PAI GET CURSOR FIELD 'ITAB-MATNR' line line  
" declare a variable in Top include data line type i.

Cheerz

Ram

Read only

Former Member
0 Likes
570

I will advice you to activate debugger and then scroll .

This will take you to the part of code that is being executed.

Now, check what is missing/going wrong.

There can be chances that some perform is placed at wrong place.

Hope this helps you.

Read only

sarath_7
Participant
0 Likes
570

Hi,

in the PBO of the code write below code.

DESCRIBE table IT LINES TC-LINES

IT - Internal table used in Table control, TC -tablecontrol name.

This will enable vertical scroll.

you can make use of CXTAB_CONTROL 's (CURRENT_LINE ,TOP_LINE).

hope it will help.