I never had a need to work with random numbers, but this is being asked periodically on SAP-related forums. Functions RANDOM_C and RANDOM_I4 will return a random number. If you need a unique string (for example, to use in a table key), use the function GUID_CREATE. I used this one when I wanted to have a unique key for a log table that is being filled by many instances of my ABAP program running in parallel and I did not want to use the SAP’s number ranges feature.
January 23, 2007
Random or globally unique number/string generation in ABAP.
Leave a Comment »
No comments yet.