Generating a worldwide unique ID
How to create a unique ID for identifying objects.
We sometimes face situations where we need an ID for uniquely identifying our objects. SAP had provided a function...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
module for the same. We can use the function module SYSTEM_UUID_C_CREATE for generating a world wide unique ID. (Yes, this is a worldwide unique ID. No other person can get the same ID even if two people execute the same function module, at the same time.)
Here is the sample code for the same.
REPORT GUID .
data: unique_id like sys_uid.
start-of-selection.
clear unique_id.
CALL FUNCTION 'SYSTEM_UUID_C_CREATE'
IMPORTING
UUID = unique_id.
write : unique_id.