I think your question is in fact 2 questions which can be answered separately as they are not related in any manner.
But did you search? You'll find information easily for CL_DD_DOCUMENT.
For TREX, maybe you could use ESH (embedded search) classes.
I think your question is in fact 2 questions which can be answered separately as they are not related in any manner.
But did you search? You'll find information easily for CL_DD_DOCUMENT.
For TREX, maybe you could use ESH (embedded search) classes.