BlogGitHub
Reference/ORK/CORE/ORK/IF_UUID
Interface/ORK/IF_UUID
UUID
Package
/ORK/CORE
Members
33
9 items
Methods
to_c32
MethodPublic

Returns this UUID as 32-character string (C32 format).

Parameters

NameDescriptionresultUUID in C32 string format

Signature

METHODS to_c32 RETURNING VALUE(result) TYPE sysuuid_c32.
to_c22
MethodPublic

Returns this UUID as 22-character string (C22 format).

Parameters

NameDescriptionresultUUID in C22 string format

Signature

METHODS to_c22 RETURNING VALUE(result) TYPE sysuuid_c22.
to_c26
MethodPublic

Returns this UUID as 26-character string (C26 format).

Parameters

NameDescriptionresultUUID in C26 string format

Signature

METHODS to_c26 RETURNING VALUE(result) TYPE sysuuid_c26.
to_x16
MethodPublic

Returns this UUID as 16-byte raw value (X16 format).

Parameters

NameDescriptionresultUUID in 16-byte raw format

Signature

METHODS to_x16 RETURNING VALUE(result) TYPE sysuuid_x16.
is_initial
MethodPublic

Checks if this UUID is uninitialized (all zero or default value).

Parameters

NameDescriptionresultabap_true if UUID is uninitialized, abap_false otherwise

Signature

METHODS is_initial RETURNING VALUE(result) TYPE abap_bool.
to_string
MethodPublic

Returns a string representation of the value of this instance of the UUID.

see https://learn.microsoft.com/de-de/dotnet/api/system.guid.tostring The format parameter can be "N", "D", "B", "P", "X", "n", "d", "b", "p", or "x". If format is null or an empty string (""), "N" is used.
see also Constants /ork/if_uuid=>cm_format-...

N: 32 hexadecimal digits (upper case)
00000000000000000000000000000000
00112233445566778899AABBCCDDEEFF
D: 32 hexadecimal digits separated by hyphens (upper case)
00000000-0000-0000-0000-000000000000
00112233-4455-6677-8899-AABBCCDDEEFF
B: 32 hexadecimal digits separated by hyphens, enclosed in braces (upper case)
{00000000-0000-0000-0000-000000000000}
{00112233-4455-6677-8899-AABBCCDDEEFF}
P: 32 hexadecimal digits separated by hyphens, enclosed in parentheses (upper case)
(00000000-0000-0000-0000-000000000000)
(00112233-4455-6677-8899-AABBCCDDEEFF)
X: Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces (upper case)
{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
{0x00112233,0x4455,0x6677,{0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF}}

n: 32 hexadecimal digits (lower case)
00000000000000000000000000000000
00112233445566778899aabbccddeeff
d: 32 hexadecimal digits separated by hyphens (lower case)
00000000-0000-0000-0000-000000000000
00112233-4455-6677-8899-aabbccddeeff
b: 32 hexadecimal digits separated by hyphens, enclosed in braces (lower case)
{00000000-0000-0000-0000-000000000000}
{00112233-4455-6677-8899-aabbccddeeff}
p: 32 hexadecimal digits separated by hyphens, enclosed in parentheses (lower case)
(00000000-0000-0000-0000-000000000000)
(00112233-4455-6677-8899-aabbccddeeff)
x: Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces (lower case)
{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
{0x00112233,0x4455,0x6677,{0x88,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff}}

Parameters

NameDescriptionformatA single format specifier that indicates how to format the value of this UUID.format_providerAn object that supplies culture-specific formatting information.resultThe value of this UUID, represented as a series of hexadecimal digits in the specified format.

Signature

METHODS to_string IMPORTING !format TYPE csequence DEFAULT /ork/if_uuid=>cm_format-upper-n
                              format_provider TYPE REF TO /ork/if_format_provider DEFAULT /ork/cl_culture_info=>format_provider-invariant
                PREFERRED PARAMETER format
                    RETURNING VALUE(result) TYPE string.
components
MethodPublic

Returns the internal components of the UUID.

Parameters

NameDescriptionresultStructure with time_high, time_low, reserved, family, and node fields

Signature

METHODS components RETURNING VALUE(result) TYPE ty_s_uuid.
version
MethodPublic

Returns the UUID version (1-5 or 0 for unknown).

Parameters

NameDescriptionresultUUID version as integer

Signature

METHODS version RETURNING VALUE(result) TYPE int1.
variant
MethodPublic

Returns the UUID variant (1-3 or 0 for unknown).

Parameters

NameDescriptionresultUUID variant as integer

Signature

METHODS variant RETURNING VALUE(result) TYPE int1.
23 items
Types
ty
TypePublic

Reference type for UUID instances.

Signature

TYPES ty TYPE REF TO /ork/if_uuid.
ty_tt
TypePublic

Table types of UUID references.

Signature

TYPES ty_tt TYPE STANDARD TABLE OF REF TO /ork/if_uuid WITH EMPTY KEY.
ty_th
TypePublic

Signature

TYPES ty_th TYPE HASHED TABLE OF REF TO /ork/if_uuid WITH UNIQUE KEY table_line.
ty_tr
TypePublic

Signature

TYPES ty_tr TYPE RANGE OF ty.
ty_sr
TypePublic

Signature

TYPES ty_sr TYPE LINE OF ty_tr.
ty_tt_x16
TypePublic

Table types for raw UUID representations.

Signature

TYPES ty_tt_x16 TYPE STANDARD TABLE OF sysuuid_x16 WITH EMPTY KEY.
ty_th_x16
TypePublic

Signature

TYPES ty_th_x16 TYPE HASHED TABLE OF sysuuid_x16 WITH UNIQUE KEY table_line.
ty_tr_x16
TypePublic

Signature

TYPES ty_tr_x16 TYPE RANGE OF sysuuid_x16.
ty_sr_x16
TypePublic

Signature

TYPES ty_sr_x16 TYPE LINE OF ty_tr_x16.
ty_tt_c32
TypePublic

Signature

TYPES ty_tt_c32 TYPE STANDARD TABLE OF sysuuid_c32 WITH EMPTY KEY.
ty_th_c32
TypePublic

Signature

TYPES ty_th_c32 TYPE HASHED TABLE OF sysuuid_c32 WITH UNIQUE KEY table_line.
ty_tr_c32
TypePublic

Signature

TYPES ty_tr_c32 TYPE RANGE OF sysuuid_c32.
ty_sr_c32
TypePublic

Signature

TYPES ty_sr_c32 TYPE LINE OF ty_tr_c32.
ty_tt_c22
TypePublic

Signature

TYPES ty_tt_c22 TYPE STANDARD TABLE OF sysuuid_c22 WITH EMPTY KEY.
ty_th_c22
TypePublic

Signature

TYPES ty_th_c22 TYPE HASHED TABLE OF sysuuid_c22 WITH UNIQUE KEY table_line.
ty_tr_c22
TypePublic

Signature

TYPES ty_tr_c22 TYPE RANGE OF sysuuid_c22.
ty_sr_c22
TypePublic

Signature

TYPES ty_sr_c22 TYPE LINE OF ty_tr_c22.
ty_tt_c26
TypePublic

Signature

TYPES ty_tt_c26 TYPE STANDARD TABLE OF sysuuid_c26 WITH EMPTY KEY.
ty_th_c26
TypePublic

Signature

TYPES ty_th_c26 TYPE HASHED TABLE OF sysuuid_c26 WITH UNIQUE KEY table_line.
ty_tr_c26
TypePublic

Signature

TYPES ty_tr_c26 TYPE RANGE OF sysuuid_c26.
ty_sr_c26
TypePublic

Signature

TYPES ty_sr_c26 TYPE LINE OF ty_tr_c26.
ty_s_uuid
TypePublic

Structure representing UUID components.

Signature

BEGIN OF ty_s_uuid,
      "! https://en.wikipedia.org/wiki/Universally_unique_identifier
      time_high TYPE x LENGTH 4,
      "! https://en.wikipedia.org/wiki/Universally_unique_identifier
      time_low TYPE x LENGTH 2,
      "! https://en.wikipedia.org/wiki/Universally_unique_identifier
      reserved TYPE x LENGTH 2,
      "! https://en.wikipedia.org/wiki/Universally_unique_identifier
      family TYPE x LENGTH 1,
      "! https://en.wikipedia.org/wiki/Universally_unique_identifier
      node TYPE x LENGTH 7,
    END OF ty_s_uuid.
ty_format
TypePublic

Signature

TYPES ty_format TYPE c LENGTH 1.
1 item
Constants
cm_format
ConstantPublic

Predefined format constants for UUID string representation.

Signature

BEGIN OF cm_format,
      BEGIN OF upper,
        "! <strong>N: 32 hexadecimal digits (upper case)</strong>
        "! <strong>Default ABAP representation</strong>
        "! <br/>00000000000000000000000000000000
        "! <br/>00112233445566778899AABBCCDDEEFF
        n TYPE ty_format VALUE 'N',
        "! <strong>D: 32 hexadecimal digits separated by hyphens (upper case)</strong>
        "! <br/>00000000-0000-0000-0000-000000000000
        "! <br/>00112233-4455-6677-8899-AABBCCDDEEFF
        d TYPE ty_format VALUE 'D',
        "! <strong>B: 32 hexadecimal digits separated by hyphens, enclosed in braces (upper case)</strong>
        "! <br/>{00000000-0000-0000-0000-000000000000}
        "! <br/>{00112233-4455-6677-8899-AABBCCDDEEFF}
        b TYPE ty_format VALUE 'B',
        "! <strong>P: 32 hexadecimal digits separated by hyphens, enclosed in parentheses (upper case)</strong>
        "! <br/>(00000000-0000-0000-0000-000000000000)
        "! <br/>(00112233-4455-6677-8899-AABBCCDDEEFF)
        p TYPE ty_format VALUE 'P',
        "! <strong>X: Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces (upper case)</strong>
        "! <br/>{0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
        "! <br/>{0x00112233,0x4455,0x6677,{0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF}}
        x TYPE ty_format VALUE 'X',
      END OF upper,
...
Repository11 packages · 113 objects
124 items