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

Error at assignment: Overwritten protected field.

Neslinn
Participant
0 Likes
3,599

Hi,

I am getting the above error message at the below move statement.

FIELD-SYMBOLS <output_field> .

ASSIGN (var1) TO <output_field>.

MOVE lt_datatable-text TO <output_field>.

Kindly guide.

Neslin.

4 REPLIES 4
Read only

Former Member
0 Likes
835

Hello,

Where have you declared the var1?

If it's a importing parameter of a method or function, you can't change it, only read.

Regards.

Read only

0 Likes
835

Defenition of var :DATA: var1 LIKE dd03p-fieldname.

Var1 contains the concatenated of tablename and fieldname, so it will look like this:

KNA1-kunnr into var1

Code used: CONCATENATE l_outputtable '-' lt_tablefields-fieldname INTO var1.

Edited by: neslin on Oct 23, 2008 7:10 PM

Read only

Former Member
0 Likes
835

if the var contains any protected information then it will give error.

what is the defintion of the var and what it contains..?

Read only

0 Likes
835

Defenition of var :DATA: var1 LIKE dd03p-fieldname.

Var1 contains the concatenated of tablename and fieldname, so it will look like this:

KNA1-kunnr into var1

Code used: CONCATENATE l_outputtable '-' lt_tablefields-fieldname INTO var1.