abap2xlsx/src/zcl_excel_obsolete_func_wrap.clas.abap
Lars Hvam 87b8291ea2
remove use of DTEL SYLANGU and DTEL GUID_16 (#953)
* remove use of DTEL SYLANGU

* and GUID_16

Co-authored-by: sandraros <34005250+sandraros@users.noreply.github.com>
2022-01-05 21:39:55 +01:00

39 lines
973 B
ABAP

CLASS zcl_excel_obsolete_func_wrap DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS guid_create
RETURNING
VALUE(rv_guid_16) TYPE zexcel_guid .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_EXCEL_OBSOLETE_FUNC_WRAP IMPLEMENTATION.
METHOD guid_create.
TRY.
rv_guid_16 = cl_system_uuid=>if_system_uuid_static~create_uuid_x16( ).
CATCH cx_uuid_error.
ENDTRY.
*--------------------------------------------------------------------*
* If you are on a release that does not yet have the class cl_system_uuid
* please use the following coding instead which is using the function
* call that was used before but which has been flagged as obsolete
* in newer SAP releases
*--------------------------------------------------------------------*
*
*Before ABAP 7.02: CALL FUNCTION 'GUID_CREATE'
*Before ABAP 7.02: IMPORTING
*Before ABAP 7.02: ev_guid_16 = rv_guid_16.
ENDMETHOD.
ENDCLASS.