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: 

capture edited value ...in ALV

Former Member
0 Kudos
125

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.

6 REPLIES 6

Former Member
0 Kudos
80

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.

Former Member
0 Kudos
80

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.

Former Member
0 Kudos
80

But the problem is that i am not using............oops ALV, I CAN'T IMPLEMENT THESE METHODS

anversha_s
Active Contributor
0 Kudos
80

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

0 Kudos
80

this piece of code shows how to make field editabe...........ot how to capture the value put in their.

0 Kudos
80

VERY URGENT REQUIREMENT........................PLEASE HELP