Skip to Content
0
Former Member
Apr 29, 2009 at 02:32 PM

Setting Text Object to Read Only mode, then back to Editable

889 Views

Hi,

I have a custom transaction where if User A tries to access a record that is locked by User B, it goes into the transaction in read only mode. I therefore set my text control to read only using method 'set_readonly_mode' .

      CALL METHOD go_pcctextedit->set_readonly_mode.

If the record then is unlocked by User B. User A backs out of the main screen to the selection screen and selects the same record again I make the text controls editable by making the call:

      CALL METHOD go_pcctextedit->set_readonly_mode
        EXPORTING
          readonly_mode = cl_gui_textedit=>false.

However the text object on the screen is still in read only mode.

Does anyone know what could be causing this problem?

Many Thanks

David