04-28-2014 8:28 AM
Hi experts..
i got one requirement like i need to edit some rows particularly in alv....
Edit in alv output....is it possible to get that .....using normal function module with out using oops concept...
could any one pls help me...
04-28-2014 8:45 AM
Hi Pendurti ,
If you want a particular field to be editable , simply define the fieldcatalog as
wa_fieldcatalog-edit = 'X'.
wa_fieldcatalog-input = 'X'.
for that field.
and
Now when you use FM ' Reuse alv grid display '
define USER_COMMAND
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = int_fieldcatalog
is_layout = wa_layout
TABLES
t_outtab = t_disp.
and now in form USER_COMMAND ; code as per following
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
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.
Regards,
Yogendra Bhaskar
04-28-2014 9:23 AM
Hi Yogendra,
Thanks for respond my question...
i dont want to edit alv in field wise .....
i want to edit alv in row wise....in normal alv with out using class....
for example : in alv output particular rows i need to edit .....
is it possible to get that requirement using normal alv grid......
Regards,
vamsilakshman.p
04-28-2014 9:40 AM
In clean REUSE_ALV.. it's not possible but you can get what you want if you'll follow instructions from this tread : http://scn.sap.com/thread/3532187
Regards
Łukasz