What is GUID & its significance in CRM?
What is GUID & its significance in CRM? Please Reply with the simple scenario Company , Department and Employee.
Thanks and Regards,
HCL ZENITH replied
GUID means Global Unique Identifier. You use a GUID when you need to identify an object/component with a unique id. GUID is a unique key for any object in CRM. In CRM, they are either 16 bit, 22 bit or 32 bit of char and hexadecimal in nature, 2 types of GUIDs Header & item. For header, there will be a unique GUID and for each item-line, there will be another unique GUID.
GUIDs are created using the Function Module “GUID_CREATE” in SAP CRM. From the ‘Export’ parameters, you will know that there are only three types of GUIDs.
A small gift: function modules to data exchange in 16 bit, 32 bit and 22 bit exchange – “GUID_CONVERT”.
One more use of GUID is persistence services and hiding the database accesses. Different business objects of different types may share the same key format and hence may have the same business key although they are of different types and are stored in different tables as the above reply shows. But when we deal with them as ABAP Objects we need to uniquely identify one business object; we can do that using GUID.
When any object is to be transferred to other system it’s the GUID that is used, as there are no replicas and easy to distinguish.
E.g. Consider a Company ‘A’ has 2 departments-Sales1 and Sales2, and in that there are sub departments-products and finance. Now each product and finance of both sales1 and sales2 will have employees with same object_id. So to avoid the dilemma crm creates a GUID for each employee which differentiates each of them.