‎2008 Dec 22 9:24 AM
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
‎2008 Dec 22 9:30 AM
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
‎2008 Dec 22 9:31 AM
Hi
There is a very good example about this topic, just go through the program RSDEMO02.
Regards
Ramchander Rao.K
‎2008 Dec 22 9:37 AM
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.
‎2009 Apr 27 12:17 PM