<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: READ_TEXT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622436#M602363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the doc and declare the parameters accordingly and fetch the data into Internal table and display&lt;/P&gt;&lt;P&gt;READ_TEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT provides a text for the application program in the specified work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;OBJECT = ?...&lt;/P&gt;&lt;P&gt;NAME = ?...&lt;/P&gt;&lt;P&gt;ID = ?...&lt;/P&gt;&lt;P&gt;LANGUAGE = ?...&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;P&gt;IMPORTING HEADER =&lt;/P&gt;&lt;P&gt;TABLES LINES = ?...&lt;/P&gt;&lt;P&gt;EXCEPTIONS ID =&lt;/P&gt;&lt;P&gt;LANGUAGE =&lt;/P&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;P&gt;NOT_FOUND =&lt;/P&gt;&lt;P&gt;OBJECT =&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK =&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export parameters:&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: SY-MANDT&lt;/P&gt;&lt;P&gt;Default value: SY-MANDT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT&lt;/P&gt;&lt;P&gt;Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDOBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt;Enter the language key of the text module. The system accepts only languages that are defined in table T002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDSPRAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE&lt;/P&gt;&lt;P&gt;If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value '0' indicates that you do not want to read the text from the archive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: SY-TABIX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters:&lt;/P&gt;&lt;P&gt;HEADER&lt;/P&gt;&lt;P&gt;If the system finds the desired text, it returns the text header in this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: THEAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINES&lt;/P&gt;&lt;P&gt;The table contains all text lines that belong to the text read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: TLINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions: &lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt;The parameter LANGUAGE contains a language key that does not exist in table T002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field contains only blanks.&lt;/P&gt;&lt;P&gt;The field contains the invalid characters &amp;#145;*&amp;#146; or &amp;#145;,&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT&lt;/P&gt;&lt;P&gt;The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT_FOUND&lt;/P&gt;&lt;P&gt;The system did not find the specified text module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK&lt;/P&gt;&lt;P&gt;The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_ TO_ARCHIVE&lt;/P&gt;&lt;P&gt;The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 08:43:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T08:43:59Z</dc:date>
    <item>
      <title>READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622434#M602361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i Use READ_TEXT to read multiple rows of text from a Delivery documents TEXT field? If yes please let me know how is that done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ketki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622434#M602361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T08:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622435#M602362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes u can use check this sample report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; *&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZREADTEXTTEST                                               *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZREADTEXTTEST                           .



tables: ekpo,MAKT.
TYPE-POOLS: slis.
 DATA: thread LIKE thead.
 DATA: l_index LIKE sy-tabix.


DATA: BEGIN OF INT_OUT OCCURS 0,
        MATNR LIKE  EKPO-MATNR,
        MAKTX LIKE MAKT-MAKTX,
        TDLINE LIKE TLINE-TDLINE,
        WERKS LIKE EKPO-WERKS,
      END OF INT_OUT.
DATA: BEGIN OF INT_OUT_new OCCURS 0,
        MATNR LIKE  MAKT-MATNR,
        MAKTX LIKE MAKT-MAKTX,
        TDLINE LIKE TLINE-TDLINE,
        tline like tline occurs 0,
        WERKS LIKE EKPO-WERKS,
      END OF INT_OUT_new.




DATA: it_tlines  LIKE tline OCCURS 10 WITH HEADER LINE.

**************************
****ALV list definintion
*************************
DATA: ws_cat TYPE slis_fieldcat_alv ,
      int_cat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
      g_custom_container TYPE REF TO cl_gui_custom_container.




*****************
*selection-screen
*****************




SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 25(20) text-001.
**PARAMETERS:  S_MATNR LIKE MAKT-MATNR obligatory.
*
SELECT-OPTIONS: S_MATNR FOR MAKT-MATNR  .
SELECTION-SCREEN END OF LINE.




*SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 25(20) text-002.
**PARAMETERS:p_ebeln LIKE ekko-ebeln obligatory.
*SELECT-OPTIONS: S_WERKS  FOR EKPO-WERKS OBLIGATORY.
*SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b1.


START-OF-SELECTION.
  PERFORM get_data.
*  PERFORM field_catalog.
*  PERFORM display_data.

END-OF-SELECTION.
*FORM GET_DATA.


form get_data.




 DATA: l_index LIKE sy-tabix.

*SELECT
*      a~matnr
*      a~werks
*      b~maktx FROM ekpo AS a
*              INNER JOIN makt AS b
*              ON b~matnr = a~matnr
*              INTO CORRESPONDING FIELDS OF TABLE int_out
*              WHERE
**              a~matnr = s_matnr and
*              a~werks IN s_werks.



*To Fetch Data From Makt.

SELECT MATNR MAKTX FROM MAKT INTO CORRESPONDING FIELDS OF TABLE
int_out WHERE MAKT~MATNR IN S_MATNR.



LOOP AT int_out.



l_index = sy-tabix.

* read table int_out_new with key matnr = int_out-matnr.

    int_out_new-matnr = int_out-matnr.
    int_out_new-maktx = int_out-maktx.

*
    thread-tdname = int_out-matnr.

CALL FUNCTION 'READ_TEXT'
        EXPORTING
              client = sy-mandt
              id = 'BEST'
              language = sy-langu
              name = thread-tdname
              object = 'MATERIAL'
              TABLES
              lines = it_tlines
        EXCEPTIONS
              id = 1
              language = 2
              name = 3
              not_found = 4
              object = 5
              reference_check = 6
              wrong_access_to_archive = 7
              OTHERS = 8.





loop at it_tlines.


    IF sy-subrc = 0.

        int_out_new-tdline = it_tlines-tdline.
        append int_out_new.
        clear int_out_new.
        clear int_out_new-tdline.

    ENDIF.

endloop.

delete  adjacent  duplicates  from INT_OUT .
append int_out_new.
ENDLOOP.

***MATERIAL NO no
  int_cat-tabname       = 'INT_OUT'.
  int_cat-fieldname     = 'MATNR'.
  int_cat-reptext_ddic  = 'MATERIAL NO'.
  APPEND int_cat .

*material Short Description
  int_cat-tabname       = 'INT_OUT'.
  int_cat-fieldname     = 'MAKTX'.
  int_cat-reptext_ddic  = 'MATERIAL SHORT DESCRIPTION'.
  APPEND int_cat .

** Material Long Description
  int_cat-tabname       = 'INT_OUT'.
  int_cat-fieldname     = 'TDLINE'.
  int_cat-reptext_ddic  = 'MATERIAL LONG DESCRIPTION'.
  int_cat-datatype = 'CHAR'.
  int_cat-outputlen = '100'.

    APPEND int_cat .


  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      i_callback_program = sy-repid
      it_fieldcat        = int_cat[]

    TABLES
      t_outtab           = int_out
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.


   ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarsd&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622435#M602362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622436#M602363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the doc and declare the parameters accordingly and fetch the data into Internal table and display&lt;/P&gt;&lt;P&gt;READ_TEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_TEXT provides a text for the application program in the specified work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;OBJECT = ?...&lt;/P&gt;&lt;P&gt;NAME = ?...&lt;/P&gt;&lt;P&gt;ID = ?...&lt;/P&gt;&lt;P&gt;LANGUAGE = ?...&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;P&gt;IMPORTING HEADER =&lt;/P&gt;&lt;P&gt;TABLES LINES = ?...&lt;/P&gt;&lt;P&gt;EXCEPTIONS ID =&lt;/P&gt;&lt;P&gt;LANGUAGE =&lt;/P&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;P&gt;NOT_FOUND =&lt;/P&gt;&lt;P&gt;OBJECT =&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK =&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export parameters:&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: SY-MANDT&lt;/P&gt;&lt;P&gt;Default value: SY-MANDT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT&lt;/P&gt;&lt;P&gt;Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDOBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt;Enter the language key of the text module. The system accepts only languages that are defined in table T002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: THEAD-TDSPRAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE&lt;/P&gt;&lt;P&gt;If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value '0' indicates that you do not want to read the text from the archive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference field: SY-TABIX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default value: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters:&lt;/P&gt;&lt;P&gt;HEADER&lt;/P&gt;&lt;P&gt;If the system finds the desired text, it returns the text header in this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: THEAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINES&lt;/P&gt;&lt;P&gt;The table contains all text lines that belong to the text read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure: TLINE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions: &lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE&lt;/P&gt;&lt;P&gt;The parameter LANGUAGE contains a language key that does not exist in table T002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field contains only blanks.&lt;/P&gt;&lt;P&gt;The field contains the invalid characters &amp;#145;*&amp;#146; or &amp;#145;,&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT&lt;/P&gt;&lt;P&gt;The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT_FOUND&lt;/P&gt;&lt;P&gt;The system did not find the specified text module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK&lt;/P&gt;&lt;P&gt;The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_ TO_ARCHIVE&lt;/P&gt;&lt;P&gt;The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622436#M602363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T08:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622437#M602364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes you can...You will have to pass the values to that FM go to the header of the text and see the parameter values and pass them to the FM and you will get the text as output.  If you go to the text at the top you will have go to under that you will have header if you go into that you will find the parameters related to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622437#M602364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622438#M602365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can collect the multiple lines in an internal table of type TLINE.&lt;/P&gt;&lt;P&gt;into READ_TEXT function module you have to pass text name text object etc, all those you can find from a standard TCODE where the text is present by going to HEADER details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;reward if a useful answer***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622438#M602365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T08:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: READ_TEXT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622439#M602366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ketki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can use READ_TEXT to read multiple records from text field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: This one is used to read PO texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  client                  = sy-mandt&lt;/P&gt;&lt;P&gt;                  id                      = 'F01'&lt;/P&gt;&lt;P&gt;                  language                = 'E'&lt;/P&gt;&lt;P&gt;                  name                    = v_po "PO no&lt;/P&gt;&lt;P&gt;                  object                  = 'EKKO'&lt;/P&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;                  lines                   = int_po_text&lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  id                      = 1&lt;/P&gt;&lt;P&gt;                  language                = 2&lt;/P&gt;&lt;P&gt;                  name                    = 3&lt;/P&gt;&lt;P&gt;                  not_found               = 4&lt;/P&gt;&lt;P&gt;                  object                  = 5&lt;/P&gt;&lt;P&gt;                  reference_check         = 6&lt;/P&gt;&lt;P&gt;                  wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;                  OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, go to the tcode, give one doc no. and and then, go to the texts.&lt;/P&gt;&lt;P&gt;Double click the text. It will take you to SAPscript part. Then, in menu use -&amp;gt;Goto -&amp;gt;Header, you will get all the parameters to be passed to the FM like id, name, object, etc. The texts (all lines) will be stored in internal table LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Reward points if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 09:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text/m-p/2622439#M602366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T09:09:32Z</dc:date>
    </item>
  </channel>
</rss>

