<?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>Question Re: FM READ_TEXT in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972105#M366816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ_TEXT is used to read the "sapscript" text which is stored in transaction SE75 and SO10.   You have standard text which is in SO10 and Text objects which is configured via SE75.  For example,  everywhere you see "long text" in a text editor on a screen, chances are that it is stored as a text object and can be pulled into your programs via the READ_TEXT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2005 11:51:46 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-12T11:51:46Z</dc:date>
    <item>
      <title>FM READ_TEXT</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaq-p/972102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frenz,&lt;/P&gt;&lt;P&gt;      I want to know the use of function module 'READ_TEXT' and way to use that. &lt;/P&gt;&lt;P&gt;Prompt answers will be rewared with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 11:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-read-text/qaq-p/972102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T11:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972103#M366814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this sample code&lt;/P&gt;&lt;P&gt;ABAP READ_TEXT functions to read the SAP Long Text &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;PRE&gt;&lt;CODE&gt;
REPORT ZTEXT . 

TABLES: PBIM. 

* stxh, stxl, stxb - trans tables for text 
* ttxit - text on text-ids 
* ttxot - Short texts on text objects 
* Transaction MD63 
SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR, 
                S_WERKS FOR PBIM-WERKS. 

DATA: BEGIN OF HTEXT. 
        INCLUDE STRUCTURE THEAD. 
DATA: END OF HTEXT. 

DATA: BEGIN OF LTEXT OCCURS 50. 
        INCLUDE STRUCTURE TLINE. 
DATA: END OF LTEXT. 

DATA: BEGIN OF DTEXT OCCURS 50. 
DATA:   MATNR LIKE PBIM-MATNR. 
        INCLUDE STRUCTURE TLINE. 
DATA: END OF DTEXT. 

DATA: TNAME LIKE THEAD-TDNAME. 

SELECT * FROM PBIM WHERE WERKS IN S_WERKS. 
  MOVE PBIM-BDZEI TO TNAME. 
  CALL FUNCTION &amp;lt;b&amp;gt;'READ_TEXT'&amp;lt;/b&amp;gt; 
       EXPORTING 
*           CLIENT                  = SY-MANDT 
          ID                      = 'PB' 
          LANGUAGE                = 'E' 
          NAME                    = TNAME 
          OBJECT                  = 'PBPT' 
*         ARCHIVE_HANDLE          = 0 
     IMPORTING 
          HEADER                  = HTEXT 
     TABLES 
          LINES                   = LTEXT 
     EXCEPTIONS 
          ID                      = 1 
          LANGUAGE                = 2 
          NAME                    = 3 
          NOT_FOUND               = 4 
          OBJECT                  = 5 
          REFERENCE_CHECK         = 6 
          WRONG_ACCESS_TO_ARCHIVE = 7 
          OTHERS                  = 8. 
  LOOP AT LTEXT. 
    IF LTEXT-TDLINE NE ''. 
      MOVE LTEXT-TDLINE TO DTEXT-TDLINE. 
      MOVE PBIM-MATNR TO DTEXT-MATNR. 
      APPEND DTEXT. 
    ENDIF. 
  ENDLOOP. 
ENDSELECT. 
LOOP AT DTEXT. 
  WRITE:/ DTEXT-MATNR, DTEXT-TDLINE. 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.

CALL FUNCTION 'READ_TEXT'
     EXPORTING
*         CLIENT                  = SY-MANDT
          id                      =       "Text ID
          language                =       "Laguage
          name                    =       "Text name
          object                  =       "text object
*         ARCHIVE_HANDLE          = 0
*    IMPORTING
*         HEADER                  =
     tables
          lines                   = IT_TEXTS   "Internal table
*    EXCEPTIONS
*         ID                      = 1
*         LANGUAGE                = 2
*         NAME                    = 3
*         NOT_FOUND               = 4
*         OBJECT                  = 5
*         REFERENCE_CHECK         = 6
*         WRONG_ACCESS_TO_ARCHIVE = 7
*         OTHERS                  = 8
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 11:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972103#M366814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T11:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972104#M366815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;useful for read any SAP long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the input parameters :&lt;/P&gt;&lt;P&gt;Go to the long text in plain page mode and then : GoTo --&amp;gt; Header.&lt;/P&gt;&lt;P&gt;A pop up opens with paramters :&lt;/P&gt;&lt;P&gt;Text ID&lt;/P&gt;&lt;P&gt;Language&lt;/P&gt;&lt;P&gt;Text name&lt;/P&gt;&lt;P&gt;Text object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 11:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972104#M366815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T11:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972105#M366816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ_TEXT is used to read the "sapscript" text which is stored in transaction SE75 and SO10.   You have standard text which is in SO10 and Text objects which is configured via SE75.  For example,  everywhere you see "long text" in a text editor on a screen, chances are that it is stored as a text object and can be pulled into your programs via the READ_TEXT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 11:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972105#M366816</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-12T11:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972106#M366817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FU READ_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SAPscript: Read text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    In order to process text modules in application programs, all&lt;/P&gt;&lt;P&gt;    information about a text module must be transferred to internal work&lt;/P&gt;&lt;P&gt;    areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    A text is read from the text file or text memory with this function&lt;/P&gt;&lt;P&gt;    module. It must be described fully by specifying OBJECT, NAME, ID, and&lt;/P&gt;&lt;P&gt;    LANGUAGE. Generic entries in these parameters are not valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    When header information and text lines have been read successfully, they&lt;/P&gt;&lt;P&gt;    are transferred to the work areas HEADER and LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLIENT&lt;/P&gt;&lt;P&gt;    ID&lt;/P&gt;&lt;P&gt;    LANGUAGE&lt;/P&gt;&lt;P&gt;    NAME&lt;/P&gt;&lt;P&gt;    OBJECT&lt;/P&gt;&lt;P&gt;    ARCHIVE_HANDLE&lt;/P&gt;&lt;P&gt;    LOCAL_CAT&lt;/P&gt;&lt;P&gt;    HEADER&lt;/P&gt;&lt;P&gt;    LINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    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;Function group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    STXD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from teh function module documentation. The rest people have explained in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 11:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-read-text/qaa-p/972106#M366817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T11:57:26Z</dc:date>
    </item>
  </channel>
</rss>

