Protect part of ABAP code from modifying

Is it possible to protect some parts of ABAP code in Z* programs from any modification? 

Details... I made some templates for rapid ABAP-report design. When I want to create new report, I make copy of template and write some abap code in predefined places. A simplified example: 

report z_my_report. 

perform select_data. 
perform output_data. 

form select_data. 
* Users can place code here 
* >>> 

* <<< 
endform. 

form output_data. 
* Users can place code here 
* >>> 

* <<< 
endform. 

For complex reports it is important than user can write code ONLY in predefined places, not in other program logic. That's because I need to "lock" some parts of abap-code. 

No direct answer for this. 

One solutions is to put the sections of code in a separate include and use the editor lock in the attributes. 

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

ABAP Functions Tips
ABAP Functions Examples

ABAP Tips
ABAP Forum for Discussion and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.