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

Similar Messages

  • Hide/Delete lines from ABAP Query output when Quantity is 0

    Hi all,
    I'm changing an existing abap query. My requirement is to delete the rows from the report output where qantity = 0.
    I tried the following ways.
    1. In SQ01, select the quantity field and check the checkbox for "Display only field <> 0", but this didnt worked as it will 
         supress the zero from display.
    2. I tried to write code in the Infoset SQ02->Edit->Code. I wrote the following code "CHECK vbep-wmeng IS NOT INITIAL".
        Here  the problem is, the code is not executing in the test client. When I open the Infoset in test(i mean development test) 
        client the code is there, but when i execute the program its not working. I tried using "BREAK-POINT", program executions
        does not stop at the break point. There is existing code in the event "START-OF-SELECTION", this code I'm able to see in the
        query program opened through SE38. I edited the existing code and kept a break point in between, and now checked in the
        program in SE38, but the changes are not reflected. I'm able to see old code only(even after save n generate).
    3. Gave search in SCN, google etc.
    Please note.
    1. I'm not using any Logical Database in the Infoset. Its a simple join of 4 tables.
    2. Query is created in the Global Area (cross client) not client specific.
    Can anybody tell me what could be the problem and how can Over the above issues and achive the requirement.
    Thanks in advance.
    Edited by: Mr A on Feb 25, 2010 1:39 AM

    Dear Mr A,
    Can i know how did u solve the issue even i'm facing the same problem.
    Regards,
    Karan Bhasin

  • Deleting line on output screen that is written by Write statement....

    Hello Gurus,
    In my case there is data written on output screen. When I double click on line on ABAP report execution output screen, I want that line to be deleted from output screen.
    I know I will have to write the logic at line-selection but how can I delete line that is written on screen using write statement ?
    Regards,
    Jainam.
    Edited by: Jainam Shah on Nov 12, 2009 4:47 PM

    Hi Jainam,
    When you say AT LINE-SELECTION. It is an intercative list only.
    This is not possible to delete when you double click on a record.
    However I have created a small code snippet for you. But to display something on the secondary list, you have to write a WRITE statement...The code as below :-
    TABLES MARA.
    DATA: BEGIN OF itab OCCURS 1,
          MATNR like MARA-MATNR,
          MEINS LIKE MARA-MEINS,
          END OF itab.
    SELECT MATNR MEINS FROM MARA INTO TABLE itab.
    sort itab by MATNR.
    LOOP AT itab.
      WRITE:/ itab-MATNR.
      HIDE itab-MATNR.
    ENDLOOP.
    AT LINE-SELECTION.
      IF sy-lsind = 1.
        CLEAR itab-MATNR.
        write : sy-lilli.
      ENDIF.
    Kindly set to resolved, if this clears you question.
    Regards
    Abhii...

  • 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.

  • 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

  • Cant delete sms from home screen

    I have my home screen set to the today screen and I can't delete a sms from the home screen

    hi,
    th today screen is just readonly. It shows you what is in your calendar and in your messages box, you can click to go there but not delete it from the today screen.
    that's why I don't use that Theme anymore.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Remove the delete button from MFBF screen

    I want to remove the delete button frmo MFBF screen.
    Please help.

    Create a transaction variant using SHD0 and make the variant as default variant for MFBF and hide the delete button in the variant.
    Hope this helps you.

  • 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 Edit Key Fields or Delete Lines from Table Entries

    Hi Experts
    While releasing Transport Request Number we are getting an error during release. This seems to be as a result of improper data feed while running of eCATT's . The dates in the all these fields have been entered as "  .   .0101" which is in the wrong format ( eg. Table T811F u2013u201CSDATEu201D field). "SDATE" seems to the key field of the table . Can you please guide on how we may delete these lines or edit the field in the table.
    Regards
    Ananda

    Hello,
    I dont think its a good idea to delete the records from those standard tables. You rather re-run your ecatt and edit/update the existing records and try.
    regds,
    Kiran

  • Deleting shortcuts from home screen

    I picked up the 16g 3g yesterday and added a shortcut from a Yahoo page to my home screen. This may be a stupid question but can anyone tell me how to remove this shortcut from my home screen?
    Thanks

    press one of the icons till they start wiggling then tap the one you want deleted. to stop the wiggling hit the home button.

  • Deleting lines from the panel

    hi everybody,
    I am having a problem, plz help me.
    I have a link(line) drawn using graphics.drawLine() between two labels, now i want to select that link and delete it.
    plz send ur solutions ASAP as iam in a roadblock.
    Thanks in advance.

    dusanmil wrote:
    Thanks a lot for the reply!
    Is there something more on that on Verizon website? Is there a discount if I want to terminate the whole contract? I am not satisfied at all... 
    So you want a BETTER deal the more you cancel? Don't think so.
    From the Verizon website:
    " If you cancel a line of Service, or if we cancel it for good cause, during its contract term, you'll have to pay an Early Termination Fee. If your contract term results from your purchase of an Advanced Device after November 14, 2009, your Early Termination Fee will be $350 minus $10 for each full month of your contract term that you complete. (For a complete list of Advanced Devices, check verizonwireless.com/advanceddevices.) Otherwise, your Early Termination Fee will be $175 minus $5 for each full month of your contract term that you complete. Cancellations will become effective on the last day of that month's billing cycle, and you are responsible for all charges incurred until then. Also, if you bought your wireless device from an authorized agent or third–party vendor, you should check whether they charge a separate termination fee."

  • Deleting lines from template

    there are many lines (like the ones you draw in the shape tool) that when you select the have a X on both end points as if they are locked, i cannot find where to alter or delete these
    has anyone found out how to remove these?
    many thanks

    Select the line (it has Xs at each end)
    Select Unlock from the Arrange menu (the Xs are replaced with white grab boxes)
    Delete the line
    That's it. - Fabe

Maybe you are looking for

  • Error while reading users in CMC BO 4.1 SP05

    Hello All, Does anybody knows the solution? We recently updated from BO 4.0 SP06 to BO 4.1 SP05, Windows Server I get this error when i try to read users in CMC [repo_proxy 13] SessionFacade :: open session logon with user info has failed (CSecSAPR3B

  • Photoshop Elements/Premiere10 Installation Issue

    I received my Adobe Photoshop Elements10/Premiere Elements10 (for Mac) today.  I have followed the prompts and instructions, trying multiple times to install the software; however, I continue to get the error messages below.  What do I need to do to

  • Problem with csv

    I am trying to migrate storage for hyper-v vm's to a new csv.  When I try to move any VM's storage to the new target I get the following error.. an error occurred while moving the virtual machine storage 0x80071008 invalid parameter. I have already u

  • Tables not displayed in ODBC database connection (9.0.3.1035 Prod)

    Hi, In 9.0.3 production release, I have created a ODBC connection to a data source. When I open the connection, it shows all the schemas, but when I expand to see the tables, it shows none. I have tested the same in 9.0.2 and it works there. In Tools

  • Table relation for CDPOS with AUSP?

    Hi All, I have CDPOS table entries for ABAUSP (i.e. AUSP table). Now i need to relate this CDPOS with AUSP. For example, to relate CDPOS with ESTVH, i can use table relations CDPOS-OBJECTID = ESTRH-SUBID and get ESRTH-RECNROOT and ESTRH-RECNROOT = ES