Understanding SAP GUID Formats
SAP systems use Global Unique Identifiers (GUIDs) extensively for primary keys in tables like BUT000 (Business Partner) and CRM_ORDERADM_H. However, different interfaces require different formats.
Raw (16-Byte)
The internal binary format stored in the database (e.g., RAW16). Used in ABAP SQL queries and debugger variables.
0050568D25CA1ED78B8C1B4F3F8B20B2Hyphenated (UUID)
Standard RFC 4122 format. Required for OData APIs, external integrations, and JSON payloads.
0050568D-25CA-1ED7-8B8C-1B4F3F8B20B2Base64 (Compressed)
A 22-character string used in URLs and legacy web dynpro applications to save space.
AFBWjSXKHtJujBP5PxvAy==Common Use Cases
- 1Debugging OData Services: When testing Gateway services (`/IWFND/MAINT_SERVICE`), you often need to convert the raw GUID from table
/IWFND/I_MED_SRHinto a hyphenated UUID for the URL. - 2HTTP Client Traces: Analyzing payload traces in
SMICMorSRT_UTILoften reveals GUIDs in Raw format, which you need to format to query in SE16N. - 3Integration Flows (CPI): Mapping valid UUIDs between non-SAP systems (like Salesforce) and SAP S/4HANA often requires removing hyphens or converting to Base64.