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 find GUID/OID of a persistent object

joshua_jebamani
Explorer
0 Kudos

Hi,

I am creating and storing a persistent class object.

I use the agent class ZCA_* method CREATE_PERSISTENT to do this.

Once i fill in the necessary data and execute COMMIT WORK, the data is saved to the DB table.

But how do i get the GUID of the object i just created inside my program? I currently have access to ZCL* and ZCA* objects.

I need this GUID, so i can store this for reference in another table. Saying that a for this particular transactions, this object has been generated. So, i can retrieve and process/display it later.

1 ACCEPTED SOLUTION

joshua_jebamani
Explorer
0 Kudos

Found it.

Use the below method of the Agent class.

*agent->if_os_ca_service~get_oid_by_ref

1 REPLY 1

joshua_jebamani
Explorer
0 Kudos

Found it.

Use the below method of the Agent class.

*agent->if_os_ca_service~get_oid_by_ref