Skip to Content
0
Former Member
Jul 11, 2008 at 01:07 AM

Error at assignment: Overwritten protected field - On change of tables para

678 Views

Hey Folks,

Has anyone faced this error ?

Error Source

The short text of the error states "Error at assignment: Overwritten protected field"

I have a function module which has tables parameter of type BAPIRET2. During runtime I am appending a structure of the same type to the table.

At this juncture I am getting this error in runtime.

Error Analysis

On checking the error analysis in ST22, I see that apparently the system detected ' A new value is to be assigned to the field "T_RETURN[]", although this field is entirely or partly protected against changes.'

Among the fields that are protected as described in the error analysis, its mentioned that

"- TABLES parameters if the actual parameter is protected against changes:

However, I dont seem to understand how it is not possible to be able to change the value of the any TABLES parameter defined.

Besides I have written the same code many times earlier and even now, but somehow it just dumps in this code when I am trying to append the error message (BAPIRET2) to my table. Nothign seems to be different in my current coding when compared to the other Function Modules that are working.

Please let me know if someone has faced a similar problem earlier.

Thanks and Best Regards,

Puja