The text command may also be used for changing tab names within groupboxes and tabstrips as well. In the following example, we will change the name of the Sales tab on the VA02 Overview screen from 'Sales' to 'Renamed'. To demonstrate this functionality with the text command, 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.
text("P[Sales]", "Renamed");
-
Save the changes and refresh the SAP screen. It will now display as shown below: