2009 Mar 31 11:14 AM
hallo
I am using cl_gui_alv_grid class. I make a Report which shows some data in ALV. There are rows and columns.
So now I want to have functionality that when a row is marked thed for example show a tranaktion or to preallocate
a field
if row-marked = 'X'
dosomething.
endif.
I dont know when I mark a row in ALV which varribel have the value X.
What can I do. Can somebody tell a sample code or hint
Thanks a lot
Waseem
hallo
I am using cl_gui_alv_grid class. I make a Report which shows some data in ALV. There are rows and columns.
So now I want to have functionality that when a row is marked thed for example show a tranaktion or to preallocate
a field
if row-marked = 'X'
dosomething.
endif.
I dont know when I mark a row in ALV which varribel have the value X.
What can I do. Can somebody tell a sample code or hint
Thanks a lot
Waseem
2009 Mar 31 11:16 AM
Hi,
u can add a extra field as select as a chk box and when that checkbox of that row is selected ,
u can do something.
Hope this helps u .
Regards
2009 Mar 31 11:29 AM
2009 Mar 31 11:29 AM
Hi,
DATA :BEGIN OF g_ty_stock occurs 0.
INCLUDE STRUCTURE y27m_post_stock.
data : mark TYPE c.
data: end of g_ty_stock
data : g_r_layout TYPE slis_layout_alv.
define the internal table like above, and pass box_fieldname to g_r_layout structure as 'MARK'..
g_r_layout-box_fieldname = 'MARK'.
**Delete the records with processing status 'P' from Current selection
DELETE g_t_input WHERE proc_status EQ 'P' AND mark IS INITIAL.
now your internal table will have only the selected rows in output...
hope it works....
Regards,
Pavan
Edited by: vishnu Pavan on Mar 31, 2009 12:31 PM
2009 Mar 31 2:42 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |