How to use the READ_TEXT function in ABAP.

Question:
Dear SAP Fans,
Can somebody help me. I am not familiar on using the READ_TEXT function in ABAP. Can you explain on how and when to use this function in ABAP? What actually is, I want to develop an ABAP report using a table contains of text records, for example the Purchasing text in the material master. I have no idea at all.
Thanks in advance,
Radik H.
Answer:
Try to debug sap standard program....set a breakpoint where FM READ_TEXT is called.
I've used this for Project Material description, probable for Purchase Order it's similar, but called with different parameters.
I've debugged PROMAN to find the calling parameters.
I post my code, it may help you.
Incho
CONSTANTS:
*For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
           text_id  like thead-tdid     value 'MATK',
           text_obj like thead-tdobject value 'AUFK  '.
data tlines like tline occurs 0 with header line.
data tdname like thead-tdname.
data tdheader like thead.
if not it_proj-ltxsp is initial.
refresh tlines.
        tdname = sy-mandt.
        tdname+3 = it_proj-rsnum.
        tdname+13 = it_proj-rspos.
        tdname+17 = it_proj-rsart.
        call function 'READ_TEXT'
             exporting
                id        = text_id
                language  = it_proj-ltxsp
                name      = tdname
                object    = text_obj
             importing
                header    = tdheader
             tables
                lines     = tlines.
*             exceptions
*                not_found = 01.
Answer:
Dear Mr. Incho,
Thanks for your quick reply.
Hope your example will help me out of my problem.
I will try it for sure.
Best Regards,
Radik H.
Answer:
HI,
in an abap i want to change the standard text, with displaying the line-editor (as in EDIT_TEXT). Which function module do i need to use ?
regards,
Hans
hans.senden@philips.com

More Articles:

Making a call to a Visual Basic application?
Connecting to External Oracle Database.?
Urgent: GENERATE_SUBPOOL_DIR_FULL?
ABAP/4 source code download?
Internally defined Drop down selection for ABAP report?
EXEC SQL and DBCON - external database to MS SQLSERVER?