transpiler
transpiler copied to clipboard
dynamic call, class vs method
both the class and method should be considered dynamic
CALL METHOD ('CL_SYSTEM_UUID')=>if_system_uuid_rfc4122_static~create_uuid_c36_by_version
EXPORTING
version = 4
RECEIVING
sdfs = lv_str.
currently only the existence of the dynamic part is checked,
if (abap.Classes['CL_SYSTEM_UUID'] === undefined && abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_CLASS not found"; }
if (abap.Classes['CL_SYSTEM_UUID'] === undefined) { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_CLASS'](); }
rv_guid.set(await abap.Classes['CL_SYSTEM_UUID'].if_system_uuid_rfc4122_static$create_uuid_c36_by_version({version: constant_4}));
rv_guid.set(abap.builtin.to_lower({val: rv_guid}));