2009 Jan 27 2:21 PM
Hi Guru,
I am displaying the ALV using OOPS.
But I have to add one insert button and when user is clicking that button it should create one row
so that user can fill if he wants.
Can u tell me how to proceed with this.
Thanks,
Sandeep Garg
2009 Jan 27 2:32 PM
Hi Guru,
I am displaying the ALV using OOPS.
But I have to add one insert button and when user is clicking that button it should create one row
so that user can fill if he wants.
Can u tell me how to proceed with this.
Thanks,
Sandeep Garg
2009 Jan 27 2:32 PM
2009 Jan 27 2:33 PM
Hi,
Where u want to add insert button in the ICon bAr of the grid.
Use the program.BCLAV_GRID_05.It is an example program to add the own button.
After user command.
Use the method GET_FRONTEND_FIELDCATALOG method or use program bcalv_edit_04
for inserting the rows.
Thanks,
2009 Jan 27 2:36 PM
Hi,
ALV provides the default functionality for the inserting and deleting the records in the ALV grid.
You can use this.
2009 Jan 27 2:43 PM
Hi,
When user clicks on the New Row button you need to
1) call method check_changed_data by passing e_valid = space.
2) add a initial line to the internal table
3) call method refresh_table_display
4) If user has to input some data in those lines you have to method set_ready_for_input by passing i_ready_for_input = 1.
Regards,
Kritesh Shah