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: 

Help regarding the Function Module GUID_CREATE

Former Member
0 Kudos

Hi Experts,

Can some one explain the functionality of GUID_CREATE function module.Thanks in advance.

With regards,

Srini...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Guid for unique identification assigned list

It think it will generate the one unique key in the program.

DATA: con_log_guid TYPE guid_16.

CALL FUNCTION 'GUID_CREATE'

IMPORTING

ev_guid_16 = con_log_guid.

WRITE con_log_guid .

Try this example it is generating a 16number id.

3 REPLIES 3

Former Member
0 Kudos

This function returns the system id in 3 forms one in X(Hex form), one in Char (length 22) and the other in Char(length 32).

Former Member
0 Kudos

Hi!

This function module is used to generate a so-called Global Unique Identifier.

You can use it to get a worldwide unique key for arbitrary purposes like e.g. internal key of a table entry/business object or internal key of shared memory objects (EXPORT/IMPORT MEMORY) or unique key for Server-Side Cookies and so on.

This function is also very useful when exchanging data with other SAP systems, ensuring that you use a unique and distiinct key (avoiding key conflicts with other SAP systems).

Hope this helps!

Regards,

Volker

Former Member
0 Kudos

Hello,

Guid for unique identification assigned list

It think it will generate the one unique key in the program.

DATA: con_log_guid TYPE guid_16.

CALL FUNCTION 'GUID_CREATE'

IMPORTING

ev_guid_16 = con_log_guid.

WRITE con_log_guid .

Try this example it is generating a 16number id.