Skip to Content
3
Apr 23, 2021 at 10:13 AM

Determining URI for a backend ABAP object

546 Views Last edit Apr 23, 2021 at 10:37 AM 2 rev

In ADT/Eclipse, to navigate to an object, you need its name, type and URI.

So for class /NAMESPACE/CL_MYCLASS, I need:

  1. Name: /NAMESPACE/CL_MYCLASS
  2. Type: CLAS/OC
  3. URI: /sap/bc/adt/oo/classes/%2fnamespace%2fcl_myclass/source/main

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.