Thank you, Rehan, for your reply.
I am afraid this is not the one as I see "This codeunit will be removed once OData V3 is deprecated" in the source code text.
Do you know any other Codeunit which might generate the URL of a specific Sales Document, for example?