In this example, we will make one of our textboxes as a readonly field. TO demonstrate thi option, please do the following.
-
Go to the MM01 screen.
-
Open the 'SAPLMMGM.E0060.sjs' script file, and change the code for the second textbox by adding the readonly option as shown below.
textbox([1,2], [10, 100],{" name":"z_text"});
textbox([1,2], [10, 100],{" name":"z_totext", "readonly":true});
-
Save the changes and refresh the SAP screen. It will now display as shown below: