2007 Mar 15 5:26 AM
IM MY ALV TWO columns are in editable mode.........i want to know how can i capture the value changed in any cell by user.
2007 Mar 15 5:30 AM
Hi,if u are displaying the grid on a container in acsreen this will b useful,
check this code.
data: ls_outtab type ZTMW_WRKBNCH_TAB occurs 0
with header line.
data: l_valid type c.
IF G_CUSTOM_CONTAINER1 IS not INITIAL.
call method grid1->check_changed_data
importing
e_valid = l_valid.
if l_valid = 'X'.
loop at GT_ZTMW_WRKBNCH_TAB.
read table GT_ZTMW_WRKBNCH_TAB into ls_outtab.
append ls_outtab.
endloop.
modify ZTMW_WRKBNCH_TAB from table ls_outtab.
endif.
endif.
Regards,
Bharat.
2007 Mar 15 5:31 AM
if it is OO ALV , following method should be called to commit any changes that have been made by the ALV routines.
CALL METHOD grid->check_changed_data
IMPORTING
e_valid = l_valid.
Also check the program BCALV_EDIT_04 for more info.
2007 Mar 15 6:08 AM
But the problem is that i am not using............oops ALV, I CAN'T IMPLEMENT THESE METHODS
2007 Mar 15 6:12 AM
hi,
pls go thru this simple ALV Code.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm
u will get good idea
Regards
Anver
2007 Mar 15 6:39 AM
this piece of code shows how to make field editabe...........ot how to capture the value put in their.
2007 Mar 15 6:59 AM