2008 Jul 08 10:08 AM
Dear All,
I am getting the following short dump.
Error at assignment: Overwritten protected field.
Attaching the source code:
FIELD-SYMBOLS: <SFN>.
FIELD-SYMBOLS: <DFN>.
LOOP AT SHARED_FIELDS.
ASSIGN (SHARED_FIELDS-SOURCE_FIELD) TO <SFN>.
ASSIGN (SHARED_FIELDS-DESTIN_FIELD) TO <DFN>.
IF <DFN> IS INITIAL.
IF NOT <SFN> IS INITIAL.
MOVE <SFN> TO <DFN>. ==>>> Getting short dump in this line
ENDIF.
ENDIF.
ENDLOOP.
Any clue how to avoid that dump.
Best Regards,
T
Dear All,
I am getting the following short dump.
Error at assignment: Overwritten protected field.
Attaching the source code:
FIELD-SYMBOLS: <SFN>.
FIELD-SYMBOLS: <DFN>.
LOOP AT SHARED_FIELDS.
ASSIGN (SHARED_FIELDS-SOURCE_FIELD) TO <SFN>.
ASSIGN (SHARED_FIELDS-DESTIN_FIELD) TO <DFN>.
IF <DFN> IS INITIAL.
IF NOT <SFN> IS INITIAL.
MOVE <SFN> TO <DFN>. ==>>> Getting short dump in this line
ENDIF.
ENDIF.
ENDLOOP.
Any clue how to avoid that dump.
Best Regards,
T
2008 Jul 08 10:13 AM
SHARED_FIELDS-SOURCE_FIELD is protected. That means that it could be part of the key of a table - you can't change key. Or it's part of an importing parameter of a method - you can't change importing parameters.
To be absolutely sure, I'd need data definitions, and the calling program.
matt
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |