Application Development 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: 

ALV style mc_style_no_delete_row and mc_style_enabled at the same time

Former Member
0 Kudos

Hey experts,

I want to use two different styles on the whole row. I was trying to do it followingly


CLEAR ls_stylerow-fieldname.

ls_stylerow-style2 = cl_gui_alv_grid=>mc_style_enabled.

ls_stylerow-style = cl_gui_alv_grid=>mc_style_no_delete_row.

INSERT ls_stylerow INTO TABLE <lt_style>.

but only that style is active which is in the ls_stylerow-style.

I have already figure it out that I can achieve both styles when I set each field seperatly to mc_style_enabled and with the empty fieldname the mc_style_no_delete_row.

But I want to avoid looping at the whole row to set all the fields seperatly. How can I set those two styles for the whole row with simple withour looping the whole row. For what is the style2, style3, style4 good for if only the style is active when more then one style is set.

Regards,

Robert

1 ACCEPTED SOLUTION

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

You can add them like this:

See Thomas Schmidt's Profile    | SCN

answer:

How to disable a cell of ALV *AND* disable sear... | SCN

                  

Regards.

3 REPLIES 3

nurullah_rstem2
Explorer
0 Kudos

Hi Robert,

i have the same issue. Please let me know how you solved if solved.

thanks in advance

0 Kudos

Hey Nurullah,

I did not solve it and I am using the mentioned way above:


I have already figure it out that I can achieve both styles when I set each field seperatly to mc_style_enabled and with the empty fieldname the mc_style_no_delete_row.

Regards,

Robert

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

You can add them like this:

See Thomas Schmidt's Profile    | SCN

answer:

How to disable a cell of ALV *AND* disable sear... | SCN

                  

Regards.