on 10-15-2011 3:57 PM
Hello All,
I have created an ALV using set_table_for_first_display, where one of the field is set to editable mode I have two buttons, one for save data and other to change data. Initially when the layout is displayed for first time, all the fields should be in non-editable mode and if user click on change button that particular field gets in editable mode.
How can I achieve this?
Regards,
Sachin
Thanks for the help,
Regards,
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sachin,
Go through the below link
http://wiki.sdn.sap.com/wiki/display/ABAP/EditableALVthrough+OOPS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the below code to enable or disable user input for the Edit cells...
IF GO_GRID->IS_READY_FOR_INPUT( ) EQ 0.
* Set edit enabled cells ready for input
CALL METHOD GO_GRID->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1.
ELSE.
* Lock edit enabled cells against input
CALL METHOD GO_GRID->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 0.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sachin,
That isnt so tough , use on user-command event and the button name( the button which is to be used for clicking and getting the desired result) , and then after that capture sy-ucomm and match them if they are equal use a method which is there in CL_GUI_ALV_GRID class with EDIT-FIEDNAME = 'X'.
And You will get the desired o/p.
Best Regards,
Daljeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.