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

Change field catalog dynamically

Former Member
0 Likes
2,064

I am using an OO ALV to achieve my requirements.

Requirements:

I need to populate this grid from a table. I should be able to add, edit, and delete lines. I did already all of these requirements. The tricky thing is that if the table has data and I am populating this data, there are some fields that should NOT be editable. When I add a new row, two of those non editable, should be editable.

The question is, when I add a new row, how can I change these two fields to editable for that new row without changing these fields on the records that are already saved?

Obviously I am not looking for exact code. I am looking for someone to point me to the right direction.

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
1,081

Hi,

Get the book "An Easy Reference for ALV Grid Control" http://scn.sap.com/docs/DOC-10353

In the book:

– Inserting an inner table to store cell display styles

see program BCALV_EDIT_02 .

cl_gui_alv_grid=>mc_style_disabled and  cl_gui_alv_grid=>mc_style_enabled

Also http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=37199

Regards.

3 REPLIES 3
Read only

rosenberg_eitan
Active Contributor
0 Likes
1,082

Hi,

Get the book "An Easy Reference for ALV Grid Control" http://scn.sap.com/docs/DOC-10353

In the book:

– Inserting an inner table to store cell display styles

see program BCALV_EDIT_02 .

cl_gui_alv_grid=>mc_style_disabled and  cl_gui_alv_grid=>mc_style_enabled

Also http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=37199

Regards.

Read only

0 Likes
1,081

Thanks!

Read only

aarif_baig
Active Participant
0 Likes
1,081

Hi Johnny,

                 Please check this link hope it helps.