Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GUID validation

Former Member
0 Likes
1,287

Hi,

is it somehow possible to validate GUID if it is correct?

thanks

Juraj

4 REPLIES 4
Read only

brad_bohn
Active Contributor
0 Likes
940

Your question doesn't make sense - please elaborate. What do you want to validate? That it does or doesn't exist in your system for a particular application?

Read only

Former Member
0 Likes
940

Hi,

I get GUID from external app (it's scanned and then recognized via sw), so I need to validate, if the string got from recognition is really GUID

thanks

Juraj

Read only

0 Likes
940

Hello,

I do not have a clue about how & from which system you are receiving the GUID.

Looks like you are dealing with persistence services. If so, you may be able to get the GUID from ABAP dictionary table BCST_CAM.

Let me know if it was useful to you.

Regards,

Saurabh

Read only

0 Likes
940

No, you can't. How does that have any relevance to a GUID generated by an external system?

To the poster, you can't really 'validate' a GUID. It's a randomly generated character sequence and 99.9999% guaranteed to be unique. You could check if you've received the same value before or check the length, but it would probably be a waste of code...