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

Function Module CREATE_GUID

Former Member
0 Likes
1,303

Hi, I'm looking for a function module to return a random GUID. I've tried CREATE_GUID but everytime I execute the FM, I get the same GUID.

Thanks!

6 REPLIES 6
Read only

ferry_lianto
Active Contributor
0 Likes
1,077

Hi,

Please try this FM QF05_RANDOM.

Regards,

Ferry Lianto

Read only

0 Likes
1,077

I get numbers like "6,0803740611299872E-01"

Why is there a comma?

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,077

Hello Fong

If class<b> CL_RECA_GUID </b>is available in your SAP system call its static method <b>GET_NEW_GUID</b>.

Alternatively, you can directly call function module <b>GUID_CREATE</b>.

Regards

Uwe

Read only

0 Likes
1,077

Uwe,

When I execute GUID_CREATE multiple times, I get the same GUID. What could be the issue?

Read only

0 Likes
1,077

It's unique. Difference in one-two characters, that's why it's seems like the same.

Read only

Former Member
0 Likes
1,077

Hi,

Try with this FM

CMS_API_GENERAL_GUID_CREATE.

reward if needful...

regards

ramesh