ALV GRID Tool bar options not working

Hello Experts,
I copied the standard tool bar into my program with the name 'ZSALV_STANDARD' and displaying the output in the grid format in a container with the method set_table_for_first_display
When I execute the program the standard buttong in the tool bar are not working... Can anyone guide where am I going wrong...
Here is my code
DATA :    gr_event_handler TYPE REF TO lcl_event_handler .
  DATA:  threed TYPE i VALUE 1.
  SET PF-STATUS  'ZSALV_STANDARD'.
* Creating an instance for the event handler
  CREATE OBJECT gr_event_handler .
  TRY.
      CREATE DATA i_table TYPE TABLE OF (viewname).
      ASSIGN i_table->* TO <i_itab>.
      CREATE DATA wa_all LIKE LINE OF <i_itab>.
      ASSIGN wa_all->* TO <wa_tab>.
*     Selecting data dynamically
      SELECT * FROM (viewname) INTO TABLE <i_itab>.
*     Building the fieldcatelog
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = viewname
        CHANGING
          ct_fieldcat            = li_fieldcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
*     Making fields editable except key fields
      IF sy-ucomm = 'UPD' OR  sy-ucomm = 'CHANGE'.
        LOOP AT li_fieldcat INTO lwa_fieldcat.
          IF lwa_fieldcat-key = space.
            lwa_fieldcat-edit = 'X'.
            MODIFY li_fieldcat FROM lwa_fieldcat.
          ENDIF.
        ENDLOOP.
      ENDIF.
*     Making fields editable
      IF sy-ucomm = 'NEW'.
        LOOP AT li_fieldcat INTO lwa_fieldcat.
          lwa_fieldcat-edit = 'X'.
          MODIFY li_fieldcat FROM lwa_fieldcat.
        ENDLOOP.
        lh_flag = 'X'.
        CLEAR : <i_itab>.
        DO 100 TIMES.
          APPEND <wa_tab> TO <i_itab>.
        ENDDO.
      ENDIF.
*     Exclude buttons
      PERFORM exclude_tb_functions CHANGING i_exclude.
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container
          EXPORTING
            container_name = g_container.
        CREATE OBJECT grid1
          EXPORTING
            i_parent = g_custom_container.
      ENDIF.
*     Making all fields non-editable if display mode
      IF sy-ucomm = 'SHOW'.
        LOOP AT li_fieldcat INTO lwa_fieldcat.
          lwa_fieldcat-edit = ' '.
          MODIFY li_fieldcat FROM lwa_fieldcat.
        ENDLOOP.
      ENDIF.
      IF sy-ucomm = 'SAVE'.
        LOOP AT li_fieldcat INTO lwa_fieldcat.
          IF lwa_fieldcat-key NE space.
            lwa_fieldcat-edit = space.
            MODIFY li_fieldcat FROM lwa_fieldcat.
          ENDIF.
        ENDLOOP.
      ENDIF.
*     Displaying ALV Grid
      i_layout-NO_TOOLBAR = 'X'.
      i_layout-edit = 'X'.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name              = viewname
          it_toolbar_excluding          = i_exclude
          i_default                     = 'X'
          is_layout                     = i_layout
        CHANGING
          it_outtab                     = <i_itab>
          it_fieldcatalog               = li_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
*      Getting the changed data
      SET HANDLER gr_event_handler->handle_data_changed FOR grid1 .
    CATCH cx_sy_create_data_error.
  ENDTRY.
Thanks alot in advance.
Sri

Hello ,
try
    call method g_grid%->set_table_for_first_display
      exporting
        i_save               = p_save_layout%
        i_default            = 'X'
        is_layout            = ps_layout%
        is_variant           = ps_variant%
        it_toolbar_excluding = pt_exclude%
      changing
        it_outtab            = pt_alv_tab1[]
        it_fieldcatalog      = pt_fieldcat%[].
    call method g_grid%->set_toolbar_interactive.
regards
Prabhu

Similar Messages

  • My big fish and Norton tool bar will not work with fire fox 4

    My Big Fish Tool Bar and my Norton Tool Bar will not work with firefox4. However they work fine on internet explorer

    Symantec need to update their Firefox add-ons so that they are compatible with Firefox 4. They have indicated that for Norton 360 they plan to release an update to Norton 360 to support Firefox 4 in early May - http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US
    I do not know about the time scale for updates for other Norton products. Pending the update by Symantec, if you want to use the Norton add-ons you will need to downgrade to Firefox 3.6.
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Tool Bar is not working

    I upgraded my browser. I used Mozilla firefox. Ever since then my tool bar does not work. say if I wanted to go to www.facebook.com. I type in the web address and it will not even go to the site, or the drop down menu

    If you are successfully running Firefox in Safe Mode, this might be an indication that you have too many, or simply have any out of date, Add-ons which creates a too much of a workload for your system.
    You can find out which version of Firefox you are running by choosing About Firefox from the Help entry in the Menu Bar.

  • How to implement functionkeys on the ALV GRID tool bar

    Hello All,
    I need to implement functionkeys(Ex.given below) to the standard buttons like Ascending order etc. on the ALVGRID Tool Bar . I have implementedObject orient concept( Methods) to display the out put.I tried by using set pf-status but it is not comming.
    Ex:
    ALV Grid Toll Bar Buttons                ( Func.Keys )      
    Print Preview                       ( CtrlShiftF10)
    Sort in Ascending order        ( Ctrl+F6 )
    Thanks in Advance.
    Vijay
    Edited by: Vijay Reddy on Aug 19, 2008 10:12 AM
    Edited by: Vijay Reddy on Aug 19, 2008 10:13 AM

    Hi,
    check this code,
    REPORT  zcl_timesheet_approval MESSAGE-ID zcl_msg.
    *  CLASS L_CL_EVENTS DEFINITION                                        *
    *  Class for inserting buttons on the toolbar                          *
    CLASS l_cl_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
          toolbar FOR EVENT toolbar
                  OF cl_gui_alv_grid
                  IMPORTING e_object
                            e_interactive,
          user_command FOR EVENT user_command
                       OF cl_gui_alv_grid
                       IMPORTING e_ucomm .
    ENDCLASS.                              " L_CL_EVENTS DEFINITION
    *  CLASS L_CL_EVENTS IMPLEMENTATION                                    *
    *  Implementation of class L_CL_EVENTS                                 *
    CLASS l_cl_events IMPLEMENTATION.
      METHOD toolbar.
        PERFORM event_toolbar USING e_object.
      ENDMETHOD.                           " TOOLBAR
      METHOD user_command.
        PERFORM event_ucomm USING e_ucomm.
      ENDMETHOD.                           " USER_COMMAND
    ENDCLASS.                              " L_CL_EVENTS IMPLEMENTATION
    CONSTANTS:
       c_boolean_yes(1)     TYPE c         " Boolean - yes
                           VALUE 'X',
       c_approve_status(1)  TYPE c         " Approval status
                           VALUE 'A',
       c_rej_status(1)      TYPE c         " Rejected status
                           VALUE 'R',
       c_save_status(1)     TYPE c         " Save status
                           VALUE 'S',
       c_fcode_approve(7)   TYPE c         " Function code - APPROVE
                           VALUE 'APPROVE',
       c_fcode_rej(6)       TYPE c         " Function code - REJECT
                           VALUE 'REJECT',
       c_fcode_back(4)      TYPE c         " Function code - BACK
                           VALUE 'BACK',
       c_fcode_onli(4)      TYPE c         " Function code - EXECUTE
                           VALUE 'ONLI',
       c_fcode_exit(4)      TYPE c         " Function code - EXIT
                           VALUE 'EXIT',
       c_fcode_cancel(6)    TYPE c         " Function code - CANCEL
                           VALUE 'CANCEL',
       c_zero(1)            TYPE c         " Constant value 0
                           VALUE '0',
       c_alv_scr(7)         TYPE c         " GUI status : ALV screen
                           VALUE 'ALV_SCR'.
    * Field-string declarations...........................................
    DATA:
    * Field-string to build fieldcat.
       fs_fcat TYPE lvc_s_fcat,
    * Field-string for t_temp
       fs_temp TYPE type_s_temp.
    * Working variables...................................................
    * Internal table declarations........................................
    DATA:
    * Internal table to build fieldcat.
       t_fcat      TYPE lvc_t_fcat,
    * For ALV ...........................................................
    DATA:
    * To create instance for cl_gui_custom_container
      g_grid      TYPE REF TO cl_gui_custom_container,
    * To create instance for cl_gui_alv_grid
      g_alv       TYPE REF TO cl_gui_alv_grid,
    * To create instance for l_cl_events
      g_events    TYPE REF TO l_cl_events,
    * To assign name for custom container
      g_container TYPE scrfname VALUE 'CONTAINER',
    * To assign layout
      g_fcatlayo  TYPE lvc_s_layo.
    *            AT SELECTION-SCREEN EVENT                                 *
    AT SELECTION-SCREEN.
    * To perform user actions on the selection screen
      PERFORM user_command.
    *  MODULE  STATUS_0100  OUTPUT                                         *
    *  This module will create the objects for the instance and display    *
    *  the records                                                         *
    MODULE status_0100 OUTPUT.
      SET PF-STATUS c_alv_scr.
      PERFORM set_titlebar USING w_display.
    * If program executed in foreground.
      IF sy-batch IS INITIAL.
    * If g_grid is empty.
        IF g_grid IS INITIAL.
    * To create object for instance grid
          CREATE OBJECT g_grid
            EXPORTING
              container_name = g_container.
    * To create object for object grid
          CREATE OBJECT g_alv
            EXPORTING
              i_parent = g_grid.
        ELSE.
    *     IF W_SUBMIT EQ
          CALL METHOD g_alv->refresh_table_display.
        ENDIF.                             " IF G_GRID IS INITIAL
      ENDIF.                               " IF SY-BATCH IS INITIAL
      REFRESH t_fcat.
    * If w_display eq 'X' .
      IF w_display EQ c_boolean_yes.
    * To display all records except saved data
        PERFORM display_allrecords.
      ENDIF.                               " IF W_FLAG EQ C_BOOLEAN_YES
      IF w_submit EQ c_boolean_yes.
    * To display submitted records
        PERFORM submitted_records.
      ENDIF.                               " IF W_SUBMIT EQ C_BOOLEAN_YES
    ENDMODULE.                             " STATUS_0100  OUTPUT
    *  MODULE USER_COMMAND_0100  INPUT                                     *
    *  To perform user actions in the screen 100                           *
    MODULE user_command_0100 INPUT.
    * To update the data in the ALV grid
      PERFORM check_changed_data.
      w_okcode = ok_code.
      CLEAR ok_code.
      CASE w_okcode.
        WHEN c_fcode_back.
          LEAVE TO SCREEN 0.
        WHEN c_fcode_exit OR c_fcode_cancel.
          LEAVE PROGRAM.
      ENDCASE.                             " CASE W_OKCODE
    ENDMODULE.                             " USER_COMMAND_0100
    *  FORM BUILD_FCAT                                                     *
    *  To build the field catalog giving managers comment in editable mode *
    *  -->PR_Tabname   type lvc_tname                                      *
    *  -->PR_Fieldname type lvc_fname                                      *
    *  -->PR_Coltext   type lvc_txtcol                                     *
    *  -->PR_Colpos    type lvc_colpos                                     *
    FORM build_fcat USING pr_tabname   TYPE lvc_tname
                          pr_fieldname TYPE lvc_fname
                          pr_coltext   TYPE lvc_txtcol
                          pr_colpos    TYPE lvc_colpos.
      CLEAR fs_fcat.
      fs_fcat-tabname   = pr_tabname.
      fs_fcat-fieldname = pr_fieldname.
      fs_fcat-coltext   = pr_coltext.
      fs_fcat-col_pos   = pr_colpos.
      IF fs_fcat-fieldname EQ 'MNGCOMMENT'.
        fs_fcat-edit      = c_boolean_yes.
        fs_fcat-lowercase = c_boolean_yes.
        fs_fcat-dd_outlen = 60.
      ELSE.
        fs_fcat-edit      = space.
      ENDIF.                               " IF FS_FCAT-FIELDNAME...
      APPEND fs_fcat TO t_fcat.
    ENDFORM.                               " BUILD_FCAT
    *   FORM BUILD_FCATD                                                   *
    *  To build fieldcatalog in the display mode                           *
    *  -->pr_Tabname   type lvc_tname                                      *
    *  -->pr_Fieldname type lvc_fname                                      *
    *  -->pr_Coltext   type lvc_txtcol                                     *
    *  -->pr_Colpos    type lvc_colpos                                     *
    FORM build_fcatd USING pr_tabname   TYPE lvc_tname
                           pr_fieldname TYPE lvc_fname
                           pr_coltext   TYPE lvc_txtcol
                           pr_colpos    TYPE lvc_colpos .
      CLEAR fs_fcat.
      fs_fcat-tabname   = pr_tabname.
      fs_fcat-fieldname = pr_fieldname.
      fs_fcat-coltext   = pr_coltext.
      fs_fcat-col_pos   = pr_colpos.
      fs_fcat-edit      = space.
      APPEND fs_fcat TO t_fcat.
    ENDFORM.                               " BUILD_FCATD
    *  FORM ALV_DISPLAY                                                    *
    *  To display data in ALV                                              *
    *  --> pr_table type standard table                                    *
    *  --> pr_fcat  type lvc_t_fcat                                        *
    FORM alv_display USING pr_table TYPE STANDARD TABLE
                           pr_fcat  TYPE lvc_t_fcat .
    * Local data declaration....
      DATA: lt_exclude TYPE ui_functions.
    * To exclude buttons on the ALV grid
      PERFORM exclude_tb_functions CHANGING lt_exclude.
    * To display ALV
      CALL METHOD g_alv->set_table_for_first_display
        EXPORTING
          i_default            = space
          is_layout            = g_fcatlayo
          it_toolbar_excluding = lt_exclude
        CHANGING
          it_outtab            = pr_table[]
          it_fieldcatalog      = pr_fcat[].
    ENDFORM.                               " ALV_DISPLAY
    *  FORM EVENT_TOOLBAR                                                  *
    *  Setting toolbar in the alv grid                                     *
    *  -->E_OBJECT TYPE REF TO CL_ALV_EVENT_TOOLBAR_SET                    *
    FORM event_toolbar USING e_object
                             TYPE REF TO cl_alv_event_toolbar_set.
    * Local declaration for the button.
      DATA: ls_toolbar TYPE stb_button.
    * To add Approve button
      ls_toolbar-function  = c_fcode_approve.
      ls_toolbar-butn_type = c_zero.
      ls_toolbar-text      = text-001.
      APPEND ls_toolbar TO e_object->mt_toolbar.
    * To add Reject button
      CLEAR ls_toolbar.
      ls_toolbar-function  = c_fcode_rej.
      ls_toolbar-butn_type = c_zero.
      ls_toolbar-text      = text-013.
      APPEND ls_toolbar TO e_object->mt_toolbar.
    ENDFORM.                               " EVENT_TOOLBAR
    *  FORM EXCLUDE_TB_FUNCTIONS                                           *
    *  To exclude buttons from ALV grid                                    *
    *  <--> PR_EXCLUDE TYPE UI_FUNCTIONS                                   *
    FORM exclude_tb_functions  CHANGING pr_exclude TYPE ui_functions.
    * Local data declaration...
      DATA ls_exclude TYPE ui_func.
    * To remove the buttons on the ALV grid.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
      APPEND ls_exclude TO pr_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
      APPEND ls_exclude TO pr_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
      APPEND ls_exclude TO pr_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
      APPEND ls_exclude TO pr_exclude.
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
      APPEND ls_exclude TO pr_exclude.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *  FORM EVENT_UCOMM                                                    *
    *  After Input in the ALV grid,if user select record and press         *
    *  approve or reject then the record will get updated                  *
    *  --> PR_ucomm type sy-ucomm                                          *
    FORM event_ucomm USING pr_ucomm LIKE sy-ucomm.
      CASE pr_ucomm.
    * If e_ucomm contains 'APP' i.e.function code for Approve button
        WHEN c_fcode_approve.              " To approve selected record
          PERFORM app_timesheet USING c_approve_status.
    * If e_ucomm contains 'REJ' i.e. function code for Reject
        WHEN c_fcode_rej.                  " To reject selected record
          PERFORM app_timesheet USING c_rej_status.
      ENDCASE.                             " CASE E_UCOMM
    ENDFORM.                               " EVENT_UCOMM
    *  FORM APP_TIMESHEET                                                  *
    *  To get the selected records and update the records in database      *
    *   --> pr_status type char01                                          *
    FORM app_timesheet USING pr_status TYPE char01 .
    * Local data declaration......
      DATA:
       lt_marked_rows TYPE lvc_t_roid,     " Table to get rowid
       l_fs_marked_row LIKE LINE OF lt_marked_rows.
                                           " Field-string for lt_marked_rows
    * To get all the selected rows in the table lt_marked_rows
      CALL METHOD g_alv->get_selected_rows
        IMPORTING
          et_row_no = lt_marked_rows.
    * Reading each row id and updating the database.
      LOOP AT lt_marked_rows INTO l_fs_marked_row.
    * Reading the table t_timesheet with rowid
        READ TABLE t_timesheet INTO fs_timesheet INDEX
                                                 l_fs_marked_row-row_id.
    * If record is there in the table.
        IF sy-subrc EQ 0.
          CLEAR fs_timesheet-appstatus.
          GET PARAMETER ID 'ZEMPID' FIELD w_empid.
    * Changing the appstatus.
          fs_timesheet-appstatus = pr_status.
          fs_timesheet-approvedby = w_empid.
    * Updating the database table.
          UPDATE zcl_timesheet FROM fs_timesheet.
          IF sy-subrc EQ 0.
           fs_temp-empid = fs_timesheet-empid.
           fs_temp-workdate = fs_timesheet-workdate.
           fs_temp-linenum  = fs_timesheet-linenum.
           append fs_temp to t_temp.
          ENDIF.                           " IF SY-SUBRC EQ 0.
        ENDIF.                             " IF SY-SUBRC EQ 0
      ENDLOOP.                             " LOOP AT LT_MARKED_ROWS...
      perform delete_data .
      PERFORM refresh_table USING pr_status.
    ENDFORM.                               " APP_TIMESHEET
    *  FORM CHECK_CHANGED_DATA                                             *
    *  To change the data                                                  *
    *  No parameters are passsed to this subroutine                        *
    FORM check_changed_data .
    * To change the data.
      CALL METHOD g_alv->check_changed_data.
    ENDFORM.                               " CHECK_CHANGED_DATA
    *  FORM REFFRESH_TABLE                                                 *
    *  To refresh output table and  issue message according p_status       *
    *  -->PR_STATUS TYPE CHAR01                                            *
    FORM refresh_table  USING pr_status TYPE char01.
    * To refresh output table.
      CALL METHOD g_alv->refresh_table_display.
    * Depending upon pr_status message is given.
      IF pr_status EQ c_approve_status.
        MESSAGE s001.
      ELSE.
        MESSAGE s002.
      ENDIF.                               " IF P_STATUS EQ C_APPROVE_STATUS
    ENDFORM.                               " REFRESH_TABLE
    *  FORM SET_TITLEBAR                                                   *
    *  To set titlebar on the screen 100.                                  *
    *  -->PR_STATUS TYPE CHAR01                                            *
    FORM set_titlebar USING pr_status TYPE char01.
    * If pr_status eq 'X'.
      IF pr_status EQ c_boolean_yes.
        SET TITLEBAR c_alv_scr WITH text-017.
      ELSE.
        SET TITLEBAR c_alv_scr WITH text-018.
      ENDIF.                               " IF P_STATUS EQ C_BOOLEAN_YES
    ENDFORM.                               " SET_TITLEBAR
    *  FORM USER_COMMAND                                                   *
    *  According to sy-ucomm the action is performed in the screen 100     *
    *  No parameters are passsed to this subroutine                        *
    FORM user_command .
      CASE sy-ucomm.
    * If p_app is selected, submitted data will be displayed for approval
        WHEN c_fcode_onli OR c_fcode_approve.
          CLEAR sy-ucomm.
    * To display the submitted records.
          IF p_app EQ c_boolean_yes.
            w_submit = c_boolean_yes.
    * To get submitted records
            PERFORM get_data.
          ENDIF.                           " IF P_APP EQ C_BOOLEAN_YES
    * To display all records according to selection.
          IF p_disp EQ c_boolean_yes.
            w_display = c_boolean_yes.
    * To display
            PERFORM display_all.
            CLEAR w_display.
          ENDIF.                           " IF P_DISP EQ C_BOOLEAN_YES
         IF p_sdn EQ c_boolean_yes.
           PERFORM GET_GRAPH.
         ENDIF.
      ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " USER_COMMAND
    *  FORM  DISPLAY_ALLRECORDS                                            *
    *  To display all the records in the display mode                      *
    *  No parameters are passsed to this subroutine                        *
    FORM display_allrecords .
      CLEAR w_display.
      PERFORM build_fcatd USING 'T_TIME' 'WORKDATE'     text-002 '1'.
      PERFORM build_fcatd USING 'T_TIME' 'EMPID'        text-009 '2'.
      PERFORM build_fcatd USING 'T_TIME' 'PROJECTID'    text-003 '3'.
      PERFORM build_fcatd USING 'T_TIME' 'PROJECTNAME'  text-004 '4'.
      PERFORM build_fcatd USING 'T_TIME' 'OBJECTID'     text-005 '5'.
      PERFORM build_fcatd USING 'T_TIME' 'OBJECTNAME'   text-006 '6'.
      PERFORM build_fcatd USING 'T_TIME' 'ACTIVITYID'   text-007 '7'.
      PERFORM build_fcatd USING 'T_TIME' 'ACTIVITYNAME' text-008 '8'.
      PERFORM build_fcatd USING 'T_TIME' 'TIMEWORKED'   text-010 '9'.
      PERFORM build_fcatd USING 'T_TIME' 'DESCRIPTION'  text-011 '10'.
      PERFORM build_fcatd USING 'T_TIME' 'APPSTATUS'    text-012 '11'.
      PERFORM build_fcatd USING 'T_TIME' 'BILLSTATUS'   text-016 '12'.
      PERFORM build_fcatd USING 'T_TIME' 'SDNSTATUS'    text-019 '13'.
      PERFORM build_fcatd USING 'T_TIME' 'MNGCOMMENT'   text-014 '14'.
      PERFORM alv_display USING t_time t_fcat.
    ENDFORM.                               " DISPLAY_ALLRECORDS
    *  FORM SUBMITTED_RECORDS                                              *
    *  To display submitted records for the manager to approve             *
    *  No parameters are passsed to this subroutine                        *
    FORM submitted_records .
      CLEAR w_submit.
    * To create object for instance g_events
      CREATE OBJECT g_events.
    * If w_first equal to space
      IF w_first IS INITIAL.
        SET HANDLER g_events->toolbar
                FOR g_alv.
        w_first = c_boolean_yes.
      ENDIF.                               " IF W_FIRST IS INITIAL..
      SET HANDLER g_events->user_command
              FOR g_alv.
      g_fcatlayo-sel_mode = c_approve_status.
      REFRESH t_fcat.
      * to fill ur field cat table.
    ENDFORM.                               " SUBMITTED_RECORDS
    * FORM DELETE_DATA                                                     *
    * This form is used to delete thedata from output table after updating *
    * the database                                                         *
    * No parameters are passsed to this subroutine                         *
    form delete_data .
       loop at t_temp into fs_temp.
         loop at t_timesheet into fs_timesheet where
                             empid = fs_temp-empid
                         and workdate = fs_temp-workdate
                         and linenum = fs_temp-linenum.
          delete  t_timesheet index sy-tabix.
          endloop.                         " LOOP AT T_TEMP INTO FS_TEMP
       endloop .                           " LOOP AT T_TIMESHEET INTO FS_T..
    endform.                               " DELETE_DATA
    Hope it helps you.
    Regards
    Manjari.

  • ALV grid Download to excel not working

    Hi All,
    I am displaying an Alv list using the function Module
    REUSE_ALV_GRID_DISPLAY.
    The report is getting displayed correctly..But when Iam trying to downlaod the same in excel.It does not get downloaded correctly.
    All the fields get downloaded into one column of excel sheet.
    CAn anyone tell me what's going wrong on this.
    Thanks
    GT

    Hi GT,
    try this way,
    save as local file this option available on the grid.
    and while giving the file name give the name what you want with extension .xls
    then check that file all the data will be opend in excel sheet.
    http://help.sap.com/saphelp_erp2004/helpdata/en/e3/41a138c4397a42e10000009b38f842/frameset.htm
    reward points for helpfull answers and close the thread if your question is solved.
    regards,
    venu.

  • Why excel output on the ALV Application Tool bar  don't work

    most of our company's report was view in the ALV, but the standard excel output function on the ALV Application Toolbar don't work. 
    DEFINE ADD_FIELD.
      WA_FIELD-FIELDNAME = &1.
      WA_FIELD-REPTEXT_DDIC = &2.
      APPEND WA_FIELD TO IT_FIELD.
    END-OF-DEFINITION.
    the micro above is how i fill the SLIS_FIELDCAT_ALV, is that has some problem ?
    i  am expecting for you guys  help .

    Thanks for answer me , and the problem was sovled by my colleague,  go to the toolbar   option / security / macro security/ trust access to visual basic project, and select it . and you will fine the FM REUSE_ALV_GRID_DISPLAY can use the standard excel output now .
    &#27815;&#28010;&#20043;&#27700;
    msn&#65306;[email protected]
    qq  &#65306; 107198046
    skype&#65306;zhangdezhao
    gtalk&#65306;[email protected]
    yahoo msgr&#65306;dezhaozhang
    Edited by: dezhao zhang on Jan 15, 2008 2:26 AM

  • How can we create save layout option in grid tool bar

    hi,
    how can we create select layout option in grid tool bar to save my own layout. if any one knows tell me immediately
    thanks

    Hi again,
    1. We need to do 1 additional thing.
    data : GS_variant TYPE DISVARIANT.
    GS_variant-REPORT = sy-repid.
    2.  while calling pass this parameter also.
         IS_VARIANT                    = GS_variant
    It will work now.
    3. Moreover, I_SAVE has 3 options.
    I_SAVE = SPACE
    Layouts cannot be saved.
    I_SAVE = 'U'
    Only user-defined layouts can be saved.
    I_SAVE = 'X'
    Only global layouts can be saved.
    I_SAVE = 'A'
    Both user-defined and global layouts can be saved.
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator)

    Mac OS X 10.6.7
    CS 5.5
    When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator). This happens only when Firefox is open and when I close it the zoom functions work fine again without having to restart the applications.
    This is intermittent but happens quite frequently each day if Firefox is active.

    MDN doesn't mention -chrome being used for ordinary web pages: https://developer.mozilla.org/docs/Mozilla/Command_Line_Options#Chrome
    When I use
    firefox.exe -chrome about:permissions
    I get a usable window, but zoom doesn't work as you noted.
    How about using an intermediate page and window.open() for the target page? You can (mostly) restrict the chrome of windows opened that way, but it will leave behind the intermediate window...
    https://developer.mozilla.org/docs/Web/API/Window.open

  • Need help with tool bar options..does not show hidden options in PS5 or PS CC trial..

    in both PS% and PS 6 CC the tool bar will not reveal the hidden option when I click on the little arrow...this problem just began as I have used this successfully in the past...probably a simple solutin

    Thank you. After much experimentation I discovered it was a problem with my mouse
    Linda Badgley

  • The "Awesome Bar" is not working. It does not recall anything from the Bookmarks

    Just updated to new Firefox. In the past, when I would start to type a site in the address bar firefox would complete it as it was already in my bookmarks. But now it does not do anything. It just sits there waiting for me to complete the address. I could start to type Netf and it automatically finish Netflix.com
    Why is this happening. Also, for the first couple days of the new version I had to go back into Tools, Options and reset things at least 3 or 4 times before they would finally stay the way I wanted them.
    I would tell it Never Remember History and after while I would look and it would say, Remember History. I wanted a Blank Start page, and it kept changing it. It's okay now but the Awesome Bar is not working at all.

    Do your bookmarks show up in the auto-suggest drop-down list?
    ''If not:'' Under Options > Privacy, in the bottom section, does it still show that Firefox should suggest Bookmarks in the Location bar?
    If auto-suggest works but the autofill isn't happening, you could double-check that it has not been disabled here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''autof''' and pause while the list is filtered
    (3) If the '''browser.urlbar.autoFill''' preference is bold and "user set" to false, double-click it to switch its value back to the default value of true. That should work in new tabs.
    It's it already true, hmm, I wonder whether this is a private browsing issue? (I didn't test with automatic private browsing.)

  • Bookmark bar does not work on one of my computers - w XP

    Firefox 4.0 - the bookmark bar does not work. It appears but will not accept drags.
    PC w Windows XP - 3.
    Another thing too - The open new tab does not show up at all, in order to open a new tab I had to put the "open new tab" tab into the navigation toolbar.
    (Works fine on my other computer, & it drives me nuts to have to use Firefox w 2 different setups...)

    What's the URL of your site so we can examine it first hand?  Have you tried republishing your site with the File ➙ Publish Entire Site menu option?
    OT

  • Search Bar is not working for me in windows 7 32 bit OS

    Search Bar is not working for me in windows 7 32 bit OS'''bold text'''

    Hi Sameer,
    There's no version of Windows Vista that is supported, regardless of service packs.  You can always upgrade to Windows 7, though.
    Your other option is to use Brackets, the open source editor that Edge Code is based on.  It still supports Vista for now.  The downside is that Brackets lacks some features of Edge Code: Kuler integration, Edge Inspect integration, and Edge Web Fonts code hints -- although all of those except Kuler are offered as optional Brackets extensions too (you just have to install them).
    Hope that helps,
    - Peter

  • Type to selection tool quick command not working in InDesign CC

    When I have the type tool selected in InDesign and hold command for the selection tool, it's not working. When I hold the command button it highlights the selection tool, but as soon as I click my mouse, it reverts back to the type tool. Also, when I change the size of my text box it does not resize the text in the box, even if I hold for a a few sec before moving the cursor.

    @Cindy – usually all 3rd party developers will provide some information for installing and uninstalling their products. First see if you can find some information on their web sites.
    Also there should be a dedicated Adobe Extension Manager app where you can look up the installed parts of InDesign. Since I do not have InDesign CC installed, I do not know exactly, but its name should be something like "Adobe Extension Manager CC".
    If you start this app it will show all parts installed with InDesign (or other apps that are installed).
    Usually at the bottom of the list are the 3rd party installed components. They do not state "Adobe Incoroprate System" as author. Never uninstall (remove) the Adobe ones!
    Here a screen grab from my German Adobe Extension Manager CS5:
    If you select one, a new option is available at the right. In my case here the "Entfernen" button ("Remove" in English).
    Uwe

  • My tool bars are not in color

    new system running windows 8.1 downloaded installed and the tool bars are not colored del. junk etc. ver.31.1.1 plus i would like to know how to get my email address from the xp system to this one . All transfer programs were tried last one says file not compatable with win 8

    See:
    * [/questions/804050]
    Right click in a free space on your desktop.<br />
    Left click on Personalization.<br />
    There are four options in Windows 7 at the bottom of the screen, choose "Window Color and Appearance".<br />
    Select a border color<br />
    Uncheck: "Enable transparency"<br />

  • If you check the don't show this again box when closing multiple tabs, how do you get it to warn you when closing multiple tabs, or to save previous tabs? Checking the warn me when closing multiple tabs box under tools/tabs does not work to solve this?

    I accidentally checked the do not ask me again box when closing multiple tabs. Now I no longer get a warning when closing multiple tabs, and it saves my previous session. I have tried checking and un-checking the warn me box under tools which has not worked. If I open a second window and try to close multiple tabs it will warn me but not on the first window.

    You can reset the warn prefs on the about:config page via the right-click context menu.
    browser.tabs.warnOnClose , see http://kb.mozillazine.org/About%3Aconfig_entries
    browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

Maybe you are looking for

  • The volume increase button is stuck on my iPod nano (6th Generation) and I can't turn the volume up. Is there a way to fix it?

    I have the iPod nano 6th generation, and I have had it since Christmas 2011 so it isn't that old; recently I went to listen to my music and found that the volume increase button is stuck (basically it's like when you press the volume button down to i

  • Error encountered while importing Checked-in archive in CMS.

    Hi All, We have CRM 5.0 installed on Windows 2003 with MS-SQL as database.During NWDI configuration , we encountered a problem while trying to import the checked-in archives into Development system. It took more than 15 hours and at the end the opera

  • Flex 3 Design view disappears

    I have recently downloaded Flex Builder 3 for a trial. I have been happily exploring and building simple apps and suddenly I can't see the design view in any project or application. When I click the "Design" tab I see a grey blank area with no visibl

  • Cannot use HDMI port on my Satellite P855-108

    Hi all, I have a problem with my Toshiba Satellite P855-108. When I connect the computer to a external monitor, this works perfectly with VGA but this does not work with HDMI (see error message here: [http://s4.postimg.org/5mzl8adnx/Erreur.jpg]). I t

  • Inserting one page after ALL pages in a doc

    Hi all, I have multiple documents that I need printed double-sided at a shop. Originally, it was supposed to be single-sided. Now, it needs to be double sided but the back side is the same on every page. So, I am trying to insert a document B (1 page