04-16-2014 8:18 AM
Hai, I am trying to create ALV with input, where user updates values. Few Rows have to be disabled. I got the output but SAVE (CTRL + S ) Is not updating. I attached the code and required output. Thanks in advance. Prudhvi.
04-16-2014 9:01 AM
I suppose none of the user-commands in your user_command form can work as you did not fill the I_CALLBACK_USER_COMMAND parameter of REUSE_ALV_GRID_DISPLAY_LVC with the value 'USER_COMMAND'. Therefore the ALV does not know what to do when something happens in it.
04-16-2014 9:01 AM
I suppose none of the user-commands in your user_command form can work as you did not fill the I_CALLBACK_USER_COMMAND parameter of REUSE_ALV_GRID_DISPLAY_LVC with the value 'USER_COMMAND'. Therefore the ALV does not know what to do when something happens in it.
04-17-2014 5:33 AM
Thank you guys for all your replies.. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING I_CALLBACK_PROGRAM = SY-REPID I_CALLBACK_USER_COMMAND = 'USER_COMMAND' IS_LAYOUT_LVC = X_LAYOUT IT_FIELDCAT_LVC = IT_FIELDCAT TABLES T_OUTTAB = IT_FINAL[] EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2. IF SY-SUBRC NE 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. I passed 'USER_COMMAND' TO I_CALLBACK_USER_COMMAND it worked. Thanks jozef.. 🙂
04-16-2014 9:14 AM
Hi Prudhvi,
Kindly pass the exporting paramenter I_SAVE = 'A' in the FM REUSE_ALV_GRID_DISPLAY_LVC and also fill the parameter I_CALLBACK_USER_COMMAND.
Thanks
04-16-2014 9:16 AM
You put the code that update the "style" of the row in the form that creates the field catalog, this code should be executed in a dedicated form called :
Regards,
Raymond
04-16-2014 9:18 AM
Hi
you use this method
METHODS handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed.
in er_data_changed structure you have data of the cell in output. after, you update internal table with this data and update db in PAI .
Regards,
AI