Removing scroll in alv grid

Hi all,
Iam displaying alv grid using containers.
It is restricting the ouput to 26 lines and giving scroll bar if i get more records,
What we need to do for avoiding that vertical scroll bar.
Thanks,
Anil.
A suggestion can make a difference.

Hi,
refer to the link
Link: [removing of vertical scroll bar in table control]
thanks
ravi

Similar Messages

  • REGARDING horizontal scroller in alv grid o/p

    hi,
       i have developed a report in alv grid its wrking fine..
      i want one thing >>>>in the o/p screen the plantid  is the first column, the second column is the plant name what i want is that, horizontal  scroller will work from plant name not from plantid for this what parameters sud i pass in the fieldcat for plantid.plz help me.

    Hi,
    U have to put for that particular plant id
    wfieldcat-key = 'X'.
    Thanks,
    Sankar M

  • How to remove repetition  in ALV GRID

    Dear freinds,
    In  ALV grid  iam getting repetitive for a feild Count (where iam giving count of the no of
    records .........i.e if i have four records i  have to give 4 but iam getting for all the 4 records as  4,4,4,4 in the output. Can i remove the repetation and get only once
    the value as 4 ...........Iam using the  data type for count as  INT3.
    CLEAR l_wa_sort.
    l_wa_sort-fieldname = 'COUNT'. "Field name in o/p inttable
    l_wa_sort-spos = '2'.
    l_wa_sort-tabname = 'fp_i_pyrol_final'. "Output Internal table
    l_wa_sort-up = 'X'. "Sort in ascending order
    l_wa_sort-down = ' '. "Sort in descending order
    APPEND l_wa_sort TO l_i_sort.
    However i tried changing the data type to Numc it working but total iam getting as 1 only
    not 4  which is wrong since i have four records.
    please can any one correct me what i can do in this case.
    regards
    syamla

    hi,
    REFRESH the count in the begin of the loop or at end of the loop.

  • Removing filter for ALV grid

    Hi friends
    I am using an ALV grid to display my data. Once i used the filter in grid to filter some datas and go back to selection screen & executed the report again, the filter is still active and not showing all datas. How to avoid this.
    Regards
    Sathar

    Hi Abdul Sathar
    I find the solution if you are using ALV OO.
    For delete the ALV's filter call the method SET_FILTER_CRITERIA and send the parameter IT_FILTER with a itab empty.
    I hope this help you.

  • Remove buttons in ALV grid display in ABAP Web Dynpro

    Hi,
    Sub: ALV grid-->Web Dynpro ABAP.
    Request guidance to prevent display of the buttons "Microsoft Excel" and "Print Version" (which provide options to export the ALV grid output into an Excel format document).
    Is there a way we could hide this from being displayed on the ALV grid in a Web dynpro ABAP component output?
    Thanks very much.
    Best Regards,
    Adi

    Hi Adithya,
    really simple solution is to call cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs=>set_all( abap_false ). This deactivates all ALV functionality.
    For individual setting cl_salv_wd_config_table if_salv_wd_standard_functions~set_<x>_allowed.
    - Michelle

  • Remove field in Alv grid module pool

    Hi Experts,
    I have a requirement where in I need to remove a field on the display screen for a particular record.
    In detail..
    I have a created a module pool program where in the final out put was shown using CL_gui_alv_grid on the new screen.The normal display will start with a check box(editable),kunnr,ktokd etc..The requirement is for a particular record the check box should either disappear or disable.Please help me out in achieving this.Thanks in advance.
    Initially I got very good response from Neha and Satya and felt very confident enough in the fix but I dont know where I am doing wrong the issue is not yet fixed.Satya or Neha can you tell me where am I doing wrong seeing the below code.
    types:BEGIN OF lty_final,
          chbox       TYPE char1,
          org_nam     TYPE name1_gp,
          vkorg       TYPE vkorg,
          parvw       TYPE parvw,
          ktokd       TYPE ktokd,
          kunnr       TYPE kunnr,
          pr_cnt      TYPE char3,
          fir_nam     TYPE name1_gp,
          las_nam     TYPE name1_gp,
          parau       TYPE parau,
          telf1       TYPE telf1,
          STYLE       TYPE lvc_t_styl,        " New field added in the structure
         END OF lty_final.
    data:lt_final type table of lty_final,
           ls_final type lty_final.
    DATA : ls_stylerow TYPE lvc_s_styl ,
           lt_styletab TYPE lvc_t_styl .
    loop at lt_final into ls_final.          """Final internal table
        if ls_final-pr_cnt = lc_yes.
          ls_stylerow-FIELDNAME = 'CHBOX'.
          ls_stylerow-STYLE     = cl_gui_alv_grid=>mc_style_disabled .
          APPEND ls_stylerow TO lt_styletab.
          CLEAR ls_stylerow.
          ls_final-STYLE = LT_STYLETAB.
          MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.
        endif.
      endloop.
    gs_layout-zebra        = 'X'.
      gs_layout-edit         = ' '.
      gs_layout-no_rowmark   = 'X'.
      gs_layout-stylefname   = 'LT_STYLETAB'.
      CALL METHOD grid_display->set_table_for_first_display
        EXPORTING
          i_save                        = 'X'
          i_default                     = 'X'
          is_layout                     = gs_layout
        CHANGING
          it_outtab                     = lt_final
          it_fieldcatalog               = gt_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    With Regards,
    Srini...

    Use the following codes in loop it will work.
    Loop at lt_final into ls_final. """Final internal table
    if ls_final-pr_cnt = lc_yes.
    ls_stylerow-FIELDNAME = 'CHBOX'.
    ls_stylerow-STYLE = cl_gui_alv_grid=>mc_style_disabled .
    INSERT ls_stylerow  INTO TABLE lt_final-STYLE.                         " use insert
    *APPEND ls_stylerow TO lt_styletab.
    *CLEAR ls_stylerow.
    *ls_final-STYLE = LT_STYLETAB.
    *MODIFY lt_final INDEX sy-tabix FROM ls_final TRANSPORTING style.
    endif.
    endloop.
    Regards,
    Gurpreet

  • Alv grid error

    hi all,
    I have simple issue in alv grid,
    I have designed an alv grid, by default it has scroll bars.
    when i scroll the alv grid, the last executed status message (ie in pai) is executed on every page and the message shows in
    the status bar on every scroll...
    how can i avoid this .
    thanks and regards
    Jose

    Hi Jijo,
               Declare a flag variable ..
    DATA: GV_FLAG TYPE C.
    then put this folowing pseudo code and it will work..
    IF GV_FLAG IS INITAL.
    MESSAGE 'XSYZ'.
    GV_FLAG = 'X'.
    ENDIF.
    Then what it will do is the status message when it is displayed for first time the Flag is set to ''X' and as the flag is set once the code will not execute again to show the message.
    Regards,
    Raghav

  • How to remove values formatting in export to excel from ALV grid

    Hi all,
    I have small issue, I have ALV Grid with some data, but the problem is with columns containing e.g. gross amounts, because it is displayed in the grid as e.g. 1.764,81, and after export to excel it is still in this format (with dot and comma), so excel doesn't treat it as numeric value but as text, and then when I try to calculate total on the column then this values are not taken to the total. Do you know if that is possible to remove column formatting?
    kind regards,
    Marcin

    I replied too soon to Peter's suggestions.  For some reason, I was able to add new info. to my first new row, but not the second.  However, I finally figured out the problem.
    I found the Help Center page on: "Here are ways to change custom formats and apply changes to table cells:"
    To change the elements associated with a custom format that’s been applied to cells, select the cells and click Show Format in the Format pane of the Table inspector.
    I saw that the "cell format" was listed as "automatic," so I changed it to "Custom;" then left the new custom window at it's default settings. Now my cells would accept pasted info. without spreading it through the lower rows.  Whatever automatic was in the table, it was not what I wanted. Doing this to other new cells, solved my problem.  Thanks again.

  • ALV grid can we remove the repetation values in field & display as one .

    Dear Freinds,
                      i have developed a custom development relating to a salarly report based on the orgunit, the output is coming however i have one doubt in alv output.
    right now my internal table data having data as follows  : (iam giving only some fields)
    orgunit         orgdesc                  Empno     Empname     
    70000905        Human Resources      7056     Richard        
    70000905        Human Resources      7057     Reymond Jain       
    70000905        Human Resources      7058     Maria Gulz
    70000905        Human Resources      7061       Jacob
    now in my output i dont want to have the orgunit value 70000905 and orgdesc (human resources) shouldnt not be repeated . is there any option in ALV where we  I can use in
    the field cat ( any parameter) where i can set that we can make the orgid as one and remove the repeation.(iam using alv grid function module).
    Please help me in this regard
    Regards
    Syamla

    Hi,
         Before displaying sort ur internal table.
    refer this code.
    *&      Form  sub_display_data
          text
    FORM sub_display_data .
    *--To sort the output through material number
      DATA : lwa_sort TYPE slis_sortinfo_alv.
      DATA : lit_sort TYPE slis_t_sortinfo_alv.
    *--Pass the values to the table
      lwa_sort-fieldname = 'PERNR'.             "Field name in o/p inttable
      lwa_sort-tabname   = 'it_final2'.         "Output Internal table
      lwa_sort-spos      = '1'.                 "Sort  sequence
      lwa_sort-up        = 'X'.                 "Sort in ascending order
      lwa_sort-down      = ' '.                 "Sort in descending order
      lwa_sort-subtot    = 'X'.                 "Subtotal
      APPEND lwa_sort TO lit_sort.
    *--Pass the values to the table
      lwa_sort-fieldname = 'WORKDATE'.          "Field name in o/p inttable
      lwa_sort-tabname   = 'it_final2'.         "Output Internal table
      lwa_sort-spos      = '2'.                 "Sort  sequence
      lwa_sort-up        = 'X'.                 "Sort in ascending order
      lwa_sort-down      = ' '.                 "Sort in descending order
      lwa_sort-subtot    = ' '.                 "Subtotal
      APPEND lwa_sort TO lit_sort.
    *--Pass the values to the table
      lwa_sort-fieldname = 'WEKLY'.             "Field name in o/p inttable
      lwa_sort-tabname   = 'it_final2'.         "Output Internal table
      lwa_sort-spos      = '3'.                 "Sort  sequence
      lwa_sort-up        = 'X'.                 "Sort in ascending order
      lwa_sort-down      = ' '.                 "Sort in descending order
      lwa_sort-subtot    = ' '.                 "Subtotal
      APPEND lwa_sort TO lit_sort.
      wa_layout-colwidth_optimize = 'X'.
      IF NOT it_final2[] IS INITIAL.
    *--Call the function module to display the ALV report
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            is_layout          = wa_layout
            i_callback_program = v_repid
            it_fieldcat        = it_fieldcat1[]
            i_default          = c_chk
            i_save             = c_save
            it_sort            = lit_sort
          TABLES
            t_outtab           = it_final2
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ELSE.
    *--Message No data found
        MESSAGE i888 WITH text-017.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " sub_display_data
    Regards,
    Prashant

  • Hide/Remove Subtotal Icon in ALV Grid report output.

    Hi,
            Is ther a way to remove or hide the Subtotal icon in the ALV Grid report output?
    Thanks & Regards,
    Praveen.

    Hi,
    You can add names of the buttons(which you want to hide) to internal table and pass this internal table for tool bar excluding parameter while calling ALV.
    Here as shown in below code, 'Sorting, Ascending,Descending' buttons are removed from the tool bar list. 
    data : lt_exclude TYPE ui_functions.
    ls_exclude = cl_gui_alv_grid=>MC_FC_SORT.
      APPEND ls_exclude TO lt_exclude .
      ls_exclude = cl_gui_alv_grid=>MC_FC_SORT_ASC.
      APPEND ls_exclude TO lt_exclude .
      ls_exclude = cl_gui_alv_grid=>MC_FC_SORT_DSC.
      APPEND ls_exclude TO lt_exclude .
        CALL METHOD alvgd->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
         IT_TOOLBAR_EXCLUDING          = lt_exclude
    Regards,
    Maharshi Vyas

  • Possible to have vertical scroll bar for a cell in ALV Grid (using methods)

    Hi All,
    I have a field with length 100 characters on a ALV Grid (using methods)..User doesn't want to scroll all the 100 characters horizontally to see the whole text rather he wants to have a vertical scroll bar for the cell so that he can scroll vertically.
    Is it possible to have split the cell text into lines and have a vertical scroll bar for a cell in ALV Grid?
    Regards
    Jaker.

    Thanks for the suggestion Balu.I tried this , but while scrolling,headers also getting scrolled.
    Becoz of this , if i scroll down to the last row,headers are getting hidden.
    Headers should always be static.only the data should scroll.
    Since h:datatable is being rendered as one table , i can div tag for this table alone.
    If i have seperate datatable for headers alone i can do this .But i should not use two datatables.

  • Can we scroll to the last page of an alv grid?

    I am dispalying a report in ALV grid format - REUSE_ALV_GRID_DISPLAY.
    As soon as the execute button is clicked it should show the last page with the totals.
    User will then scroll upwards to see the details.
    How to scroll to the end of the ALV grid?
    (It is like goign to the last page of course)
    Thanks,
    Ven

    Hi,
    Yes..You can do it using the OO ALV...You can use the method set_current_cell_via_id ..to show the last record.
    Check this example.
    * Declarations.
    DATA: l_lines TYPE int4,
          l_row_no TYPE lvc_s_roid.
    DATA: ok_code LIKE sy-ucomm,
          g_container TYPE scrfname VALUE 'CONTAINER1',
          g_grid  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container,
          gs_layout TYPE lvc_s_layo.
    DATA: gt_outtab TYPE TABLE OF t001w.
    DATA: v_count TYPE i.
    *       MAIN                                                          *
    CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'TEST'.
      SET TITLEBAR 'MAIN100'.
    * Create the grid.
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container
          EXPORTING
            container_name = g_container.
        CREATE OBJECT g_grid
          EXPORTING
            i_parent = g_custom_container.
    * Get the data.
        SELECT * FROM t001w INTO TABLE gt_outtab.
        CALL METHOD g_grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'T001W'
            is_layout        = gs_layout
          CHANGING
            it_outtab        = gt_outtab.
        DESCRIBE TABLE gt_outtab LINES l_lines.
    * Go to the last row.
        l_row_no-row_id =  l_lines.
        CALL METHOD g_grid->set_current_cell_via_id
          EXPORTING
            is_row_no = l_row_no.
      ENDIF.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      CASE sy-ucomm.
        WHEN 'EXIT' OR 'BACK'.
          PERFORM exit_program.
      ENDCASE.
    ENDMODULE.                    "pai INPUT
    *       FORM EXIT_PROGRAM                                             *
    FORM exit_program.
      LEAVE PROGRAM.
    ENDFORM.                    "exit_program
    Thanks
    Naren

  • Remove toolbar from Reused alv grid

    How can i remove the toolbar and all the functions from the re-used alv grid ?
    regards

    Hi,
    I hope this is what you are looking for:
    **make sure you create a component and get the model first
    contol ALV table
    data: lr_alv_usage       TYPE REF TO if_wd_component_usage,
            lr_if_controller   TYPE REF TO iwci_salv_wd_table,
            lr_config          TYPE REF TO cl_salv_wd_config_table,
            lr_filter          TYPE REF TO if_salv_wd_std_functions.
            lr_filter          ?= lo_value.
    set read only mode to false (and display edit toolbar)
      data: lr_table_settings type ref to if_salv_wd_table_settings.
      lr_table_settings ?= lo_value.
      lr_table_settings->set_read_only( abap_false ).
    disable insert, delete and append from the ALV toolbar
      lo_value->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_false ).
      lo_value->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).
      lo_value->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false ).
      lo_value->if_salv_wd_std_functions~SET_EDIT_CHECK_AVAILABLE( abap_false ).
    " Specify the setting for using ALV filter
       lr_filter->set_filter_complex_allowed( value = abap_true ).
    DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      lr_table_settings ?= lo_value.
      lr_table_settings->set_enabled( abap_true ).
      lr_table_settings->set_row_selectable( abap_true ).
      lr_table_settings->set_design( cl_wd_table=>e_design-alternating ).
      lr_table_settings->set_top_of_list_visible( abap_false ).
      lr_filter->set_sort_headerclick_allowed( abap_true ).
      lr_filter->aset_filter_filterline_allowed( abap_true ).
      lr_filter->set_sort_complex_allowed( abap_true ).
      lr_filter->set_view_list_allowed( abap_false ).
      lr_filter->set_pdf_allowed( abap_true ).
    Regards,
    Abdul

  • Freeze toolbar while scrolling down in ALV grid using OOPS

    Hi,
    My program is showing few products in ALV grid using OOPS. But If I scroll down to select a product, then I cant see the toolbar on which I have to press a button using selected product. Is there any way to freeze toolbar while scrolling down also.
    As of now I have to scroll up after selecting product and then press the button on toolbar.
    Regards,
    Seema
    Edited by: Seema Naharia on Feb 23, 2012 9:17 AM

    Hi ,
    You may have to set handler for the toolbars. Check class cl_gui_alv_grid for the events toolbar.
    Or just for a try, since your problem is only when scrolling,you can use set_visible_row_count to -1 , so that data will appear in same view without the need to scroll.
    Regards,
    Ramya

  • Remove delete option from button 'Layout' ALV grid

    The ALV grid displays the button to change the layout (global/user specific).
    The user can create his/her own layout variant or change it. However, I would like to hide/remove the option 'Delete layout' from the possible options.
    Is this possible?
    Regards,
    Henry

    Henry,
    Since Layout DELETE button is part of another program, you can't simply exclude it from your ALV grid display.
    But, I suppose that layout deletion is possible only from the menu bar using 'Layout Management' and is not possible from the Application toolbar buttons of ALV grid. Also, all other functionalities for layout (new creation, change layout etc ) are possible without using this 'Layout Management' option from menu bar.
    So, I think you can meet your requirement hiding the 'Layout Management' option itself simply by excluding it from the grid.
    gs_excluding-fcode = '&ERW'.
      APPEND gs_excluding TO gt_excluding.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          it_excluding                      = gt_excluding
    BR,
    Diwakar

Maybe you are looking for

  • Error in component while importing DC

    Hi, I use Netweaver for JDI development for SAP ESS webynpro components. I have recently upgraded my SAP Netweaver from 2.0.9 to 2.0.16. What I find is that, when i Import a DC from the JDI server into my client workspace, it has numerous errors asso

  • Problems when I changed from POP3 to IMAP in Mail

    When using POP3 protocol on my Mac I was able to have a sound played to let me know when new mail came in.  Since I switched to IMAP protocol, I can't seem to make that happen. I am running Snow Leopard (10.6.8) and using the Mail program for our ema

  • Can't convert an originally Word doc from PDF back to Word

    I'm running Windows 7 and MS Office 2010. I edited a 65 pages long doc, which I was recommended to convert to a PDF. Said and done. However now i want to make changes in that doc. I've tried to convert it back to Word but I don't succeed in doing it

  • Problem with a vector

    I have this vector, and inside a vector, there are Strings[] So, i declared the vector and string like this: Vector allCodes = new Vector(); String code[] = new String[5];Then i assigned tome values to code like this: code[0]="whatever"; code[1]="wha

  • How can i play a whole album rather than one song at a time

    I have just purchased a ipod Nano 6th generation to use whilst cycling. I've tried it out indoors and it only seems to play one song at a time I would like to listen to an album or play list without stopping. how do I do this??????