Delete Extract in ALV

Hi all,
I executed the ALV report with extract. I saved that Extract also. but Unfortunately I deleted that extract.
How can i get the same extract. Where do i check for that.
regards,
Ajay Reddy

Hi,
It should work just fine so let me expand a little more.
STEP 1:
Your datadeclaration should look something like this:
TYPES: BEGIN OF TY_OUTTAB.
        INCLUDE STRUCTURE <FILL IN YOUR STRUCTURE>.
TYPES: CELLTAB TYPE LVC_T_STYL.
TYPES: END OF TY_OUTTAB.
TYPES: TT_OUTTAB TYPE TABLE OF TY_OUTTAB.
DATA: GT_OUTTAB TYPE TABLE OF TY_OUTTAB.
DATA: GS_OUTTAB TYPE TY_OUTTAB.
DATA: GS_CELLTAB TYPE LVC_S_STYL.
DATA: GT_CELLTAB TYPE LVC_T_STYL.
DATA: L_INDEX TYPE SY-TABIX.
STEP 2:
Select wat you want to select and then loop over your itab.
  LOOP AT GT_OUTTAB INTO GS_OUTTAB.
    L_INDEX = SY-TABIX.
    REFRESH GT_CELLTAB.
    CLEAR GS_CELLTAB.
    GS_CELLTAB-STYLE =                                   CL_GUI_ALV_GRID=>MC_STYLE_NO_DELETE_ROW.
    INSERT GS_CELLTAB INTO TABLE GT_CELLTAB.
    INSERT LINES OF GT_CELLTAB INTO TABLE GS_OUTTAB-CELLTAB.
    MODIFY GT_OUTTAB FROM GS_OUTTAB INDEX L_INDEX.
  ENDLOOP.
STEP 3:
remember to fill GS_LAYOUT-SYLEFNAME = 'CELLTAB'.
Did you do all this ?
Hope it helps.

Similar Messages

  • ALV OM - keep filter while deleting lines from ALV

    Dear all,
    I'm using an ALV (cl_salv_table) to get a proposallist of materials and substances to be linked. When a material is linked to a substance, all lines for this material are deleted from the ALV. So far, so good.
    When a user sets a filter on a certain column and links a material, the filter icon on top of the column is shown while the records are not filtered accordingly. When the user selects the column again en pushes the filter button, the value that was set in the first place, is shown.
    edit : I've "solved" this problem myself by getting a list of all filters, clearing lr_filters and filling lr_filters up again from this list.I        don't think this is a very clean sollution to the problem, but it works.
    How can I resolve this problem in a better way? Thanks in advance.
    Cheers.
    Luk
    Edited by: Luk Declerck on Dec 16, 2009 4:28 PM

    U can do all validations in the event data_changed_finished.
    ****----EVENT HANDLING.....*****
    *------Class definition
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION.
       METHODS handle_data_changed_finished FOR EVENT data_changed_finished
      OF cl_gui_alv_grid IMPORTING e_modified ET_GOOD_CELLS.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *-----Class implementation
    CLASS lcl_event_handler IMPLEMENTATION.
                      "handle_usercom
    **----DATA changed
      METHOD handle_data_changed_finished.
        PERFORM handle_data_changed_finished USING e_modified
    et_good_cells
      ENDMETHOD.
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    FORM handle_data_changed_finished using i_modified type char01
                                            i_good_cells type LVC_t_MODI.
    data: wa_good_cells type lvc_s_modi.
    // Perform ur validation here
    endform.

  • How to get Inserted and Deleted Rows in ALV

    I have looked at the BC_EDIT* examples but I still can't figure out how to determine which rows were Inserted and Deleted from the ALV list.  Can someone please provide me the code to do this?
    Thanks.
    Sandy

    Hi sandy,
    i dont think you will have issue in inserting a row in ALV because whenever the user done some actions say for eg clicking the pushbutton at the toolbar you could insert the a new row into the ALV.for creating pushbutton you need to use the events TOOLBAR,USER_COMMAND.
    deleting a row may also follow the above procedure.
    Have a look at the demo program
    BCALV_GRID_05
    Cheers,
    Abdul Hakim

  • Regarding the Extract in alv report

    Hi gurus,
    please explain to me what is the Extract in ALV's.
    i have an alv report in which they declaired avariable like disextract and assigned a radio button, if the radiobutton is check then the data is stored in extract.what is the use of the extract?

    Hi,
    Please check below thread;
    Extract from ALV List
    Regards
    Jana

  • Delete Filter in ALV

    Hi there,
    i am using SALV in my view and i enabled the filterfunction. Question: Does exist a method with which i can delete the filter set by user e.g. on Button-Click?
    D. Wallner

    Hi,
    Just look at the reply given by Prashant in this thread: Re: how to delete filter in alv table. It meight be helpful.
    Regards
    Arjun

  • Keyboard delete button and alv response

    Hello friends,
    I have a problem with editable alv.
    In alv grid if i select a line and press the delete button on the keyboard,  then the data is getting deleted.
    i do not want that to happen.
    how can i stop it from happening?
    Note: I am not talking about the delete icon which alv provides. I mean the DELETE BUTTON ON THE KEYBOARD

    I know what you mean, but surely when you are typing it makes sense to have a backspace key and not delete as the cursor is ahead of the error.
    Also, a simple tap on the screen at the place you want to edit also means that you can position the cursor after the error. Then, again, you can use the backspace key.
    Personally, I have never felt the need for a delete key, but you should leave feedback for Apple at http://www.apple.com/feedback/ipad.html
    I presume you are aware that if you hold your finger on the screen that you can move and select text anywhere on the screen.

  • Extract from ALV List

    Hello All,
    Please suggest me is there any way to extract the data from ALV LIST.
    For example:
    SUBMIT  XXX WITH SELECTION-TABLE rspar_tab AND RETURN.
    This XXX  program gives the result in alv list.Once it returns back to original program i want to fetch the results.
    Thanks and Best Regards,
    Vinoth

    Hi Vinoth...
    SUBMIT XXX WITH SELECTION-TABLE rspar_tab AND RETURN.
    Whether ur submit program (XXX) is standard or Zreport?
    1, If it is standard means u need to copy the program  in to ZXXX..
        And now change the ZXXX.
        Fetch where the final Internal table is populating for output display..
    There u need to Export that internal table ..
    eg:
    export g_t_belege1 to memory id 'ZSARA'.
    export bestand1 to memory id 'ZSARA1'.
    1,g_t_belege1
    2,bestand1
    these are internal tables in the Submit program (ZXXX)..
    Now u may come to ur original program..
    and import this..
      import g_t_belege1 from memory id 'ZSARA'.
      import bestand1 from memory id 'ZSARA1'.
    g_t_belege1,bestand1 these internal table structures sholud be same as Submit program structures..
    Else.. it may give Dump ..
    Now u may process the internal tables  g_t_belege1,bestand1 by ur wish..
    2,
    If it Zreport means no need to copy ..
    Just export into one id and import in ur original program.
    Hope it will helps..
    Reward if it is useful means.
    Regards
    Bala..
    Message was edited by:
            S Balasubramanian

  • How to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv

    Hello,
    how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap  alv
    Thanks
    Rakshar

    Use  this.
        data lo_cmp_usage type ref to if_wd_component_usage.
        lo_cmp_usage =   wd_this->wd_cpuse_alv1( ).
        if lo_cmp_usage->has_active_component( ) is initial.
          lo_cmp_usage->create_component( ).
        endif.
        data lo_interfacecontroller type ref to iwci_salv_wd_table .
        lo_interfacecontroller =   wd_this->wd_cpifc_alv1( ).
        data lo_value type ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
        data: lr_std type ref to if_salv_wd_std_functions.
        lr_std ?= lo_value.
        lr_std->set_export_allowed( abap_false ).
    NOte: ALV1 is alv component name
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 1, 2011 6:11 AM

  • Deleting rows in alv report.

    Hi Experts,
                I want to delete a row in alv report output, It is duplicating  records in the report  and 'GRAND TOTAL' also be displayed . In under the report . <<removed_by_moderator>>
    Thanks,
    Dinesh.B
    Edited by: Vijay Babu Dudla on May 11, 2009 9:15 AM

    Hi,
    use the following code for deleting duplicate and adjacent records from itab
    delete ADJACENT DUPLICATES FROM itab.
    or
    sort itab by pernr.
    delete ADJACENT DUPLICATE FROM itab COMPARING pernr.
    Also, for grand total you can use fieldcat-do_sum    =  'X'  with the field catalog. It will give you total for the required column.
    Hope this solves your problem.
    Regards,
    Ibrar Munsif.

  • Delete button in ALV Table

    Hi,
    Does any one have a code sample for the ALV Table Delete button? When I hit the DELETE button the selected row gets deleted but how can I save this deletion to the database table so that when I do a refresh the deleted row does not re-appear.
    Thanks. Kim

    Hi Kim,
             i am sorry but I dont have a sample code for this .. but yes i can tell you a very simple logic here that should work fine ..
    When the user clicks on Delete Entry call method say "Delete_entry" and within this you can write code based on this logic..
    1) On_Action_Lead_Select should copy the content of that row to another context node say "Selected_Entry"
    2) Search for this entry in your internal table/database that was bound to the ALVs context node(data source) and remove it using standard functions
    3) again read the database/internal table data and bind it to the context node ..
    Your changes will be reflected in your ALV..
    I hope this helps and if it does please do award points
    Also please close the thread if the issue gets resolved ..
    Regards,
    Anoop

  • Disable delete button in ALV grid

    Hi Experts,
    I have a functionality to disable some buttons in alv grid such as delete row,cut,print etc.
    I know how to exclude them by using it_toolbar_excluding , but I need to disable them.
    Can you please let me know how to handle this.
    I am displaying the ALV grid by calling the method set_table_for_first_display.
    Thanks in Advance
    Prasanth

    Hi,
    By using below code you can disable any button in ALV display
    data : tool_wa_exclude  type ui_func.
      tool_wa_exclude  = cl_gui_alv_grid=>mc_fc_loc_delete_row.
    append tool_wa_exclude  to tool_it_exclude .
      call method grid2->set_table_for_first_display
        exporting
          it_toolbar_excluding          = tool_it_exclude
        changing
          it_outtab                            = it_ekpo
          it_fieldcatalog                    = it_fcat
        exceptions
          invalid_parameter_combination = 1
          program_error                           = 2
          too_many_lines                         = 3
          others                                        = 4.
    U need to pass tool_it_exclude internal table to  method for displaying

  • Delete row in ALV

    Hi,
    I am working on an interactive ALV list. As per the requirement I have been able to remove the standard delete button through the following technique:
    ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
    append ls_exclude to pt_exclude.
    It is working fine and the delete button is removed from the tool bar as required. But it is still possible to delete a row by selecting the row and pressing the 'Delete' key in the key board. Can anyone tell be how to stop this. I have already gone through various SDN postings and "An easy reference for ALV grid control.pdf" but could not find any clue.

    Hi,
    It should work just fine so let me expand a little more.
    STEP 1:
    Your datadeclaration should look something like this:
    TYPES: BEGIN OF TY_OUTTAB.
            INCLUDE STRUCTURE <FILL IN YOUR STRUCTURE>.
    TYPES: CELLTAB TYPE LVC_T_STYL.
    TYPES: END OF TY_OUTTAB.
    TYPES: TT_OUTTAB TYPE TABLE OF TY_OUTTAB.
    DATA: GT_OUTTAB TYPE TABLE OF TY_OUTTAB.
    DATA: GS_OUTTAB TYPE TY_OUTTAB.
    DATA: GS_CELLTAB TYPE LVC_S_STYL.
    DATA: GT_CELLTAB TYPE LVC_T_STYL.
    DATA: L_INDEX TYPE SY-TABIX.
    STEP 2:
    Select wat you want to select and then loop over your itab.
      LOOP AT GT_OUTTAB INTO GS_OUTTAB.
        L_INDEX = SY-TABIX.
        REFRESH GT_CELLTAB.
        CLEAR GS_CELLTAB.
        GS_CELLTAB-STYLE =                                   CL_GUI_ALV_GRID=>MC_STYLE_NO_DELETE_ROW.
        INSERT GS_CELLTAB INTO TABLE GT_CELLTAB.
        INSERT LINES OF GT_CELLTAB INTO TABLE GS_OUTTAB-CELLTAB.
        MODIFY GT_OUTTAB FROM GS_OUTTAB INDEX L_INDEX.
      ENDLOOP.
    STEP 3:
    remember to fill GS_LAYOUT-SYLEFNAME = 'CELLTAB'.
    Did you do all this ?
    Hope it helps.

  • Urgent : Insert , save and Delete in the alv grid

    Hi Experts,
    I am having a alv grid and displaying data by fetching from backend.
    i added a toolbar buttons  "Insert " "Save"  and "Delete".
    when i click on "Insert " button the first row of the table should be empty with input fields. i want to insert data and when i click on "save"  button it should update at backend.kindly let me know how to insert empty row at starting of alv grid and also how to save and delete records..
    thanks in advance.

    Hi Bharath,
    Go through this hope u can understand.
    SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:
    A Multiple columns, multiple rows with selection buttons.
    B Simple selection, listbox, Single row/column
    C Multiple rows without buttons
    D Multiple rows with buttons and select all ICON
    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows from the table. In the examples below the grid table is named gi_sflight.
    Data declaration:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.
    Reward points if helpful.
    Thanks
    Naveen khan

  • Create Edit Delete in Oops ALV

    Hi Experts,
    I need to create an ALV which will provide all the functionality of Create, Edit, Save and Delete records and update the Custom table accordingly.
    I want to design it as follows -
    1. Display should be in non-ediatble mode initially (because I don't want to make it completely ediatble at all times)
    2. When the user clicks Create button a new line appends at the bottom and the ALV has to be made editable, for the values to be entered at the new row appended.
    3. When the user presses Save, again the ALV goes into non-ediatble mode.
    4. When the user presses Edit Button, the ALV is open for editing and again the whole ALV is editable. After Editing, the user will select those particular lines through Box Button and Press on Save Button to enable those particular lines to be modified and saved in ALV. Again at the press of Save button, the ALV will switch to Non-modifiable view.
    5. For Deletion, select the particular line/lines through Box Button and Click on Delete.
    This is how I plan to achieve the Create, Edit, Delete Functionality.
    Can you please confirm the feasibilty of this Design, whether it is achievable.
    There is some option of dynamically changing the Field Catalogue. If it is there, I'm thinking of utilising it for switching the modes on click of Create, Edit and Save Buttons. Click/Edit --> Modifiable. Save --> Non-modifiable.
    Please do give your comments on the above functionality and feasibility. If you are knowing a different or easy approach please do share it. If you have done it then please do share it.
    Thanks & Regards
    Tanu

    Plz ask your specific requirement otherwise mosarator will block the thread...

  • Delete files by ALV

    Hi,
    My WD File Manager Application has a ALV.
    How can I delete the files choosing the ALV´s line?

    Bettina Spitzmüller wrote:
    > Hi,
    >
    > would like delete the file or the line?
    >
    > CL_GUI_FRONTEND_SERVICES->FILE_DELETE .
    Sorry, but that does not work.  All the functions in the CL_GUI_FRONTEND_SERVICES are not usable from Web Dynpro.  They rely on the SAPGUI for the connectivity to the desktop.  When running Web Dynpro you are in a web browser.
    Where are the files you want to delete?  Are they on the client machine?  More details are really needed before anyone could provide a useful solution. However I can tell you that if they are on the client you really won't be able to delete them from Web Dynpro.  Because you are running in a browser, you have limited access to the client machine.  Remember that web browsers weren't built to run business applications and you certainly want to let any arbritary website just delete files off of your hard drive.  In Web Dynpro we have file upload and download UI elements and that is about it.

Maybe you are looking for

  • I Tunes for WIndows wont start after upgrade to 8.0.1

    I recently upgraded to iTunes 8.0.1.11. After upgrade, if for some reason I need to reboot my computer iTunes will not start. It took forever to finally figure out what it was. I couldn't sync my iPod, could not get on to iTunes , etc. I finally had

  • Can we publish swf file made with InDesign in .exe?

    I made a SWF file with InDesign. I would like to publish it in .exe? Is it possible?

  • Testing ASP pages in DW CS3?

    Hello. I need to start learning ASP, so I bought a book on it. I opened up a (very simple) sample ASP page from the accompanying CD ROM in Dreamweaver (CS3). The page opened and was viewable, but when I clicked F12 to preview in a browser, the page d

  • Access Current date on Calendar

    Hey, Is it possible to read the Current date selected in Daily Calendar so that it can be used in script. Also in case of Weekly Calendar is it possible to read "Start Date" and "End Date" of the Week?? Plesae respond ASAP. It's urgent. Thanks!

  • Cannot see the bottom right corner of photo

    Maybe a stupid thing but I haven't been able to figure out the way move the grey info box away while making edits (at least). I don't care to have view of some photo info on bottom right the same way I don't want to have rating stars bottom left INSI