‎2007 Feb 22 6:09 AM
Need help frnds,
I need to know how an alv output can be made input enabled.
and My problem lies that when user selects a particular row and press the button (Say EDIT button) then that partcular row will be input enabled, not the entire column. Another problem, when in fieldcatalog the partcular column is set as Input enabled, then refresh is not working, I have to call the REUSE_ALV_LIST_DISPLAY again to view the column is input enabled.
regards,
satya
‎2007 Feb 22 6:26 AM
‎2007 Feb 22 6:29 AM
chk this blog
/people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers
‎2007 Feb 22 8:08 AM
Hello,
To make the ALV input enabled,you can try this:
DATA:is_layout type LVC_S_LAYO.
is_layout-edit = 'X'.
CALL METHOD ALV->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1
.
Pass is_layout in the SET_TABLE_FOR_FIRST_DISPLAY.This will make the entire ALV editable.
But for your requirement,you can try demo program: <b>BCALV_EDIT_02</b>
When you select a particular row,then use this program and only make the particular cells editable.
Regards,
Beejal
**reward if this helps
‎2007 Feb 22 12:18 PM
Hi,
You will have one option for the selection in the internal table. If it is not there then keep one flag field in the internal table. Once a row is selected than that field will be set with 'X' for that particular row.
Now read the grid internal table and make a conditon in the field catalog and fieldcatalog-edit = 'X'.
No need of calling the Reuse_alv_list_display again. What you need to do in the User Command form you just need to set the selfield-refresh = 'X'.
Br,
Laxmi.
‎2007 Feb 22 12:29 PM