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: 

ALV grid display

former_member190103
Participant
0 Kudos

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

5 REPLIES 5

sivaganesh_krishnan
Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

former_member187748
Active Contributor
0 Kudos

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.