2022 Jul 28 7:55 AM
Hi all.
I have implemented a custom control in order to have a multiple line input option. In Pa30, i try creating a record and save it. when i go to display mode, the custom control field is still in display mode and hence i can still edit it. Which method of the class cl_gui_textedit should i call to keep it in display mode? Or is there any other way to keep it in display mode?
2022 Jul 28 9:11 AM
Hi,
You can make the screen field output only based on Tcode.
Thanks,
Aditya.
2022 Jul 28 12:20 PM
You may search the forum/SAP Web site with your favorite Web search engine. I see many answers for search below. Based on the results, if it still doesn't solve, you may anyway refine your query/provide more information.
cl_gui_textedit display mode site:sap.com
2022 Jul 28 12:51 PM
2022 Jul 28 12:53 PM
you should not, but protected could be accessed if you are a friend. search for CLASS LOCAL FRIEND
2022 Jul 28 3:05 PM
Hi misbaseemath,
You call 'set_readonly_mode' method based on the event you pass value 0 or 1.