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

Control tablecontrol scrolling

Former Member
0 Likes
580

Hi all,

I want to use the scrolling fuctionality manually by my custom buttons and is there any idea to control table control scrolling or hide the scrolling tabs of table control.

Please suggest if it is possible.

Thanks

Sanket sethi

4 REPLIES 4
Read only

Former Member
0 Likes
533

Hi,

First declare pushbuttons on your screen as FIRST, LAST, NEXT, PREVIOUS and then try following code

DATA: va_line LIKE tab-lines,

va_loopc LIKE sy-loopc,

okcode LIKE sy-ucomm,

MODULE populate_tab OUTPUT.

READ TABLE itab INDEX tab-current_line.

va_loopc = sy-loopc.

ENDMODULE. " populate_tab OUTPUT

&----


*& Module page_cntrl INPUT

&----


  • text

----


MODULE page_cntrl INPUT.

okcode = sy-ucomm.

CLEAR sy-ucomm.

CASE okcode.

WHEN 'FIRST'.

tab-top_line = 1.

CLEAR okcode.

WHEN 'LAST'.

tab-top_line = tab-lines - va_loopc.

CLEAR okcode.

WHEN 'NEXT'.

tab-top_line = tab-top_line + va_loopc.

CLEAR okcode.

WHEN 'PREV'.

tab-top_line = tab-top_line - va_loopc.

CLEAR okcode.

ENDCASE.

ENDMODULE. " page_cntrl INPUT

Regards

Akshay

Read only

Former Member
0 Likes
533

Hi

There is a very good example about this topic, just go through the program RSDEMO02.

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
533

Hi SANKET SETHI ,

Hope that u have created the module pool in it a table control. Create a button with some fcode.

Now Place this fcode in Pai

Make the Table control properties lines i.e vertical lines in the properties as initial.

By doing that u can archieve the required .

eg Program in sap: RSDEMO02

Regards,

Naresh.

Read only

Former Member
0 Likes
533

solved.