NAME_OBJ (Type STRING)
NAME_PROP (Type STRING)
OBJECT_REF (Type REF TO OBJECT)
Name of a reference variable that must point to an instance in ABAP Objects when binding is performed.
class C1 definition.
data ATTR type STRING.
class C1 implementation.
ATTR = 'Hello '.
data OREF type ref to C1.
data SOURCE type STRING.
data JS_PROCESSOR type ref to CL_JAVA_SCRIPT.
data RETURN_VALUE type STRING.
JS_PROCESSOR = CL_JAVA_SCRIPT=>CREATE( ).
create object OREF.
JS_PROCESSOR->BIND_INSTANCE( exporting NAME_OBJ = 'abap'
NAME_PROP = 'Ref'
changing OBJECT_REF = OREF ).
message 'Binding Error' type 'E'.
SOURCE = 'abap.Ref.attr += " World!";'.
JS_PROCESSOR->EVALUATE( JAVA_SCRIPT = SOURCE ).