Creating tips with pushbuttons

In the following example, we will add a tip to the 'Basic Data Text' pushbutton on the MM01 Finished Product screen.
  1. Go to the MM01 transaction in SAP.
  2. open the 'SAPMGMM.E4004.sjs' script file, and enter the following code. Create the file if it does not already exist.
    tip("P[Basic Data Text]", "This pushbutton will launch a screen where users can view or enter long text about basic data."); 
  3. Save the changes and refresh the SAP screen. It will now display as shown below: