04-23-2021 11:13 AM
In ADT/Eclipse, to navigate to an object, you need its name, type and URI.
So for class /NAMESPACE/CL_MYCLASS, I need:
Now, I can construct the URI from the name and type using string operations, but I wondered if anyone is aware of a simpler way. I need it for function modules, function groups, programs and includes as well.
I'm looking for either a backend class or function module, or some class/method in a com.sap.adt package.
05-04-2021 8:53 AM
Hi Matthew,
yes, we do not recommend building those URIs manually because they might change in the future. Please use the official URI mapper API.
data(uri) = cl_adt_tools_core_factory=>get_instance( )->get_uri_mapper( )->get_adt_object_ref_uri( name = 'sadt_rest_rfc_endpoint'type = conv #( 'FUGR' ) ).
Hope this helps.
Regards,
Thomas