SAP生成UUID

围系统要求和SAP交互,生成UUID作为唯一主键,SAP支持以下几种UUID

cl_system_uuid=>if_system_uuid_static~create_uuid_c22( RECEIVING uuid = DATA(lv_uuid_c22) ).
cl_system_uuid=>if_system_uuid_static~create_uuid_x16( RECEIVING uuid = DATA(lv_uuid_x16) ).
cl_system_uuid=>if_system_uuid_static~create_uuid_x16( RECEIVING uuid = DATA(lv_uuid_c26) ).
cl_system_uuid=>if_system_uuid_static~create_uuid_x16( RECEIVING uuid = DATA(lv_uuid_c32) ).
cl_system_uuid=>if_system_uuid_static~create_uuid_x16( RECEIVING uuid = DATA(lv_uuid_c36) ).

WRITE: / lv_uuid_c22,
       / lv_uuid_x16,
       / lv_uuid_c26,
       / lv_uuid_c32,
       / lv_uuid_c36.

SAP生成UUID

同时调用类CL_SYSTEM_UUID,也支持UUID之间的相互转换。
SAP生成UUID

上一篇:逻辑卷管理


下一篇:plsql创建一个表和别的表结构一样