It has been convenient to declare structs that are used throught a program in the src file. It works i DF 18.,2 and 19.1, but in DF 20.1 I get compiler error 4391: Wrong code placement Could not refind the original name in struct(-sub) definition.

I have the struct declarations in the .src file because structs can only be declared once. If the declarations are moved to view and report files, there are problems when debugging separate parts.

Is there a recommendation concerning where to declare structs?

Bengt