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

Text Editor -- should not allow editing old text

Former Member
0 Likes
771

I need to create a text editor where the old data entered previoulsy by the user should not be editable once he closes the window. He can enter new data but cannot change old data. Is this possible with any of the sap controls?

I think it is possible with two control like text editor in edit mode and another text in display mode only. But this solution is not Aesthetic.

Is there any control in SAP that does the above? I am using R/3 4.7.

Edited by: sas tas on Aug 19, 2009 2:27 AM

Edited by: sas tas on Aug 19, 2009 2:28 AM

I need to create a text editor where the old data entered previoulsy by the user should not be editable once he closes the window. He can enter new data but cannot change old data. Is this possible with any of the sap controls?

I think it is possible with two control like text editor in edit mode and another text in display mode only. But this solution is not Aesthetic.

Is there any control in SAP that does the above? I am using R/3 4.7.

Edited by: sas tas on Aug 19, 2009 2:27 AM

Edited by: sas tas on Aug 19, 2009 2:28 AM

3 REPLIES 3
Read only

Former Member
0 Likes
650

Hai,

Try with the help of the Method PROTECT_LINES of the Class CL_GUI_TEXTEDIT. You can protect certain lines with this method, still you can be able to edit the lines other than these.

Hope it helps you.

Best Regards,

rama

Read only

0 Likes
650

I haven't started this part. I was working on other stuff. I will add you the points and comment here when i am done.

thanks for the help

Read only

0 Likes
650

method SET_READONLY_MODE of cl_gui_textedit will protect everything. Please check [documentation in sap library - textedit control|http://help.sap.com/saphelp_nw2004s/helpdata/en/eb/549e36cf0ecb7de10000009b38f889/frameset.htm]