Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get changed data (Call FM ALV)


changed before:

itab[] data

FieldA FieldB

123 abc

124 xyz

-


changed after:

itab[] data

FieldA FieldB

123 amn

124 abm

-


how to get changed data.

Regards,

Tags:
replied

you need to call the function 'GET_GLOBALS_FROM_SLVC_FULLSCR' and from this you get the grid reference, using that you need to call the method check_changed_data. then only you can get the modified content.

form user_command using p_ucomm type sy-ucomm
p_selfld type slis_selfield.
 
data ref1 type ref to cl_gui_alv_grid.
"For capturing the selected data
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = ref1.
call method ref1->check_changed_data.
 
case p_ucomm.
when '&DATA_SAVE'.  "based on your action
 
"Now you see/check here internal table will have changed 
"values
p_selfld-refresh = 'X'.
endcase.
endform. "user_command

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question