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

Similar Messages

  • How could I insert the deleted row into another table within a trigger?

    Hi,
    How could I insert the deleted row into another table within a trigger? The destination table has the same columns as the source table. Since the statements are in the trigger, it is not allowed to query the source table named 'test'. Thanks! The trigger is as follows, uncompleted:
    CREATE TRIGGER delete_trigger
    AFTER DELETE
    ON test
    FOR EACH ROW
    BEGIN
    -- How could I insert the deleted row into another table
    END delete_trigger;
    Message was edited by:
    user569548

    Hi,
    I'm not sure what's wrong there.
    I read the oracle docs about ANALYZE and ALL_TAB_COLUMNS, and did the following:
    ANALYZE TABLE my_tab VALIDATE STRUCTURE; //went ok.
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'my_tab'; //but no rows selected?
    This topic might not be what this thread should be about. Here I posted a new thread:
    How to get colum names of the newly created table?
    Thanks.
    Message was edited by:
    user569548

  • How do I insert and delete pages from a pdf with acrobat 10X?

    How do I insert and delete pages from a pdf with acrobat 10X?

    Alternatively, be sure your page thumbnails panel is open, and click on the icon highlighted in this image, just under the heading.
    You will see a dropdown with the options you need.

  • Anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    I think you are asking this in the wrong forum.  This is for TBD issues.

  • How can I select and delete rows based on the value in one column?

    I searched through the discussion board, and found a thread on deleting blank rows, but not sure how to modify it to work with my issue.
    I have put together a rather complicated spreadsheet for designing control systems, it calculates parts needed based on check boxes selected in a second spreadsheet.
    Since not all systems require all parts there are many rows that have a 0 quantity value, I would like to select these rows and delete them once I have gone through the design phase (checking off required features on a separate sheet).
    I like the way the other thread I found will gather all the blank rows at the bottom without changing the order of the rows with data in them.
    I don't understand exactly how the formula in the other thread works well enough to modify it to look for a certain column.
    I hope I made myself clear enough here, to recap, I would like to sort the rows based on a zero value in one (quantity) column, move them (the zero quantity rows) to the bottom of the sheet, and then delete the rows with a zero quantity (I can delete them manually, but would like to automate the sorting part).
    Thanks for any help anyone can provide here.
    Danny

    I apologize but, as far as I know, Numbers wasn't designed by Ian Flemming.
    There is no "this column will be auto-destructing after two minutes"
    You will have to use your fingers to delete it.
    I wish to add a last comment :
    if your boss has the bad habit to look over your shoulder, it's time to find an other one.
    As I am really pig headed, it's what I did. I became my own boss so nobody looked over my shoulder.
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 20:30:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to achieve Insert and delete task simultaneously.

    Hi,
    I inserted bulk record from localDatabase to Sql Server.  (Done)
    private void Form2_Load(object sender, EventArgs e)
    using (SqlConnection destinationConnection = new SqlConnection(connectionString))
    progressBar1.Minimum = 0;
    progressBar1.Maximum = sourceData.Rows.Count;
    destinationConnection.Open();
    using (SqlBulkCopy bulkCopy = new SqlBulkCopy(destinationConnection.ConnectionString, SqlBulkCopyOptions.TableLock))
    bulkCopy.SqlRowsCopied += new SqlRowsCopiedEventHandler(OnSqlRowsTransfer);
    bulkCopy.NotifyAfter = 1;
    bulkCopy.BatchSize = 2;
    bulkCopy.ColumnMappings.Add("email", "email");
    bulkCopy.ColumnMappings.Add("fulname", "fulname");
    bulkCopy.ColumnMappings.Add("sex", "sex");
    bulkCopy.ColumnMappings.Add("date", "date");
    bulkCopy.DestinationTableName = "MagData";
    bulkCopy.WriteToServer(sourceData);
    SqlDataAdapter adap = new SqlDataAdapter();
    private void OnSqlRowsTransfer(object sender, SqlRowsCopiedEventArgs e)
    progressBar1.Value = Convert.ToInt32(e.RowsCopied);
    I also want to delete data from localDatabase that copied to server.
    How can i complete this task?
    Any help....
    Kind Regards, Anurag Prajesh

    I tried with TransacTion Scope,data is still there.My First Form Cotain below code on Button click. private void button1_Click_1(object sender, EventArgs e)
    DataSet ds = new DataSet();
    DataTable sourceData = new DataTable();
    SqlCeConnection con = new SqlCeConnection(localConnectionString);
    SqlCeDataAdapter adap = new SqlCeDataAdapter("select * from LocalData", con);
    adap.Fill(ds);
    sourceData = ds.Tables[0];
    Form2 obj = new Form2(sourceData);
    obj.Show();
    }My Form2 contain below code. Now progress bar also not working.private void Form2_Load(object sender, EventArgs e)
    SqlConnection destinationConnection = new SqlConnection(connectionString);
    SqlCeConnection con = new SqlCeConnection(@"Data Source=|DataDirectory|\LocalDB.sdf ;Persist Security Info=False;");
    progressBar1.Minimum = 0;
    progressBar1.Maximum = sourceData.Rows.Count;
    destinationConnection.Open();
    con.Open();
    using (TransactionScope scope=new TransactionScope())
    using (SqlBulkCopy bulkCopy = new SqlBulkCopy(destinationConnection.ConnectionString,SqlBulkCopyOptions.Default))
    bulkCopy.SqlRowsCopied += new SqlRowsCopiedEventHandler(OnSqlRowsTransfer);
    bulkCopy.NotifyAfter = 2;
    bulkCopy.BatchSize = 1;
    bulkCopy.ColumnMappings.Add("email", "email");
    bulkCopy.ColumnMappings.Add("fulname", "fulname");
    bulkCopy.ColumnMappings.Add("sex", "sex");
    bulkCopy.ColumnMappings.Add("date", "date");
    bulkCopy.DestinationTableName = "FinMagData";
    bulkCopy.WriteToServer(sourceData);
    destinationConnection.Close();
    using (con){
    con.Open();
    SqlCeCommand cmd = new SqlCeCommand("delete from LocalData",con);
    cmd.ExecuteNonQuery();
    con.Close();
    scope.Complete();
    scope.Dispose();
    private void OnSqlRowsTransfer(object sender, SqlRowsCopiedEventArgs e)
    progressBar1.Value = Convert.ToInt32(e.RowsCopied);
    Kind Regards, Anurag Prajesh

  • How to insert and delete a row after filter applied

    I thought I had figured out the solution to this problem but apparently not...
    How do you insert a new row into a JTable after a filter has been applied? The problem is once the data is filtered when I add a row, I'm getting an ArrayIndexOutOfBoundsException : 182 which is the number of rows for the entire dataset.
    The first line in the exception is: DefaultRowSorter.setModelToViewFromViewToModel
    I've tried to use, getRowSorter().convertRowIndexToView(int) but I can't get it to work. Can anyone offer any assistance?
    Thanks

    I also got that problem recently and after debuging for a while I figured out, that it was resulting from an error in my table's model: When the model received new items to display I
    1.) Fired an delete event for the old items
    2.) Fired an insert event for the new items
    Problem was that when firing the delete event I didn't already assigned the new items to the model. Therefore it had still the old row count.
    Maybe you have also a faulty table model?...

  • Insert row and delete row in a table control

    Hi Experts,
    I am using a table control in module pool programming, How can I Insert row and delete row in a table control?
    Thanks in Advance....

    Santhosh,
    Iam using this code..
    FORM fcode_delete_row
                  USING    p_tc_name           TYPE dynfnam
                           p_table_name
                           p_mark_name   .
    -BEGIN OF LOCAL DATA----
      DATA l_table_name       LIKE feld-name.
    data: p_mark_name type c.
      FIELD-SYMBOLS <tc>         TYPE cxtab_control.
      FIELD-SYMBOLS <table>      TYPE STANDARD TABLE.
      FIELD-SYMBOLS <wa>.
      FIELD-SYMBOLS <mark_field>.
    -END OF LOCAL DATA----
      ASSIGN (p_tc_name) TO <tc>.
    get the table, which belongs to the tc                               *
      CONCATENATE p_table_name '[]' INTO l_table_name. "table body
      ASSIGN (l_table_name) TO <table>.                "not headerline
    delete marked lines                                                  *
      DESCRIBE TABLE <table> LINES <tc>-lines.
      LOOP AT <table> ASSIGNING <wa>.
      access to the component 'FLAG' of the table header                 *
        ASSIGN COMPONENT p_mark_name OF STRUCTURE <wa> TO <mark_field>.
    if <MARK_FIELD> = 'X'.
        PERFORM f_save_confirmation_9101.
        IF gv_answer EQ '1'.
          DELETE <table> INDEX syst-tabix.
          IF sy-subrc = 0.
            <tc>-lines = <tc>-lines - 1.
          ENDIF.
          ELSE.
          ENDIF.
        ENDIF.
      ENDLOOP.
    in this code   ASSIGN COMPONENT p_mark_name OF STRUCTURE <wa> TO <mark_field>.
    if <MARK_FIELD> = 'X'.
    this code is not working...

  • How to display the result of  excutions(insert/update/delete rows)

    Hello.
    Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
    In additional, I also like to show the hierarchy of scenario in the same view.
    So, I need the query using the information of the ODI repository.
    If it is possible, I also like to have the decription of the tables in the ODI repository.
    Can anyone tell me how can I get the information of the counts of excution?
    Thanks in advance.

    Hi,
    You can get that information from the API getPrevStepLog. Does it work for you?
    Download the last API reference manual from:
    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs

  • How to insert and delete fragments by clicking a button and how to script it?

    I have a  question on livecycle. I am collecting the inventor information as a bunch of text fields, each asking for a certain details. Please see below
    Now I have grouped them all in to one fragment called inventordetails and saved as .xdp file, so I could reuse this entire block. I want to add a button underneath this block, “ADD MORE INVENTORS” and when clicked this will insert another block and so forth and so on. However I was not sure as to how to insert and delete a fragment. Do  you think you can help with this? I appreciate any help in this regard.
    Best
    Subashini

    1.       I have a subform1 which is flowed
    2.       I have subform2 inside subform1 which is positioned
    3.       Inside subform2 I have two buttons 1. ADD INVENTOR 2. DELETE INVENTOR
    4.       Also inside subform1 I insert a fragment called inventor
    Now I want to script the buttons so that when clicked the inventor fragment either gets inserted again or deleted.
    I greatly appreciate any help in this regard.
    Best
    Subashini

  • Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or InDesign or Muse or ???

  • How to get tools and other bars back in view after deleting show-bar?

    How to get tools and other bars back in view after deleting show-bar?

    Hello Jouko.
    You can go into View > Toolbars and select the ones you want to see. If you can't see the menu bar you can simply tab ALT on your keyboard (I think F10 works too) to show it.

  • Can we have an example of using update, insert, and delete stored procedure

    I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
    Anyone knows?
    Thanks,
    Tue Vu

    Hi ttv,
    I asked around a bit and here's some more info:
    To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
    * Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
    * As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
    * Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
    * Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
    * You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
    And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
    Hope this helps!
    Val

  • Insert and Delete Button related code

    Hi Expert,
    I have requirement to create custom assignment block with custom table (value node), and add two button "Insert" and "Delete" on that AB.
    I have created the custom AB and button in "DO_PREPARE_OUTPUT" method.
    I need to create event handler for EH_ONINSERT and EH_ONDELETE, once the user click on "Insert" button one row editible row should append on AB and similar way if user select any row in AB and click on delete button entry should be deleted from AB.
    And i need "SAVE" button on top on overview page so entry should get saved in table.
    Regards,
    Kapil

    Hi Kapil,
    You can refer below mentioned link for your web ui related developments.
    SAP CRM WEB UI : 48.ADDING EDIT,CANCEL AND SAVE BUTTONS TO THE OVERVIEW PAGE TOOLBAR
    Rgds
    Hari

  • In Table Control How to get only a single row .

    Hi
    In Table Control How to get only a single row .I am able to decrease it its height to 4 but then 2 rows is getting dsplayed .I want only one row to be display and 2nd row should be deactivated or not visible.
    regards
    Avik
    Edited by: Julius Bussche on Jan 30, 2009 1:10 PM
    Removed friendly greeting from the subject title

    Hi Avik
    use this code it will help you.
    MODULE passdata OUTPUT.
      READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
      IF sy-subrc = 0.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
            screen-input = 1.          " input mode
            screen-active = 1.         " input mode.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.       "GROUP NAME
            screen-input = 0.           " display mode
            screen-active = 1.          " DISPLAY MODE.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " PASSDATA  OUTPUT
    Make sure in group tou are passing the field name that you want in input mode on the base of other field
    Hope it will help you.
    Thanks
    Arun Kayal.

Maybe you are looking for

  • New Macbook  Blue Screen problem.. Help.

    I have a problem with my mac. Whenever I turn it on, it loads up as usual, and then it shows a gray screen with an apple, loading, (yeah, the usual stuff). THEN, all of a sudden, there would be a light blue screen that would stay for about 3 seconds,

  • Imported QT file looks small in sequence window

    I imported a QT produced on an Avid into FCP. The footage was shot 24pA Anamorphic. My capture setting in FCP are set for 24pA Anamorphic. When I capture direct from tape the widescreen image fills the screen in the canvas windows- the way it should.

  • Adding a new field in the ESS webdynpro application.

    Hello All, We are currently using the ECC 5.0 and Portal EP 6.0 SP18. In the Family members Iview ( Web dynpro) there are different Items like Mother, Father, Child etc which we can add from the IMG. If we want to add new field ( SSN ) to the Spouse

  • Javacard.framework.APDU sendBytes method

    In the class javacard.framework.APDU, I found that in several methods such as sendBytes(short bOff, short leng) or public void sendBytesLong(byte[] outData, short bOff, short len), they say: "Requiring that the buffer not be altered allows the implem

  • Go from 10.7.5 to 10.8

    How do I go from 10.7.5 to 10.8?