‎2011 Apr 15 10:59 AM
Hello ......
i have developed z table, initially there are no entries in it.
i create a z program and create a alv display using method SET_TABLE_FOR_FIRST_DISPLAY
then i have used method set_ready_for_input .
i will now execute the z program..
i will have a std toolbar on screen, there will be three icons insert, delete and append (std tool bar)
as i have told earlier that there are no entries, so when i will press insert button it will be show empty one row in that table, it will be in edit mode due to method set_ready_for_input ..
now my query is suppose there are 3 col and i vl enter value in 3 columns shown in table after pressign insert button, how to get those values in internal table so that later on i can update a z table .
Edited by: medha24 on Apr 15, 2011 11:59 AM
‎2011 Apr 15 11:15 AM
Hi,
I think the values will be already updated in the in it_outtab which is passed when calling the method set_table_for_first_display
‎2011 Apr 15 11:32 AM
no, i said that itab will be empty as ther are no entries in database z table also. if u will see in se16, there are no entries in z table, i have to create entries through program.
‎2011 Apr 15 12:26 PM
Hi,
VIN is correct when you hit insert after entering value in the alv your internal table is updated.
Now you have to handle a event AFTER_USER_COMMAND, here insert those lines from ITAB to your ZTABLE.
Regards,
Anmol.
‎2011 Apr 16 5:33 AM
thanks friends, let me more clear with u all,
when i will execute the program, i can only see headings of alv display rather table........
to create entries , i m pressing insert button, which comes as in-built as alv std toolbar.....
now when i press insert, it will show me one empty row, i vl enter some values in it.....
how i will get those entries in my internal table......
which method,, wht event........?
‎2011 Apr 16 6:30 AM
i got the method check_changed_data from which i can take d data into my internal table after pressing insert, append buttons.
‎2011 Apr 15 12:42 PM
Hi ,
Use DATA_CHANGED_FINISHED event . You'll get your table updated.