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

ALV Grid

Former Member
0 Likes
581

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

4 REPLIES 4
Read only

Former Member
0 Likes
563

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

Read only

former_member203501
Active Contributor
0 Likes
563

hi look at the program...

BCALV_EDIT_05

Read only

Former Member
0 Likes
563

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

Read only

Former Member
0 Likes
563

Thanks