‎2008 Mar 18 8:04 PM
Hi all,
i have a report which displays data in ALV grid and some columns are input enabled where user supplies additional data once after the list displays.
After user input, i have to read those selected lines from the alv grid and i have to do the subsequent process.
here i am able to read the selected lines but i am not getting the user input values. i am getting empty values..
how can i get the user input values form the ALV Grid...?
Thanks,
‎2008 Mar 18 8:12 PM
‎2008 Mar 18 8:12 PM
‎2008 Mar 18 8:22 PM
i am using ALV Function modules
how can i read values updated by user on the screen for the input enabled field.
‎2008 Mar 18 8:27 PM
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = i_fieldcat[]
is_layout = pt_grplayout2
i_callback_program = 'YATT0007'
i_callback_html_top_of_page = p_header
i_callback_user_command = f_user_command1
it_events = i_events[]
tables
t_outtab = i_yscchdr.
else.
message i012(yscc).
endif.
endform. " F_alv_edit_oruser
*
*&---------------------------------------------------------------------*
* Form f_user_command1 *
*&---------------------------------------------------------------------*
* This form will handle the user command from fm REUSE *
*----------------------------------------------------------------------*
form f_user_command1 using p_ucomm type sy-ucomm
rs_selfield type slis_selfield.
data p_ref1 type ref to cl_gui_alv_grid.
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = p_ref1.
call method p_ref1->check_changed_data.
case p_ucomm.
when '&DATA_SAVE'.
"HERE YOUR OUTPUT TABLE HAVE UPDATED VALUES
endcase.
rs_selfield-refresh = c_x. " Grid refresh
endform. " F_user_command1
a®
‎2008 Mar 18 8:39 PM