Skip to Content

What's the format of a CUID in SAP BI/BO?

Dec 06, 2017 at 12:41 PM


avatar image

I'm interfacing with an SAP BI/BO server and some web services require an input id, called "CUID" (Cluser Unique ID). for example, there's a web service getObjectById which requires a cuid as input.

I'm trying to make my code more robust by checking if the cuid entered by a user makes sense, but I can't find a regular expression that properly describes how a CUID looks like. There is a lot of documentation for GUID, but they're not the same. Below are some examples of CUID's found in our system and it looks like they are well-formatted but I'm not sure:


My guess would: start with a capital A, then add 22 random characters in the range [0-9A-Za-Z_.]. but perhaps it could be the A means something else and after awhile it would be using B...

Is anyone familiar with this type of id's and how they are formatted?

(quick side question: do I need to escape the "dot" in the square brackets like this \. to get the actual dot character?)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Joe Peters Dec 06, 2017 at 03:03 PM

Hello, Adriana.

I don't know of an official statement of the formats of CUIDs, but from all the analysis I've done:

  • Most CUIDs are 23 characters, but they can be longer. The SI_CUID column in cms_infoobjects7 has a length of 56, so I take this to be the maximum length of a CUID.
  • Most CUIDs start with "A". But B and C are common, and I've seen F, M, and k.
  • CUIDs can contain upper and lower-case characters, numbers, "." and "_".

So: [0-9A-Za-z_.]{23,56}

But I have to ask -- are you really having your users manually type in a CUID? That seems really error-prone. If that has to be done, I'd suggest using the si_id instead -- it's an integer.

As to escaping the period, no, it's not necessary within brackets.


10 |10000 characters needed characters left characters exceeded