Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

About events of class cl_gui_alv_grid third Q

I have created one container, and by using oops concept I mean classes and event handler, I have displayed entries of one table ( suppose the entries of table SPFLI )

How can I make each field of any one line in display as push button. I mean I want to display all cells of one row as push button.

For your info. I am able to convert any individual cell as push button by using following code, but by using this I could only make any one cell in one row as push button but not entire row as push button.

READ TABLE it_vbak INTO wa_vbak INDEX 7.

wa_cellstyles-fieldname = 'VBELN'.

wa_cellstyles-style = cl_gui_alv_grid=>mc_style_button.

APPEND wa_cellstyles TO wa_vbak-cellstyles.

MODIFY TABLE it_vbak FROM wa_vbak .

this will make the cell 'VBELN' of 7th row as push button,

in this case I am not able to make reaming cells of 7th row as push button.

please help me out.

Not what you were looking for? View more on this topic or Ask a question