Generating a World Wide Unique-id

By Suneetha

We sometimes face situations where we need an ID for uniquely identifying our objects. SAP® had provided a function 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.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image