Examples demonstrating how to use globaltextreplace on OCX fields.
We will use the OCX option to apply the globaltextrepalce command to OCX fieldss in SAP. In this example, we will use the OCX option to do a text replace on the Service:Attachment list in the IW32 transaction.
Open the script file for the list screen and insert the following code:
globaltextreplace(/AttachmentFor000000825525/, 'Request', {"ocx":true});
Save the changes and refresh the SAP screen.
pushbutton([TOOLBAR], "Text Replace", {"process":do_gtr});
The screen now appears as shown below: