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: 

CUSTOM CONTROL

0 Kudos
532

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?

5 REPLIES 5

former_member751463
Participant
0 Kudos
475

Hi,

You can make the screen field output only based on Tcode.

Thanks,

Aditya.

Sandra_Rossi
Active Contributor
0 Kudos
475

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

0 Kudos
475

the method get_readonly_mode is protected. how to access it?

FredericGirod
Active Contributor
0 Kudos
475

you should not, but protected could be accessed if you are a friend. search for CLASS LOCAL FRIEND

0 Kudos
475

Hi misbaseemath,

You call 'set_readonly_mode' method based on the event you pass value 0 or 1.