/AWS1/IF_GLU=>CREATESCRIPT()¶
About CreateScript¶
Transforms a directed acyclic graph (DAG) into code.
Method Signature¶
METHODS /AWS1/IF_GLU~CREATESCRIPT
IMPORTING
!IT_DAGNODES TYPE /AWS1/CL_GLUCODEGENNODE=>TT_DAGNODES OPTIONAL
!IT_DAGEDGES TYPE /AWS1/CL_GLUCODEGENEDGE=>TT_DAGEDGES OPTIONAL
!IV_LANGUAGE TYPE /AWS1/GLULANGUAGE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucreatescriptrsp
RAISING
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUOPERATIONTIMEOUTEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_dagnodes TYPE /AWS1/CL_GLUCODEGENNODE=>TT_DAGNODES TT_DAGNODES¶
A list of the nodes in the DAG.
it_dagedges TYPE /AWS1/CL_GLUCODEGENEDGE=>TT_DAGEDGES TT_DAGEDGES¶
A list of the edges in the DAG.
iv_language TYPE /AWS1/GLULANGUAGE /AWS1/GLULANGUAGE¶
The programming language of the resulting code from the DAG.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glucreatescriptrsp /AWS1/CL_GLUCREATESCRIPTRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createscript(
it_dagedges = VALUE /aws1/cl_glucodegenedge=>tt_dagedges(
(
new /aws1/cl_glucodegenedge(
iv_source = |string|
iv_target = |string|
iv_targetparameter = |string|
)
)
)
it_dagnodes = VALUE /aws1/cl_glucodegennode=>tt_dagnodes(
(
new /aws1/cl_glucodegennode(
it_args = VALUE /aws1/cl_glucodegennodearg=>tt_codegennodeargs(
(
new /aws1/cl_glucodegennodearg(
iv_name = |string|
iv_param = ABAP_TRUE
iv_value = |string|
)
)
)
iv_id = |string|
iv_linenumber = 123
iv_nodetype = |string|
)
)
)
iv_language = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_pythonscript = lo_result->get_pythonscript( ).
lv_scalacode = lo_result->get_scalacode( ).
ENDIF.