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 read long text of data elements and function modules?

Former Member
0 Kudos

Hi

If we display a Data Element in SE11 and click the 'Documentation' button, we are able to see its long text. Can we retieve the same long text in an ABAP program through SELECT from some table or through a function module call?

Similarly, for any Function Module, the long texts can be viewed in SE37 for the Import, Export, Changing, Tables and Exceptions parameters and also the Function Module documentation. Can all these long texts be retrieved in an ABAP Program?

Thanks

AV

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use Function Module READ_TEXT to retrive the long text.

Pass below values for parameters

text name - <data element name>

text id - 'TX'.

text object - 'DOKU'.

<b>Reward points for helpful answers</b>

Satish

Message was edited by:

Satish Panakala

Former Member
0 Kudos

Use RFC_FUNCTION_DOCU_GET to get function module documentation and use DOCU_GET and pass ID = 'DE', LANGU = sy-langu and OBJECT = your data element. You can use this same function module to get the documentation of function modules as well. Pass ID = 'FU' and OBJECT = your function module.