<?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 fm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410337#M537578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go throgh this ans use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the long text can be retrieve using this method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to used the READ_TEXT functions to read the SAP long text.  e.g. Sales Order, Purchase Order Item text etc. &lt;/P&gt;&lt;P&gt;To check your long text header, go into the long text.  Click Goto -&amp;gt; Header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of READ_TEXT functions reading tables PBIM - Independent requirements for material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEXT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: PBIM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stxh, stxl, stxb - trans tables for text &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxit - text on text-ids &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxot - Short texts on text objects &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transaction MD63 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR, &lt;/P&gt;&lt;P&gt;                S_WERKS FOR PBIM-WERKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF HTEXT. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE THEAD. &lt;/P&gt;&lt;P&gt;DATA: END OF HTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF LTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF DTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;DATA:   MATNR LIKE PBIM-MATNR. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF DTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TNAME LIKE THEAD-TDNAME. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM PBIM WHERE WERKS IN S_WERKS. &lt;/P&gt;&lt;P&gt;  MOVE PBIM-BDZEI TO TNAME. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT' &lt;/P&gt;&lt;P&gt;       EXPORTING &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          CLIENT                  = SY-MANDT &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ID                      = 'PB' &lt;/P&gt;&lt;P&gt;          LANGUAGE                = 'E' &lt;/P&gt;&lt;P&gt;          NAME                    = TNAME &lt;/P&gt;&lt;P&gt;          OBJECT                  = 'PBPT' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_HANDLE          = 0 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING &lt;/P&gt;&lt;P&gt;          HEADER                  = HTEXT &lt;/P&gt;&lt;P&gt;     TABLES &lt;/P&gt;&lt;P&gt;          LINES                   = LTEXT &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;  LOOP AT LTEXT. &lt;/P&gt;&lt;P&gt;    IF LTEXT-TDLINE NE ''. &lt;/P&gt;&lt;P&gt;      MOVE LTEXT-TDLINE TO DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;      MOVE PBIM-MATNR TO DTEXT-MATNR. &lt;/P&gt;&lt;P&gt;      APPEND DTEXT. &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;LOOP AT DTEXT. &lt;/P&gt;&lt;P&gt;  WRITE:/ DTEXT-MATNR, DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose of READ_TEXT functuion module and how to get text id value in this scenario(TDID)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In business process, there are so many transactions that take place in every day, like purchase orders, sales orders, delivery, gooodsmovement etc...  SAP provided a feature to maintain some text descriptions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read_Text Function module is used to retrieve the text for a particular objects.   &lt;/P&gt;&lt;P&gt;To find the Text id these are the following steps.  Let us take an example of Billing document Header text.  &lt;/P&gt;&lt;P&gt;1. goto VF03, enter Billing doc Number  &lt;/P&gt;&lt;P&gt;2. from menu&lt;DEL&gt;select Goto&lt;/DEL&gt;&amp;gt;Header--&amp;gt;header Text..... New window will be displayed  &lt;/P&gt;&lt;P&gt;3. select the Header Text. here you can see all the text.  &lt;/P&gt;&lt;P&gt;4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper.  &lt;/P&gt;&lt;P&gt;5. in the Next window you will find Text Name. Text ID, Language. etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2007 05:17:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-28T05:17:56Z</dc:date>
    <item>
      <title>read_text fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410335#M537576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;            I am using read_text fm and i am using the syntax below to capture the text in j1if .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT_ID = '0001'.&lt;/P&gt;&lt;P&gt;*concatenate j_1iexchdr-rdoc j_1iexchdr-ryear into thead-tdname.&lt;/P&gt;&lt;P&gt;  THEAD-TDNAME = temp.&lt;/P&gt;&lt;P&gt;  PERFORM READ_TEXT.&lt;/P&gt;&lt;P&gt;  LOOP AT TLINES.&lt;/P&gt;&lt;P&gt;    IF TLINES-TDLINE NE SPACE.&lt;/P&gt;&lt;P&gt;      J_1IREGSET-J_1IRGDESC = TLINES-TDLINE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM READ_TEXT.&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                      = TEXT_ID&lt;/P&gt;&lt;P&gt;            LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;P&gt;            NAME                    = THEAD-TDNAME&lt;/P&gt;&lt;P&gt;            OBJECT                  = 'J1IF'&lt;/P&gt;&lt;P&gt;            ARCHIVE_HANDLE          = 0&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            HEADER                  = THEAD&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LINES                   = TLINES&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am not getting the text written in that . can anybody give me a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;   magesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410335#M537576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: read_text fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410336#M537577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Magesh,&lt;/P&gt;&lt;P&gt;  Problem might be lying in passing the values. Try to manually pass the value to STXH or corresponding text table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else. Go to the transaction where you write the long text see its header and put those excat values. Check SY-LANGU also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410336#M537577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: read_text fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410337#M537578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go throgh this ans use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the long text can be retrieve using this method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to used the READ_TEXT functions to read the SAP long text.  e.g. Sales Order, Purchase Order Item text etc. &lt;/P&gt;&lt;P&gt;To check your long text header, go into the long text.  Click Goto -&amp;gt; Header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of READ_TEXT functions reading tables PBIM - Independent requirements for material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEXT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: PBIM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;stxh, stxl, stxb - trans tables for text &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxit - text on text-ids &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ttxot - Short texts on text objects &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transaction MD63 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR, &lt;/P&gt;&lt;P&gt;                S_WERKS FOR PBIM-WERKS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF HTEXT. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE THEAD. &lt;/P&gt;&lt;P&gt;DATA: END OF HTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF LTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF DTEXT OCCURS 50. &lt;/P&gt;&lt;P&gt;DATA:   MATNR LIKE PBIM-MATNR. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TLINE. &lt;/P&gt;&lt;P&gt;DATA: END OF DTEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TNAME LIKE THEAD-TDNAME. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM PBIM WHERE WERKS IN S_WERKS. &lt;/P&gt;&lt;P&gt;  MOVE PBIM-BDZEI TO TNAME. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT' &lt;/P&gt;&lt;P&gt;       EXPORTING &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          CLIENT                  = SY-MANDT &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ID                      = 'PB' &lt;/P&gt;&lt;P&gt;          LANGUAGE                = 'E' &lt;/P&gt;&lt;P&gt;          NAME                    = TNAME &lt;/P&gt;&lt;P&gt;          OBJECT                  = 'PBPT' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_HANDLE          = 0 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING &lt;/P&gt;&lt;P&gt;          HEADER                  = HTEXT &lt;/P&gt;&lt;P&gt;     TABLES &lt;/P&gt;&lt;P&gt;          LINES                   = LTEXT &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;  LOOP AT LTEXT. &lt;/P&gt;&lt;P&gt;    IF LTEXT-TDLINE NE ''. &lt;/P&gt;&lt;P&gt;      MOVE LTEXT-TDLINE TO DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;      MOVE PBIM-MATNR TO DTEXT-MATNR. &lt;/P&gt;&lt;P&gt;      APPEND DTEXT. &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;LOOP AT DTEXT. &lt;/P&gt;&lt;P&gt;  WRITE:/ DTEXT-MATNR, DTEXT-TDLINE. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose of READ_TEXT functuion module and how to get text id value in this scenario(TDID)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In business process, there are so many transactions that take place in every day, like purchase orders, sales orders, delivery, gooodsmovement etc...  SAP provided a feature to maintain some text descriptions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read_Text Function module is used to retrieve the text for a particular objects.   &lt;/P&gt;&lt;P&gt;To find the Text id these are the following steps.  Let us take an example of Billing document Header text.  &lt;/P&gt;&lt;P&gt;1. goto VF03, enter Billing doc Number  &lt;/P&gt;&lt;P&gt;2. from menu&lt;DEL&gt;select Goto&lt;/DEL&gt;&amp;gt;Header--&amp;gt;header Text..... New window will be displayed  &lt;/P&gt;&lt;P&gt;3. select the Header Text. here you can see all the text.  &lt;/P&gt;&lt;P&gt;4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper.  &lt;/P&gt;&lt;P&gt;5. in the Next window you will find Text Name. Text ID, Language. etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410337#M537578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: read_text fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410338#M537579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to give THEAD-TDNAME = temp. anf pass 'EN' in some variable and replace sy-langu from that variable. Also see what is the return code in debugging mode to find ou which exception has raised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410338#M537579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: read_text fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410339#M537580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It seems you are not passing ther NAME parameter correctly to the fun module&lt;/P&gt;&lt;P&gt;Double click on the text &lt;/P&gt;&lt;P&gt;will take you to text editor&lt;/P&gt;&lt;P&gt;from menu GOTO-&amp;gt; HEADER&lt;/P&gt;&lt;P&gt;see the parammeters for NAME&amp;lt;ID&amp;lt;OBJECT and LANG&lt;/P&gt;&lt;P&gt;observe the NAME field correctly and notedown it may be the combination of one or two fields&lt;/P&gt;&lt;P&gt;so accordinly you have to pass it&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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>Thu, 28 Jun 2007 06:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2410339#M537580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T06:06:45Z</dc:date>
    </item>
  </channel>
</rss>

