Scroll Bars in Table Control

Hi,
How do I remove the vertical and horizontal scroll bars in the table control? I would like to use the Pg Up/Down buttons instead.
Thanks,
Mounika.

Mounika,
You can add or remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control. Regarding the page up and page down functions, I believe you add those buttons in the screen layout and code for them. You can use the standard function code for the page up and page down functions.
Regarding the Page up Page down...You need to add some extra code in your program to activvate that. Check the following program for example.
DEMO_DYNPRO_TABCONT_LOOP_AT
or try something like this
try something like:
CASE sy-ucomm.
WHEN 'P+' OR
'P++' OR
'P-' OR
'P--'
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
entry_act = tc-top_line
entry_to = tc-lines
last_page_full = 'X'
loops = loops
ok_code = sy-ucomm
overlapping = 'X'
IMPORTING
entry_new = tc-top_line
EXCEPTIONS
no_entry_or_page_act = 1
no_entry_to = 2
no_ok_code_or_page_go = 3
OTHERS = 4
ENDCASE   .
Hope this helps
Vinodh Balakrishnan

Similar Messages

  • Remove vertical scroll bar from table control

    hi,
    i had used table control in my application. i want remove vertical scroll bar from table control.
    At initial time in table control there is no vertical scroll bar. In my table control lines are dependent on internal table which i was used to fill it.
    i was used these code for to set table control lines.
    DESCRIBE TABLE IT_RISK_ZINRISEXC LINES EXC_LINE.
    TC_RISK_EX-LINES =   EXC_LINE .
    Initially there is no data in internal table so there is no vertical scroll bar. After getting value i am filling internal table. and there is scroll bar in my table control. but i does not want that.
    i was not selected RESIZING-VERTICAL OR -HORIZONTAL.

    Hi,
    From Scroll Bars in Table Control
    You can remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control. Regarding the page up and page down functions, I believe you add those buttons in the screen layout and code for them. You can use the standard function code for the page up and page down functions.
    or
    You can get rid of the vertical scroll bars by not setting table control lines. This way the user can only see the visible lines of the table control. As for the horizontal scrollbar, just make sure that your table control doesn't contain too many fields.
    Regards,
    Raj.

  • Scroll bar in table control without wizard

    Dear All,
    I have made a module pool program for gate pass. In which i have taken a TABLE CONTROL WITHOUT WIZARD. Now my problem is , the table control does not have the SCROLL BAR  functionality. It is not showing the scroll bar also. So can any one of you can help with the code that i can use to bring that scroll bar.
    Table control is without wizard.
    Thanks & Regards
    Vijju

    Hi,
    In PBO module write the code as,
        data:  fill TYPE i.
        DESCRIBE TABLE itab LINES fill.
      flights-lines = fill.
       Flights is the table control name in screen and itab is the internal table name.
    Regards
    Haritha
    Edited by: Haritha Teegala on Jan 6, 2012 7:53 AM

  • How to activate the Vertival Scroll Bar to Table control

    Hi All,
    I Have created a Module pool table control(Wizard) with Input control,where user can enter the values in the screen.
    In my screen 15 lines are visible,once i enter all 15 rows,vertical scroll bar is active,but rest of all lines are in deactivate mode.
    My requirement is:Once i enter all the visible lines,the remaining lines should be in activ mode(In put control).
    I appreciate your response.
    Best Regards,
    Seshadri

    DATA : BEGIN OF IT_MARA OCCURS 1,
           MATNR LIKE MARA-MATNR,
           ERSDA LIKE MARA-ERSDA,
           ERNAM LIKE MARA-ERNAM,
           MTART LIKE MARA-MTART,
           MBRSH LIKE MARA-MBRSH,
           V_FLAG TYPE C,
           END OF IT_MARA.
    DATA :  WA_MARA LIKE it_MARA .
    CONTROLS TABLE TYPE TABLEVIEW USING SCREEN 100.
    MODULE POPULATE_100 INPUT.
      CASE SY-UCOMM.
        WHEN 'DISP'.
          SELECT MATNR
                 ERSDA
                 ERNAM
                 MTART
                 MBRSH FROM MARA INTO WA_MARA .
            APPEND WA_MARA TO IT_MARA.
          ENDSELECT.
          DESCRIBE TABLE IT_MARA LINES V_TEXT.
          TABLE-LINES = V_TEXT.
          CLEAR IT_MARA.
    Regards..
    Balaji  ( assign if this helps u ..)

  • Vertical scroll bar in table control with wizrads

    Hi,
      Im working on a table control with a customised table. I created a table control with wizards. But vertical scroll bar is not working. How can i invoke vertical scroll bar and can any one provide the code for the all the operations on a table control like save,find,find next,change....Thanks in advance.
    Avinash

    Hi Avinash
    move the records number of your internal table into field LINES of tablecontrol. So you should change the code generated by wizard in PBO, for example create a new module:
    PROCESS PBO
    MODULE SET_DATA_TO_T_CTRL.
    LOOP..
    ENDLOOP.
    MODULE SET_DATA_TO_T_CTRL.
       DESCRIBE TABLE ITAB LINE SY-TABIX.
       <TABLECONTROL>-LINES = SY-TABIX.
    ENDMODULE.
    Max

  • Urgent!!!!Add a Horizontal Scroll Bar for Table Control

    Hi Experts,
    I want to have a Horizontal Scroll Bar on my Table control.
    I tried with few properties for the Table UI Element but not able to solve it.
    If any one who had already done this please help me out.
    Thanks in advance..
    Regards, Kishore K

    HI Koen,
    Thanks for early Reply.
    When I use this I get
    Page Down ( ->!!, Arrown with lines pointing Down)
    Page UP
    Page Top    ( ->, Arrown with lines pointing Top)
    Page Down ( ->, Arrown with lines pointing Down)
    But I need only Page top and Page down for this Table UI .
    I think my question is clear enough.
    Please let me know this also.
    Thanks & Regards,
    Kishore K

  • How to handle scroll bar in table control in bdc

    hi friends,
       how to handle scroll bar coding in table control in bdc
    Thanks & Regards,
    Srinadh D

    hi,
    check the sites :
    table control scrolling:
    Scrolling in table control
    Re: scrolling in table control
    Table control - Vertical scrolling problem
    table control scrolling problem

  • Any Possible to add Scroll Bars to SysLink Control in MFC

    If there is any chance to add Scroll Bars to SysLink Control in VC++ MFC Application?

    Hi J Sathish Kumar,
    CLinkCtrl class derive form CWnd class, so it can create with the common windows style WS_VSCROLL. So we could create a syslink control with this style.
    https://msdn.microsoft.com/en-us/library/xw25kwch.aspx
    PTCHAR url =
    _T("Link 2) ")
    _T("<A HREF=\"http://msdn2.microsoft.com/en-us/visualc/default.aspx\">")
    _T("Microsoft VC++ Home")
    _T("</A>");
    //m_mylink is a object of a class derive from CLinkCtrl class.
    m_mylink.Create(url,
    (WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER|WS_VSCROLL),
    CRect(
    100, 100,
    400, 240),
    this,
    IDC_SYSLINK2);
    You need to create a class derive form CLinkCtrl class. And you will find the scrollbar cannnot scroll. Here is a workaround:
    LRESULT CMyLinkCtrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
    // TODO: Add your specialized code here and/or call the base class
    if (message == WM_NCHITTEST || message == WM_NCLBUTTONDOWN || message == WM_NCLBUTTONDBLCLK)
    return ::DefWindowProc(m_hWnd, message, wParam, lParam);
    return CLinkCtrl::WindowProc(message, wParam, lParam);
    Set the scrollbar information.
    int CMyLinkCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
    if (CLinkCtrl::OnCreate(lpCreateStruct) == -1)
    return -1;
    // TODO: Add your specialized creation code here
    SCROLLINFO vinfo;
    vinfo.cbSize = sizeof(vinfo);
    vinfo.fMask = SIF_ALL;
    vinfo.nPage = 30
    vinfo.nMax = 140
    vinfo.nMin=0;
    vinfo.nTrackPos = 0;
    SetScrollInfo(SB_VERT, &vinfo);//
    return 0;
    Handle the WM_VSCROLL message event in your new class CMyLinkCtrl.
    void CMyLinkCtrl::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
    // TODO: Add your message handler code here and/or call default
    SCROLLINFO scrollinfo;
    GetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    switch (nSBCode) {
    case SB_BOTTOM:
    ScrollWindow(0, (scrollinfo.nPos - scrollinfo.nMax) * 10); scrollinfo.nPos = scrollinfo.nMax;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); break;
    case SB_TOP: ScrollWindow(0, (scrollinfo.nPos - scrollinfo.nMin) * 10); scrollinfo.nPos = scrollinfo.nMin;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    break;
    case SB_LINEUP:
    scrollinfo.nPos -= 1;
    if (scrollinfo.nPos<scrollinfo.nMin) {
    scrollinfo.nPos = scrollinfo.nMin;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    ScrollWindow(0, 10);
    break;
    case SB_LINEDOWN:
    scrollinfo.nPos += 1;
    if (scrollinfo.nPos>scrollinfo.nMax) {
    scrollinfo.nPos = scrollinfo.nMax; break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, -10);
    break;
    case SB_PAGEUP:
    scrollinfo.nPos -= 5;
    if (scrollinfo.nPos<scrollinfo.nMin) {
    scrollinfo.nPos = scrollinfo.nMin;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, 10 * 5);
    break;
    case SB_PAGEDOWN:
    scrollinfo.nPos += 5;
    if (scrollinfo.nPos>scrollinfo.nMax) {
    scrollinfo.nPos = scrollinfo.nMax;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, -10 * 5);
    break;
    case SB_ENDSCROLL:
    break;
    case SB_THUMBPOSITION:
    // ScrollWindow(0,(scrollinfo.nPos-nPos)*10); // scrollinfo.nPos = nPos;
    // SetScrollInfo(SB_VERT,&scrollinfo,SIF_ALL);
    break;
    case SB_THUMBTRACK:
    ScrollWindow(0, (scrollinfo.nPos - nPos) * 10);
    scrollinfo.nPos = nPos;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    break;
    CLinkCtrl::OnVScroll(nSBCode, nPos, pScrollBar);
    Above code is just for test and help you understand how to add the scrollbar, you could make it more suitable for your situation. Hope this helps some. Example Screenshot:
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Vertical Scroll Reload on Table Control

    Hello,
    I've created a couple table controls in ABAP for a custom transaction that is going to be run through the web portal.  My problem is that the horizontal scroll on the table is handled on the front end, and the vertical scroll is handled in the program.  This means that moving the vertical scroll bar is much slower and not as user friendly as the horizontal one when run on the web (where it has to hit the back end and refresh the screen every time it's moved).  I don't think there is anything I can do about that, but on behalf of my customer I thought I'd check to see if anyone here knows any settings or any way to run vertical scrolling without hitting the abap code.
    Thanks,
    Nathan Beeler

    You might also look at the<a href="http://help.sap.com/saphelp_webas630/helpdata/en/24/ef243a84da356be10000000a11402f/plain.htm">ITS Service Parameters</a>. I'm thinking of ~AUTOSCROLL.
    Rob

  • Issue while  vertical scrolling in the table control

    Hi,
    i have my table control which can show 14 entries at a time. and i have almost 100 entries in table control.
    now if i selected 2 entries in the visible part.
    now scroll vertically.
    again come back to see the selected records now they are unselected.
    please respond soon.
    Thanks
    Malya

    Hi,
    I have redone the scenario and follow the steps it will work....
    STEP 1: Create an internal table with field for selection in table.
    STEP 2: Assign the selection field in the table control for the line selection.
    STEP 3: Now whenever the line is selected, the selection field will have a field 'X'.
    STEP 4: In PAI Modify the table fields those are selected with 'X'.
    STEP 5: Set a flag in PAI, flag = 'X'.
    STEP 6: In PBO set a condition .         " We set a flag so that we fetch the data only once.
    If flag NE 'X'.
    Fetch data.
    endif.
    Data:
          begin of ztable,
             ID type char4,
             Name type char30,
             Sel type c,
          end of ztable.
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      LOOP AT ITAB INTO FS WITH CONTROL EMP CURSOR W_I.
        MODULE UPDATE.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT ITAB.
      MODULE APPEND.
      ENDLOOP.
      MODULE USER_COMMAND_0100.
    INCLUDE YMODTOP                                 .    " global Data
    *&      Module  UPDATE  OUTPUT
    *       text
    MODULE UPDATE OUTPUT.
      MOVE FS TO FS.
    ENDMODULE.                 " UPDATE  OUTPUT
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      IF FL_FLAG <> 1.
        SELECT * FROM ZTABLE INTO CORRESPONDING FIELDS OF TABLE ITAB.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  append  INPUT
    *       text
    MODULE APPEND INPUT.
      MODIFY ITAB INDEX SY-STEPL FROM FS TRANSPORTING SEL .
      FL_FLAG = 1.
    ENDMODULE.
    Thanks&Regards
    Sarves

  • Unable to set  size and scroll bar to table components in visual web jsf

    Hi Friends,
    Good day all of you,
    my requirement is to display multible tables in the same jsp page with same size.
    if some tables have more columns than other tables then that table need horizontal scroll bar...

    Hi BalusC,
    Good day,
    we didn't use any CSS sheets.is there any other way to set.

  • BDC_OK code for scrolling in custon table control

    Hi All,
    I have a requirement to create a BDC program for transaction ME31K, but the problem is this ME31K transaction is enhanced adding a custom screen which has three custom table controls. Now this screen is also included in the BDC program.
    I am facing problem in tracking the BDC_OKcode for scrolling for these custom table controls. Tried with '=P+' but not working.
    While recording it is capturing '/00' for scrolling but while executing through program it is not working.
    If anybody has faced this situation before please suggest how to go about it.
    Please note '=NP'  is not avaiable as it is a custom screen.
    Thanks in advance.

    go on the screen where you have table control, put /h in command field.
    now scroll in table control, this will go in debugger and now check sy-ucomm.
    hope you get it.

  • Scroll Bar in Table

    h3. {color:#800000}*Hiii all,*{color}
    h3. {color:#800000}*i notice that if i have a table with some rows, more than the height a scroll bar showed up, but if you use next button the scroll remain in the top but the selected row is next, until you go more than the height and the scroll remain at the top??*{color}
    h3. {color:#800000}*how can this be fixed ????? any help in this ??*{color}
    h3. {color:#800000}*Thanks every one* {color}:8}

    In this case you should wait for net next release.
    We had this discussion here before Re: how to get a pagination dropdown inside an ADF Faces Rich Client Table and there are more discussion I'm sure.
    I remember that there is an ER filed which should make it the developers choice how to work with tables.
    Timo
    Edited by: Timo Hahn on 17.09.2008 11:41

  • Vertical bar in table control

    HELLO ALL,
    I AM HAVING A PROBLEM WITH VERTICAL BAR IN MODULE POOL PROGRAM FOR A TABLE CONTROL.
    WHEN I TRIED WITH WIZARD ITS WORK FINE BUT WHEN I CREATE MANUALLY, FIRST OF ALL IT DOESN'T GIVE ME ANY VERTICAL BAR.
    Pls do let me know if i need to anything to get vertical bar so that i can insert any number of lines in my table control

    hi RAVI KANTH,
    I just want to create table control manually with vertical bar and i don't have page down icon on my screen.
    can you tell how to proceed regarding this
    tHANKS IN ADVANCE

  • Scroll bar in Table of Contents on iPad

    The Table of Contents in my project is pretty long. However, when played on an iPad there is no scroll bar to indicate that there are more slides than what is initially seen in the Table of Contents (although you can still scrub through the Table of Contents). Is there a way to add a scroll bar to make it more obvious?

    Hello,
    Welcome to Adobe Forums
    Do you have a MAC or Windows?
    Which version of Adobe Captivate are you using?
    Do you reproduce this issue on a blank project?
    Any possiblity to share you project on [email protected]
    Thanks,
    Vikram
    Adobe Support

Maybe you are looking for