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: 

how to make twos rows different a field in alv

0 Kudos
295

i have a request,one rows need become checkbox, but the second rows should not checkbox。like that。the second i want it show not checkbox. anyone knows how to do that?

4 REPLIES 4

0 Kudos
189

thanks!

Sandra_Rossi
Active Contributor
0 Kudos
189

Do you want it to be completely invisible or just not editable (gray)? Do you program with SALV, cl_gui_alv_grid, or reuse_alv_grid… ?

raymond_giuseppi
Active Contributor
0 Kudos
189

Add a style internal table in your displayed internal table (type LVC_T_STYL) and pass its name to layout stylefname field so you can define individual cells style as cl_gui_alv_grid=>mc_style_button with your coded rules.

  • Cell without the style wont trigger any event
  • Cell with the style will trigger event button_click and in an handling method you will change the icon (choose two icons) you could also change your previous field value in this method, define this field as technical not displayed.

Some reference can be found at Displaying Cells as PushbuttonsDisplaying Cells as Pushbuttons and in wiki of the forum, use any search tool.

0 Kudos
189

do u mean i make the "checkbox icon" to the mc_style_button?