Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch Full description( Documentation ) of data element through ABAP Program

0 Kudos

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.

1 ACCEPTED SOLUTION

chaouki_akir
Contributor

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).

3 REPLIES 3

chaouki_akir
Contributor

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).

0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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.