- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- *--[ Números
- DATA(l_random) = cl_abap_random_int=>create( seed = CONV i( sy-uzeit ) min = 10000 max = 20000 ).
- data(l_num) = l_random->get_next( ).
- data(l_num_") = l_random->get_next( ).
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- *--[ String
- DATA : lw_guid TYPE string.
- CALL FUNCTION 'GENERAL_GET_RANDOM_STRING'
- EXPORTING
- number_chars = 32
- IMPORTING
- random_string = lw_guid.
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- *--[ UUID
- DATA(system_uuid) = cl_uuid_factory=>create_system_uuid( ).
- TRY.
- DATA(uuid_x16) = system_uuid->create_uuid_x16( ).
- system_uuid->convert_uuid_x16( EXPORTING
- uuid = uuid_x16
- IMPORTING
- uuid_c22 = DATA(uuid_c22)
- uuid_c26 = DATA(uuid_c26)
- uuid_c32 = DATA(uuid_c32) ).
- CATCH cx_uuid_error.
- endtry.
- ENDTRY.
Última modificación de la página el 03 May 2026 a las 07h39
Powered by
PmWiki