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

How to create a GUID in code

Former Member
0 Likes
38,192

Is there anyway to create a new GUID in ABAP? Simplying create a data object of type OS_GUID creates an initialized (empty, or all-zeros) GUID.

Many thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
14,018

Hello Steve,

You can use function module

GUID_CREATE

It allows you to generate GUID16, GUID22 or GUID32.

Regards,

Michael

Hello Steve,

You can use function module

GUID_CREATE

It allows you to generate GUID16, GUID22 or GUID32.

Regards,

Michael

2 REPLIES 2
Read only

Former Member
0 Likes
14,019

Hello Steve,

You can use function module

GUID_CREATE

It allows you to generate GUID16, GUID22 or GUID32.

Regards,

Michael

Read only

uwe_schieferstein
Active Contributor
0 Likes
14,018

Hello Steve

If you have software component <b>EA-APPL</b> available on your SAP system there is also class <b>CL_RECA_GUID</b> available.

Regard

Uwe