2010 Jul 13 10:41 AM
Hi Experts,
I got one problem. I created an Z-report, the output type is as Grid display. After viewing the output and pressing back button, it is going to dump.
Thanks in Advance,
Srinivas
Hi Sriniva,
Can you post your code?
And I think that you handle your "User_Command" after calling FM REUSE_ALV_GRID_DISPLAY.
Like that:
...
DATA: user_command TYPE slis_formname VALUE 'USER_COMMAND'.
...
er_layout-zebra = 'X'.
er_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = user_command
i_buffer_active = space
i_bypassing_buffer = 'X'
is_layout = er_layout
it_fieldcat = er_fieldcat[]
it_special_groups = er_sp_group
i_save = 'A'
is_variant = e_variant
it_events = er_events[]
TABLES
t_outtab = outtab.
...
*---------------------------------------------------------------------*
* FORM user_command
*---------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA : l_grid TYPE REF TO cl_gui_alv_grid.
DATA : l_ucomm LIKE sy-ucomm.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
l_ucomm = '&REFRESH'.
CALL METHOD l_grid->set_function_code
CHANGING
c_ucomm = l_ucomm.
CASE r_ucomm.
WHEN '&DATA_SAVE' .
...
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. " USER_COMMAND
...
2010 Jul 13 11:38 AM
The Error is Error at assignment: Overwritten protected field.
The current ABAP program "SAPLSLVC_FULLSCREEN" had to be terminated because it
has come across a statement that unfortunately cannot be executed.
A new value is to be assigned to the field "<L_BOX>", although this field is
entirely or partly protected against changes.
Regards,
Srinivas
2010 Jul 13 11:48 AM
Try running the ALV Consistency check & see if it gives you any errors.
Read Rainer's bolg on [SOS - ALV is not working|/people/rainer.hbenthal/blog/2009/09/25/sos--my-alv-report-is-not-working].
BR,
Suhas
2010 Jul 13 11:52 AM
Hi Sriniva,
Can you post your code?
And I think that you handle your "User_Command" after calling FM REUSE_ALV_GRID_DISPLAY.
Like that:
...
DATA: user_command TYPE slis_formname VALUE 'USER_COMMAND'.
...
er_layout-zebra = 'X'.
er_layout-colwidth_optimize = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = user_command
i_buffer_active = space
i_bypassing_buffer = 'X'
is_layout = er_layout
it_fieldcat = er_fieldcat[]
it_special_groups = er_sp_group
i_save = 'A'
is_variant = e_variant
it_events = er_events[]
TABLES
t_outtab = outtab.
...
*---------------------------------------------------------------------*
* FORM user_command
*---------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA : l_grid TYPE REF TO cl_gui_alv_grid.
DATA : l_ucomm LIKE sy-ucomm.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_grid.
l_ucomm = '&REFRESH'.
CALL METHOD l_grid->set_function_code
CHANGING
c_ucomm = l_ucomm.
CASE r_ucomm.
WHEN '&DATA_SAVE' .
...
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. " USER_COMMAND
...
2010 Jul 13 12:31 PM
Hi,
Problem solved. In my case i am not passing USER-COMMAND, but i am highlighting the alv_layout-box_fieldname = FLAG which is going to dump.
Thanks for your response.
Regards,
Srinivas
2010 Jul 13 12:33 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |