10-15-2013 8:53 AM
Hi Experts,
Good Morning to all.
i have one Issue. It is i am displaying data in ALV GRID Display and put one field in editable mode. when user enter new values in that field and select those if he click on save then the data getting saved.
Now my requirement is without selecting the rows when user inserted new values into that field those records have to be updated as well as before.
Can any one please guide me to achive this issue.
Thanks in Advance
Thanks&Regards
Sravan
10-15-2013 9:40 AM
HI Sravan,
You could use alv event DATA_CHANGED for capturing the changed values.
Please refer :Get Changed Value In ALV Grid Dynamically. - ABAP Development - SCN Wiki
Hope this Helps
Sivaganesh
10-15-2013 12:04 PM
HI Sivaganesh,
Thanks for your quick responce. I have checked this link already but i am trying on it. once my changes and testing done i let you know. In mean while can you please suggest me some other code to useful for solving my issue.
Thanks&Regards,
Sravan
10-15-2013 9:43 AM
Hello Sravan,
Please refer to this link:
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=37472
Apparently, the print screens of the ALV output answer your needs and questions.
Thanks and Kind Regards,
Yovish.
10-15-2013 12:01 PM
Hi Yovish,
Thanks for your quick responce.
I need to update the recored without selecting the lines which i have made changes in output.
using get_selected_rows method when we select the rows that time only it will be updated.
Thanks&Regards,
Sravan
10-15-2013 9:48 AM
Hi Sravan,
could you please try this
DATA: ref_grid TYPE REF TO cl_gui_alv_grid.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
ENDFORM.