sapdev logo background
sapdev logo sapdev logo
Comments

SAP ABAP JAVA SCRIPT documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

ABAP and JavaScript
In the kernel of an AS ABAP , a JavaScript (JS) Engine is integrated, in which execute JavaScript programs can be executed either in normal or in debugging mode (server-side scripting). The
JavaScript (JS) Engine used supports JavaScript Version 1.5. Proxies can be used to bind script variables to data objects in ABAP programs.
The class CL_JAVA_SCRIPT realizes an API , which can be used in ABAP programs, for the JavaScript (JS) Engine implemented in the kernel. This class encapsulates the JavaScript C Engine API and makes methods and attributes available to the ABAP programmer to perform JavaScript programs.

Note
Support for the binding of JavaScript to ABAP is scheduled to be stopped. This means that the class CL_JAVA_SCRIPT can no longer be used.

Example
The program
DEMO_JAVA_SCRIPT_MINI_EDITOR is an example of a minimal
JavaScript editor in which JavaScript programs can be edited, executed, and tested. This program was created using ABAP methods only and uses the class CL_JAVA_SCRIPT .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




ABAP_IXML_LIB_STREAM
ABAP_JSON




comments powered by Disqus