cancel
Showing results for 
Search instead for 
Did you mean: 

Editable ALV

0 Kudos

Hi friends,

I have an ALV with three columns . Initially when the ALV is loaded with data it is in read only mode. All the fields in the first column are links .Now I have created a ALV button called 'Create'. When the user clicks on it a new row should be appended and its first column should be an editable input field but for the remaining rows the first column should be a link. Now when the user enter something in the input field and clicks on save that input field should also become a link and that row should also become read only.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Mohsin,

you need to create cell variants for this. Its same like what we do in normal Table UI element.

Create two cell variants, one for link and other for input field and bind them accordingly. The below tutorial will explain you how to create cell variants for ALV columns

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d1...

BR, Saravanan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please refer the folloing links,

[Edit conditionally row of a ALV table in Web Dynpro ABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP]

[Simple Editable Alv|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1?quicklink=index&overridelayout=true]

[Column Editable Using ALV Function Elements|http://www.saptechnical.com/Tutorials/WebDynproABAP/Column/page1.htm]

Hope this helpful.

Thanks,

Renuka S.