Solution : https://service.sap.com/sap/support/notes/972432 (SAP Service marketplace login required)
Key words : 
general string replace function, replace selected text, text edit control, kernel patch 138its 700, kernel patch 68you, selected text, patch 22its 640, agate crash, terms set_selected_text_as_r3table, exception_access_violation
Related Notes : 
       
| 563161 | SAP GUI, SAP ITS & SAP IGS patches on Service Marketplace |