Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Best way to create an ID for a big program

$
0
0

Hello guys,

 

I need to generate unique IDs for my application

This will keep track of records in db tables and log tables as well as other places.

 

there is two ways i thought:

  • SNRO a number range
  • GUID

 

We dont want to keep track of SNRO and GUID is not understandable by users

 

is there another way?

 

What about using code like this, timestamp becomes my unique ID

But there will be issues like same ID

 

 

what do you suggest??

 

method GENERATE_BATCH_ID.

 

   CONCATENATE sy-datum sy-uzeit INTO rv_batch_id.

 

endmethod.


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>