Examples

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.

Note: The 'screen' and 'listscreen' options cannot be used with OCX fields.
  1. Open the script file for the list screen and insert the following code:

    					globaltextreplace(/AttachmentFor000000825525/, 'Request', {"ocx":true});
    				
    				
  2. Save the changes and refresh the SAP screen.

    pushbutton([TOOLBAR], "Text Replace", {"process":do_gtr});
  3. The screen now appears as shown below: