‎2010 May 27 3:02 PM
hy guys, i having an issue with an alv oo.
i have created a button on my toolbar to make my alv editable by using
if grid->is_ready_for_input( ) EQ 0.
CALL METHOD grid->set_ready_for_input
EXPORTING i_ready_for_input = 1.
and that works fine.
all the editable fields are in edit mode (all non keywords fields).
the issue is this, i want the user to be able to insert a new row.
When the alv switches to the edit mode, 2 buttons add row and delete row are automatically add to the toolbar.
But when you have a new row, that row should completely be editable, but in my case the row is non editable.
so where does the event add rows is triggered? when i'm trying to debug the adding row action, the program never stop, add immediately the row.
I try to see if the handle data changed was trigged but neither this was triggered.
How can i make the added to be immediately editable?
Edited by: EBONGUE ANDRE on May 27, 2010 4:08 PM
‎2010 May 28 8:03 AM
Did you set the edit-flag in the field-catalog for each column, or do you use styles for this?
In the first case, i have no idea at the moment, but in second case you should then insert the styles also to the new created row.
‎2010 May 27 7:06 PM
You should also set the EDIT option in your Layout.
gs_layout-edit = 'X'.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout " <
CHANGING it_outtab = gt_outtab.
Check program BCALV_EDIT_01.
Regards,
Naimesh Patel
‎2010 May 27 8:29 PM
i already use it. the edit function works well, the only issue is the addition of the new row, the row is added but it's not editable.
Regards.
‎2010 May 28 8:03 AM
Did you set the edit-flag in the field-catalog for each column, or do you use styles for this?
In the first case, i have no idea at the moment, but in second case you should then insert the styles also to the new created row.
‎2010 May 28 9:26 AM