Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Overwritten protected field

Former Member
0 Likes
996

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

1 REPLY 1
Read only

matt
Active Contributor
0 Likes
428

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