04-28-2009 6:51 AM
Hi all,
how to add 1 record when user edit a field in alv grid?
Say when user changed the quantity from 500kg to 200kg ,a new record should be appended with same record fields?
Plz suggest..
Thanks in advance...
04-28-2009 7:10 AM
Hi....
First use Following code to check data has been changed in ALV Grid or not in user command
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
call method ref1->check_changed_data.
so you will get updated data in internal table which is bind to your grid then write your code for append.
if you want to check for perticular column changes then first assign internal table which is binded to grid to one more internal table before above function call.
after this function call , internal table which assign to grid having latest data means updated data so with comparision of both internal table in loop for particular column, you can get difference and write code there which u want to run.
Regards,
Chintan.
04-28-2009 7:24 AM
Hi ,
this is my record..
pro_ord size qty date
112 M 500 02.02.2009
when i split qty into two values say 250 -250 ..the record like that..
pro_ord size qty date
112 M 250 02.02.2009
112 M 250 08.02.2009
I am not using OOPs ..
Thanks and regards
Steve
10-08-2010 6:54 AM