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.

Similar Messages

  • Error  While  Deleting Data  From ODS

    Hi all,
    We are getting short dump while deleting data from a perticular ODS.
    Part of short dump is--
    trigger Location of Runtime Error
       Program                                 SAPLRSAC
       Include                                 LRSACU75
       Row                                     535
       Module type                             (FUNCTION)
       Module Name                             RSAR_TRANSTRUCTURE_ACTIVATE
    help is desperately required
    Regards
    Srini--

    try to activate InfoSource and later delete data.
    Check if all ODS related objects are consistent and active.
    also pls attached the whole dump for more clarity if this does not work.

  • Error while deleting request from DSO: S:RSODSO_ROLLBACK:259

    Hi,
    While deleting request from DSO, we face following errors:
    S:RSODSO_ROLLBACK:259                129 transaction rolled back by an internal error: fail
    Message no. RSODSO_ROLLBACK259
    Job is getting completed with message:
    Deletion of request REQU_3HHPSMIMMVRF87FI0EGC5CS4B from data target ZPR_ODS failed
    Deletion of request REQU_3T80EDOBQR7CWSC8QKKHAMH5N from data target ZPR_ODS failed
    Deletion of request REQU_8JIMF8SRDOG0T3QG6AGRA63Q3 from data target ZPR_ODS failed
    Deletion of request REQU_CMCCHOZGOF3KXNMVXB94ZHMCB from data target ZPR_ODS failed
    Deletion of request REQU_BPCAB8LY6V4CMC3XQ12AWN7MJ from data target ZPR_ODS failed
    <Message short text RSODSO_ROLLBACK 259 does not exist>
    Parallel processes (for Rollback); 000003
    Timeout for parallel process (for Rollback): 000600
    Package size (for Rollback): Dependent on Activation
    Task handling (for Rollback): Backgr Process
    Server group (for Rollback): No Server Group Configured
    Job finished
    FYI:
    Kindly help us to resolve the error.
    Regards,
    Antony Jerald.

    Hi Dinesh,
    Thanks for your reply.
    We have Netweaver 7.30 with BW on hana on SP 9.
    First 3 SAP notes doesn't meets the need.
    Shall I use 1007717 note? 
    Which says:
         use transaction SE16 to delete all entries for this request and for this Operational Data Store (ODS) object from the RSICCONT, RSMONICDP, RSODSACTUPDTYPE and RSODSACTREQ tables. Then set the 'from-date' in the administration of the data target to a value older than the oldest request loaded in this ODS object. Choose 'Refresh'. This corrects the administration.
    Will it resolves the problem?
    Kindly suggest.
    Regards,
    Antony Jerald.

  • "Transfer structure  does not exist" while deleting data from a DSO

    Hello experts,
    while deleting data from a DSO I get the following messages:
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    @5C\QError@     Transfer structure  does not exist
    When I try it twice process works without any problems. I get then the following msgs:
    @5B\QInformation@     InfoCube / DataStore object "AKIVO14" contains no data (yet)
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    So I think the first deletion works but ended with errors. What could be the reason?

    Please check if data from new and chage log table is also deleted.
    For the error message : Do you have 3.5 flow ? Check your transfer structure , if it is active and then again try to right click and delete data from DSO.
    - Monika

  • Deleting line from ABAP screen..

    Hello,
    I have a ABAP report when excuted, showsn mulpiple reords one by one wirtten on screen using write statement along with checkboxes besides it and I am also appending an internal table with these values.
    Now, User can select the check boxes for the line records. Also there is a delete button in the application toolbar.
    Now, when the delete button is executed, I want the lines which are selected on the ABAP output screen to be deleted so that only records which were not selected using check box will be shown.
    I know for this I have to code in AT-User command but how do we delete the lines from ABAP screen.
    AT user-command.
      CASE SY-UCOMM.
        WHEN 'DELETE'.
    ENDCASE
    Regards,
    Jainam.

    Hello,
    Based on which ever field is selected you can delete from the internal table and then refresh the ALV.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Message_type_x short dump while deleting request from infocube

    Hi,
    While deleting one of the erroneous requests from some infocubes,
    system is resulting in short dump "MESSAGE_TYPE_X".
    This is happening only with respect to some infocubes.
    Description of short dump:
    Short text of error message:                                            
    System error in program RSMDATASTATE and form RSM_DATASTATE_CHECK-5- (see long text)  
    Can any one of you please help with this?
    Regards,
    Nilima Rodrigues

    Hi NILIMA,
    I got same problem with my InfoPackage  last month with same error msg.
    that error come due to data inconstancy in data base table.
    in my case i am unable to open my InfoPackage  and after double clicking it was giving dump with same error.
    If u know abap then just change the sy-subrc value from 4 to 0 before dump line code it will resolve your problem.
    for this on dump screen click on debugger button then it opens your code and shows line on which u getting dump with table name check your entry in table ok
    if u unable u find table then do one thing just put break point before dump line and open fresh rsa1 and go to same cube and double click it will stop on your debugger point just press f5 button it shos sy-subrc 4 convert it to 0 and press edit button and press f8 .
    Regards
    Ankit

  • Error while deleting DC from client

    In NetWeaver Developer Studio, while i try to remove a Development Component from Client using Delete option, I get the following error. I have synched the DC, built it and deployed + ran it once. However, there are no open activities. This happens for some DCs sometimes, but not always. Any help/inputs/suggestions will be appreciated.
    Thanks in advance.
    Here are the error details
    <i><i>Error: Action failed.
    Problems encountered while deleting resources.
    org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
         at org.eclipse.core.internal.resources.Resource.delete(Resource.java:656)
         at org.eclipse.core.internal.resources.Project.delete(Project.java:288)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.DeleteProjectActionImpl.run(DeleteProjectActionImpl.java:80)
         at com.sap.ide.eclipse.component.provider.actions.dc.AbstractDcMultiAction$1.run(AbstractDcMultiAction.java:127)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.sap.ide.eclipse.component.provider.actions.dc.AbstractDcMultiAction.run(AbstractDcMultiAction.java:93)
         at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:229)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
         at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1391)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
         at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)</i></i>

    Do you really mean "Delete DC" or do you mean "Remove from client"?
    A Remove from client just removes the DC from your local system, while a Delete DC removes the DC from the DTR!
    In case you really want to delete the DC from the DTR, try just syncing the sources <b>without</b> performing a build.

  • Error while deleting email from owa

    Has anyone encountered the error "The action you tried to perform couldn't be completed because there's a configuration problem on the server. If the problem continues, contact your helpdesk. The entire error report is listed below:" while deleting
    a mail from owa in Exchange 2010? It happens from all acounts.
    It does not happen if I use the light version, only when I use the  normal version

    Hi,
    According your description, I understand that users cannot delete some messages in your Exchange environment. Please confirm whether users can't delete all messages in their mailboxes or some special messages like containing attachments. If
    possible, please also provide your Exchange version. There is a known issue about users cannot delete some special message in Exchange 2010 SP2 RU6 or SP3:
    http://support.microsoft.com/kb/2822208/en-us
    If the issue happens to all messages, please run the following command to check your OWA settings:
    Get-OWAVirtualDirectory | FL
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Error while deleting data from a write optimized DSO using a Process Chain?

    Dear Bwers,
    I am facing a strange error while using process chains to delete data from data target which is a write optimized DSO. The process shows as failed but the data gets deleted in the DSO. The error message is as below. Did anybody have a similar problem? Any suggestions.
    Thanks
    Raj
    Error while deleting content of InfoCube/DataStore object ZLSD_G03
    Message no. RSDODSO153

    Please, check if you get any short dump in ST22 related to this issue.

  • Delete lines from a text file

    i need to delete (or replace them with white space) a few lines from a text file. I have a text file with first few lines & last few lines containing "<"or ">". I need to delete/replace with white space, the entire line. i need to do this urgently
    Could some one please tell me how to do this?

    the file can be of size 8MB or more. i get this file
    every week from a third party. So the size is not
    constant. I need to remove/replace with white space,
    the fist & last few lines and the rest is comma
    seperated values which i need to load to database
    using sqlldr. But still not sure abt how to remove
    the first few lines.
    i need to read this file, replace the lines as i read
    them and write the replaced string back to the file &
    then load the rest of lines to database.8 MByte is fairly small. Read the file a line at a time and copy to a new file only the lines you want. Should take no more than a second or so.
    P.S. It will probably be a mistake if you try to edit the original file in place.

  • Error while deleting events from the integration event queue

    I am trying to delete all the events from the integration event queue after reading it, like this (this is in Java):
            IntegrationEventWS_DeleteEvents_Input input = new IntegrationEventWS_DeleteEvents_Input();
            input.setDateTime("");
            input.setLastEventId("");
            try {
                 ((Default_Binding_IntegrationEventWS)onDemandStub).deleteEvents(input);
            } catch (Exception e) {
                 log.error("Deleting events from integration queue failed: ", e);
            }Alas, I get the following error message:
    Invalid method parameter(s): 'File Id'(SBL-ODS-50007)What does this mean? What is this mysterious "File Id" it supposedly gets? I don't see it anywhere in the SOAP message I'm sending and it isn't mentioned anywhere in the docs.
    Thanks in advance for any input.

    Dont keep this attributes null
    input.setDateTime(""); //Put a Default Time way in
    the past. Ex:"1/1/2000"
    input.setLastEventId(""); //pass the eventIdThe documentation states that those two are optional (although they are not nillable, for some reason). I tried to set the date to today, but I got the same result. Since setting a date is supposed to delete all events older than that date, I don't think setting it in the past will delete anything.

  • Deleting lines from Sales order for which PO exists

    HI all,
    We have a setup where MTO/PTO configurable sales order lines are created in SAP from a different application. In this scenario user did create a couple of PTO lines manually in SAP sales order which generated Purchase requisition and a purchase order was created. Since order entry has to be done from the front end application, the line number has been already consumed by the manually created line in SAP. So we need to somehow delete these two PTO lines from the sales order. We tried setting deletion flags to the purchase order lines but still not bale to delete the lines from the sales order.
    Could some one come up with some idea?
    Thanks
    Gopi

    Gopi
    I think you should work from SD Sales Order first. Did you try rejecting the sales order items without doing anything to the PO.
    Also check what requirement routines you have in IMG T codes OVB5 (Maintain Requirements For Purchase And Assembly Orders) and OVB8  (Maintain Requirements For Transfer Of Requirements).
    Hope this helps.

  • Delete lines from iternal table

    Hi All!
    The problem what I'm having is I have to delete
    all the entries from the internal table which are
    lets say equal 'XXXXXX'
    regards
    sas
    data lt_itab type standard table of IS_PDATFU.
    data wa_itab type IS_PDATFU.
    data: lt_roles   type BAPIBUS1006_BPROLES  occurs 0 with header line,
          lt_return  type standard table of BAPIRET2,
          lv_partner type BU_PARTNER.
    lt_itab[] = l_pdatfu_tab[].
    LOOP AT lt_itab into wa_itab.
    CALL FUNCTION 'BUPA_ROLES_GET_2'
      EXPORTING
        IV_PARTNER            = wa_itab-IPPERS 'PersID
      IV_PARTNER_GUID       =
      IV_DATE               = SY-DATLO
      TABLES
        ET_PARTNERROLES       = lt_roles
        ET_RETURN             = lt_return.
    IF lt_roles-PARTNERROLE EQ 'XXXXXX'.
    delete this lines from lt_itab[] ????
    ENDIF.
    ENDLOOP.

    So u need to use DELETE ITAB:
    LOOP AT lt_itab into wa_itab.
    CALL FUNCTION 'BUPA_ROLES_GET_2'
    EXPORTING
    IV_PARTNER = wa_itab-IPPERS 'PersID
    IV_PARTNER_GUID =
    IV_DATE = SY-DATLO
    TABLES
    ET_PARTNERROLES = lt_roles
    ET_RETURN = lt_return.
    IF lt_roles-PARTNERROLE EQ 'XXXXXX'.
      delete lt_itab.
    ENDIF.
    ENDLOOP.
    Max
    Edited by: max bianchi on Feb 12, 2008 6:17 PM

  • Deleting line from Order

    I had an order in SBO. It was synchronized do NP. Then i made an shipment for just 3 lines (5 lines in order). i deleted one line from order (this line was not on the delivery document, it will not be delivered).
    In next synchronization i have conflict:
    <b>
    DELETE statement conflicted with COLUMN REFERENCE constraint 'FK_ShipmentDetail_OrderDetail'. The conflict occurred in database 'np', table 'ShipmentDetail', column 'OrderDetailID'.
    The statement has been terminated.</b>
    Is there possibility to synchronize order with deleted line (after shipment)

    Hi Lukasz,
    This is a known bug.
    During synchronization, all line items are deleted and readded if the order is updated.  If there is a delivery document already in place prior to the update, the delete of the line items will cause this error.
    This is fixed in 2007 sp0 p3.
    There is currently no fix for 5.9.
    At the moment, the only way around this is to delete the shipment and shipment detail for this order in NetPoint.
    You can then edit the delivery document in B1 to get the shipment to synch back to NetPoint.

  • Deleting Line from Return Document (error occurs)

    Does SBO Allows to delete a line from return document using the SDK
    I tried to delete a line but an error occurs
    Sincerely yours
    Riade Asleh

    Hi Riade,
    Are you talking about removing a line of a return once the document has been added to SBO? If so, you cannot remove a line either by using the UI or the DI API. This is by design.
    If you are not talking about removing a line after adding the document, please could you post details of the error you get and the code you are using?
    Kind Regards,
    Owen

Maybe you are looking for

  • Dreamweaver Trial Version is not opening

    I was installing the trial version of Adobe Dreamweaver. Installation was no problem but now when i want to open the program its not opening. There comes: Dreamweaver can not open because of a problem: Process:         Dreamweaver [1275] Path:       

  • Can the mini HDMI connect to smart TV?

    As the topic : My information as followings: MacBookPro, 13 inch, Mid 2010 OS X 10.9 Thank you Utis_k

  • JAVA INSTALL TROUBLE

    LSO HELLO, ON EVERY INSTALLATION OF APPLICATIONS AND GAMES FOR JAVA PLATFORM (*.JAR) IT SAYS ERROR MESSAGE "UNABLE TO INSTALL" PLEASE HELP ME I AM USING MOBILE PHONE NOKIA N95-1......IN THE ORIGINAL SELLER AND TECHNICIAN SERVICE DOES NOT HELP ME PLEA

  • Layout cell and image repeat question

    I want to put a background image into a layout cell. The image isnt as wide as the cell - when i set the target the image repeats itself from left to right. How can I stop this? I want the image to appear once and once only. Should I just create a la

  • Newbee needs help

    Hi. I'm having problems with my i-pod shuffle not showing up on my itunes. I've tried re-installing and trouble shooting to no avail. Both times I've reinstalled everything goes smoothly until I open itunes and I get a error message in my toolbar say