10-11-2007 6:34 AM
Hi all,
I have ALV report .i want edit the data and save data to ztabel,but when i run the report save button show as disable,how can enable this button..
Thanks
kanishka
10-11-2007 6:36 AM
create PF-STATUS for that ALV Screen....
there you can enable the SAVE button...
10-11-2007 6:42 AM
The changes in the alv can be captured by the follwing code without save option:
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
rs_selfield-refresh = 'X'.
PERFORM get_list_sel .
endform .
FORM get_list_sel .
DATA ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
ENDFORM. " get_list_sel
This code will be triggrede after pressing enter on ALV after modifying the data and it will be captured in the internal table from where we display alv . From here u can update any data in ur Ztable. Reward points if found usefull.