Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RE: ALV Grid

Former Member
0 Likes
713

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

3 REPLIES 3
Read only

Former Member
0 Likes
644

Hi Robert

Please look into the program BCALV_EDIT_04 ( package Slis) for the required scenario.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
644

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]

Read only

0 Likes
644

on the user command event, change the field catalog and refresh the ALV display,