Entering content frameABAP and JavaScript Locate the document in its SAP Library structure

The SAP Basis System contains a class called CL_JAVA_SCRIPT, which can be used to execute ABAP JavaScript programs. It also enables the data transfer between ABAP and JavaScript.

The CL_JAVA_SCRIPT class implements an API that can be used in ABAP programs as a JavaScript (JS) engine implemented in the SAP kernel. The class encapsulates the JavaScript C Engine API and provides the ABAP programmer with methods and attributes that can be used to execute JavaScript programs on the application server of the R/3 System in normal or debugging mode (Server Side Scripting). The JavaScript engine in use supports JavaScript Version 1.5. Variables of the script can be connected to data objects of the ABAP program (binding).

The CL_JAVA_SCRIPT class can be instantiated in ABAP programs simply by means of its static method CREATE.

Using the Class

Using the CL_JAVA_SCRIPT Class

Overview of the Components of the Class

Static Methods of the CL_JAVA_SCRIPT Class

Instance Methods of the CL_JAVA_SCRIPT Class

Static Attributes of the CL_JAVA_SCRIPT Class

Instance Attributes of the CL_JAVA_SCRIPT Class

Leaving content frame