To use the text command to display text housed in a variable, please do the following.
-
Go to the initial VA01 screen.
-
Open the script file ('SAPMV45A.E0101.sjs') and enter the following code. Create the script file if it does not exist.
var z_txt = "This is some text!";
text([12,4], " The variable is>>:" +z_txt);
-
Save the changes and refresh the SAP screen. It will now display as shown below: