2023 Feb 11 6:31 PM
Hi
I want to fetch full description ( Documentation ) of Data elements through ABAP Program.
Can anyone please help me where they will be stored and how to fetch them
Thanks & Regards,
Sainath M.
2023 Feb 11 10:37 PM
Documentation is stored in tables DOKTL, DOKHL
There is a function module DOCU_GET that can be called (with importing parameter ID = 'DE' for Data Element).
In complement, after calling function DOCU_GET, you can call the function TEXT_INCLUDE_REPLACE (like in function DOCU_PRINT).
2023 Feb 11 10:37 PM
Documentation is stored in tables DOKTL, DOKHL
There is a function module DOCU_GET that can be called (with importing parameter ID = 'DE' for Data Element).
In complement, after calling function DOCU_GET, you can call the function TEXT_INCLUDE_REPLACE (like in function DOCU_PRINT).
2023 Feb 12 4:49 PM
Hi
Thanks for the answer
it is giving correct for few Data elements
For some I am getting like these with empty rows even if documentation is there while checking manually
TD TDLINE
U1 &DEFINITION&
AS
U1 &USE&
AS
U1 &WHAT_TO_DO&
AS
U1 &EXAMPLE&
AS
U1 &DEPENDENCIES&
/: INCLUDE DEMMSTD OBJECT DOKU ID TX LANGUAGE EN
2023 Feb 13 11:55 AM
Did you execute TEXT_INCLUDE_REPLACE to resolve the '/: INCLUDE DEMMSTD OBJECT DOKU ID TX LANGUAGE EN', which contains some text, as you could get with
CALL FUNCTION 'DOCU_GET'
EXPORTING
ID = 'TX'
LANGU = 'E'
OBJECT = 'DEMMSTD'
TYP = 'E'
IMPORTING
HEAD = phead
TABLES
LINE = pline
EXCEPTION
RET_CODE = 1.