CASE E_SALV_FUNCTION. * Make ALV as Editable ALV WHEN 'TEST'. * Editable ALV IF GV_EDIT IS INITIAL. GV_EDIT = 'X'. LS_LAYOUT-EDIT = 'X'. ELSE. CLEAR GV_EDIT. CLEAR LS_LAYOUT-EDIT. ENDIF. * Set the front layout of ALV CALL METHOD LO_GRID->SET_FRONTEND_LAYOUT EXPORTING IS_...
* field enabled or disabled for editing, depending on parameter I_EDITABLE. * If you do not supply parameter I_FIELDNAME or supply it INITIAL, you get * all fields of the table enabled or disabled for editing, depending on parameter I_EDITABLE. * Parameter I_SALV_TABLE is the CL_SALV_...
In the field catalog of the ALV Grid you have a field 'EDIT' to put to 'X' if you want your column to be editable. Regards Sam Reply Former Member 2013 May 30 11:14 AM 0 Kudos 5,728 SAP Managed Tags: ABAP Development Refer the below link: http://scn.sap.com/thread...
Solved: Hi Guru's Can anyone please tell how to make an ALV have editable and subsequent save functionality for fields using CL_SALV_TABLE. Thanks in Advance Satish
ALV Object Model(CL_SALV_TABLE) does not support editable cells, nor does it support editable columns or rows. You must use the class CL_GUI_ALV_GRID in order to have this functionallity. PS;不过万能的开发还是有办法的,就是麻烦一些……...
* Parameter I_EDITABLE should be ABAP_TRUE or ABAP_FALSE to enable or disable editing. * Parameter I_REFRESH indicates whether you want the control to be refreshed or not. You'll only see the changes * you've made using this method AFTER you do a refresh on the CL_SALV_TABLE object....
效果: 点test 按钮切换到可编辑状态 建status 代码 REPORTZLM_ALV006. *---* * Define the Local class inheriting from the CL_SALV_MODEL_LIST * to get an access of the model, controller and adapter which inturn * provides the Grid Object *...