1- Download JS file and upload your SAP Web Repository(T-code : smw0).
Select Binary data .
Just run it or give a package name.
Create a new object , give the name ‘ZCANVAS.JS’ to object.
2 – CALL SCREEN 9000.
3- In PBO :
- Create container object
- Create cl_gui_html_viewer object
- Load mime object ( CALL METHOD REF_HTML->load_mime_object )
- Generate Html
- And finally show url
Download Codes : https://www.dropbox.com/s/mss0sp1mzpj42zr/Test%20ABAP_JS%20Code.txt?dl=0