Application Development 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: 

How to create a GUID in code

Former Member
0 Kudos

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

former_member589029
Active Contributor
0 Kudos

Hello Steve,

You can use function module

GUID_CREATE

It allows you to generate GUID16, GUID22 or GUID32.

Regards,

Michael

2 REPLIES 2

former_member589029
Active Contributor
0 Kudos

Hello Steve,

You can use function module

GUID_CREATE

It allows you to generate GUID16, GUID22 or GUID32.

Regards,

Michael

uwe_schieferstein
Active Contributor
0 Kudos

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