2011 Apr 25 10:23 PM
I am displaying an ALV Grid display using OOPS. After my output is displayed , on the output screen I need a custom button. If I press
Custom button, by selecting a row in my o/p alv grid and hit the custom toolbar button, It should copy the selected row and then insert the selected row as newly added.
I did till here. Now Once the selected row is copied as a new row, the 2 fields of the ALV grid should be editable only for the newly Added row now.
I tried different ways, any idea abt this kind of scenario.
Thanks in Advance
I am displaying an ALV Grid display using OOPS. After my output is displayed , on the output screen I need a custom button. If I press
Custom button, by selecting a row in my o/p alv grid and hit the custom toolbar button, It should copy the selected row and then insert the selected row as newly added.
I did till here. Now Once the selected row is copied as a new row, the 2 fields of the ALV grid should be editable only for the newly Added row now.
I tried different ways, any idea abt this kind of scenario.
Thanks in Advance
2011 Apr 26 7:36 AM
Hi Robert
Please look into the program BCALV_EDIT_04 ( package Slis) for the required scenario.
2011 Apr 26 9:03 AM
Once you are appending a new row then we have to just add style_enabled to those rows and style_disabled to the other rows. Initially set edit for those two fields ( later enable & disable it as required ).
Check this wiki by Vijay link:[http://wiki.sdn.sap.com/wiki/display/Snippets/DisableorEnableInputfieldsConditionallyInOOALV]
2011 Apr 26 9:49 AM
on the user command event, change the field catalog and refresh the ALV display,