Examples demonstrating how to use globaltextreplace on multiple screens.
Users can specify text to be replaced on more than one screen, while limitiing the replacements to those screens - in other words, the replacement will not be global across all SAP screens. in this example, we will replace the word 'Order' with 'Request' on two VA01 screens. To do this, pleae do the following:
Open the VA01 Overview script file and create a function to call the globaltextreplace command. 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", "SAPMV45A.0101"]}); }
Create a toolbar pushbutton to call the function. An example is shown below:
pushbutton([TOOLBAR], "Text Replace", {"process":do_gtr});
Save your changes and refresh SAP.
Click the button to execute the process. The affected screens are shown below: