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

fcode for scrolling in table control

Former Member
0 Likes
1,002

Hello,

I m working with table control but on scrolling fcode is blank.

How can I assign fcode for the scroll in table control

8 REPLIES 8
Read only

Former Member
0 Likes
867

definitely for a scroll PBO is triggered again.. so work on it...

Read only

0 Likes
867

BUT how do I detect that the event occur is by scroll

Read only

0 Likes
867

Find out the sy-ucomm value by clicking on the scroll button in debugging mode.

Put /h in the tcode field and press enter. the debugger would be turned on. Now click on the scroll button , the screen will go to the debugging screen. enter sy-ucomm in the field and find the value. that would be the fcode of the scroll button.

Read only

0 Likes
867

there is no FCODE generated for this..

read the value of TOP_LINE and CURRENT_LINE in the table control element... if they are not the one which they are previously .. that means you have scrolled.

Read only

Former Member
0 Likes
867

Hi,

There is no need to assign fcode for scrolling in table control.

The scrolling option will come automatically if you have entries greater than visible lines (SY_LOOPC) in table control.

Read only

Former Member
0 Likes
867

Hi,

Please let us know why you want to scroll. Is there any specific req. so that we can concentrate on that issue.

Thanks.

ANil.

Read only

Former Member
0 Likes
867

Hi,

There is no need to assign fcode for scrolling in table control.

The scrolling option will come automatically if you have entries greater than visible lines (SY_LOOPC) in table control.

If you want to have scrolling option permanently, just add the following code in PBO.

* For scrolling in table control
  DATA: v_lines TYPE i.
  DESCRIBE TABLE it_tc LINES v_lines.
  tc_0100-lines = v_lines + 20.

where it_tc --> Table control internal table and tc_0100 --> Table control name

Read only

Former Member
0 Likes
867

I requied for bdc and I found to be p+. Thanks to all for the code