Single-screen replace

Replacing text on a single screen.

To use globaltextreplace on a single screen, please do the following:

  1. Open the script file for the VA01 Overview screen. The default screen appears as follows:



  2. Create a process that will call the globaltextreplace function. An example is shown below:

    				function do_gtr() {
    	set("F[Sold-to party]", "1460");
    	set("F[Ship-to party]", "1460");
    	load("wsoffice.dll");
    	globaltextreplace(/Order/, 'Request', {"ocx":true, "listscreen":false, "screen":"SAPMV45A.4001"});
    }
    				
    				
  3. Create a toolbar pushbutton to call the function. An example is shown below::

    pushbutton([TOOLBAR], "Text Replace", {"process":do_gtr});
  4. Click the pushbutton. The process will run and replace all instances of with . The screen now appears as shown below: