2008 Oct 17 6:46 AM
Hi,
I have a report which imports and display in ALV data from an excel file. Unfortunately when I'm trying to exit I receive an error as I copied below.
Runtime Errors MOVE_TO_LIT_NOTALLOWED_NODATA
Date and Time 17.10.2008 08:39:18
Short text
Error at assignment: Overwritten protected field.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSLVC_FULLSCREEN" had to be terminated because it
has
come across a statement that unfortunately cannot be executed.
Error analysis
A new value is to be assigned to the field "<L_BOX>", although this field is
entirely or partly protected against changes.
The following are protected against changes:
- Character literals or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions and
methods
- Untyped field symbols not yet assigned a field using ASSIGN
- TABLES parameters if the actual parameter is protected against changes
- USING reference parameters and CHANGING parameters for FORMs, if the
actual parameter is protected against changes and
- Accesses using field symbols if the field assigned using ASSIGN is
protected (or partially protected, e.g. key components of an internal
table with the type SORTED or HASHED TABLE) against changes
- Accesses using references, if the field bound to the reference is
protected (or partially protected) against changes
- External write accesses to READ-ONLY attributes,
- Content of a shared object area instance accessed using a shared lock
(ATTACH_FOR_READ).
Trigger Location of Runtime Error
Program SAPLSLVC_FULLSCREEN
Include LSLVC_FULLSCREENF02
Row 686
Module type (FORM)
Module Name MARKS_SAVE
How can I solve the problem ?
Thanks
Stefan
2008 Oct 17 6:53 AM
Hi ,
Please check the GUI status you are using for the ALV.
Looking at the code what i feel is that the error occurs when the user action is the code &SAL' or '&ALL'.
Please put a break point at the statement and see why is the error occurring
Regards,
Arun
2008 Oct 17 8:06 AM
Thank you Arun, but when I've commented import parameter " i_callback_pf_status_set = 'SET_PF_STATUS' " the error still appear.
2008 Oct 17 8:34 AM
Hi Stefan ,
If that is the case then i would suggest you to please check the field catalog again , because some times because of some wrong entries in the catalog the ALV generates some errors.
Regards
Arun
2008 Nov 20 3:14 PM
I have had just now the problem: probably you have specified the fields box_tabname and box_fieldname of structure slis_layout_alv. If 46c wasn't necessary specified these as fields in data internal structure passed to ALV standard function ( t_outtab and it_fieldcat), in Ecc6 you need to declare them. So if they aren't necessaries for the user's work clear the two fields in slis_layout_alv, otherwise declare.
2021 Oct 19 8:45 PM
Thanks a lot for this help.
Cleaning slis_layout_alv-box_fieldname solved the issue.