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: 

how to add 1 record when user edit a field in alv grid?

Former Member
0 Kudos

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...

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

solved