2020 Mar 01 3:39 PM
Hello,
I would like to use ADT links to class methods in the technical documentation of a program.
When I use the normal function to generate the ADT links (right click on the method in the Project Explorer => Share Link) then the link contains the current start line and the end line of the method declaration.
This means if the code changes then the link will be wrong.
Is there a possibility to generate a relative link to a method (a link that contains the method name instead of the source code position).
The best would be if I could have to different links. One for the method declaration and the other one for the implementation of it.
Best regards
Frank
2020 Mar 04 1:41 PM
Hi Frank,
That's a hidden feature 🙂
Try the following:
adt://<SID>/sap/bc/adt/oo/classes/cl_ci_test_field_ext/source/main#type=CLAS/OM;name=IF_CI_TEST~QUERY_ATTRIBUTES
Unfortunately there is no generator for these links.
Regards,
Thomas.
2020 Mar 04 1:41 PM
Hi Frank,
That's a hidden feature 🙂
Try the following:
adt://<SID>/sap/bc/adt/oo/classes/cl_ci_test_field_ext/source/main#type=CLAS/OM;name=IF_CI_TEST~QUERY_ATTRIBUTES
Unfortunately there is no generator for these links.
Regards,
Thomas.
2020 Mar 04 1:57 PM
Hi Thomas,
thank you very much for the link. It works fine.
Is there also a link available to jump to the declaration of the method?
Is it planned to add such a generator (for example in the project explorer)?
Best regards
Frank
2020 Aug 13 11:36 AM
Just stumbled on this answer by chance.
Is there also a way to specify the client in the URL too? I have abapGit set up to open all links in ADT which uses the adt:// URL for this. But since I have multiple projects for the same system in ADT, just with different clients, I always get a popup that asks which project to use. The popup does not come up if there is only one project for that SID.
2020 Aug 13 4:40 PM
That's weird as development objects are always client independent.
2021 Nov 02 10:17 AM
Too bad relative links aren't possible. They are more relevant than absolute links in my opinion.
2021 Nov 02 4:57 PM
Hi,
when you are using ABAP Doc as technical documentation you can use Links to development objects within ABAP Doc.
This looks like the following: {@link cl_abap_browser.METH:show_html}.
Regards,
Thomas.
2025 Feb 13 12:34 PM
Hi,
if you install ABAPGit, there comes a class (ZCL_ABAPGIT_ADT_LINK) and method (GENERATE), which exactly implements this pattern (Thomas mentioned).
Best regards
Stefan