<?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/2106613#M439692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;PRE&gt;&lt;CODE&gt;

  CALL FUNCTION 'READ_TEXT'
          EXPORTING
               ID                      = TDID
               LANGUAGE                = SY-LANGU
               NAME                    = TDNAME
               OBJECT                  = TDOBJECT
          TABLES
               LINES                   = XTLINES
          EXCEPTIONS
               ID                      = 1
               LANGUAGE                = 2
               NAME                    = 3
               NOT_FOUND               = 4
               OBJECT                  = 5
               REFERENCE_CHECK         = 6
               WRONG_ACCESS_TO_ARCHIVE = 7.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 10:52:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-11T10:52:11Z</dc:date>
    <item>
      <title>Read_Text FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106610#M439689</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;    what is the use of Read_Text Function Module. Pls provide me some sample examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;praveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106610#M439689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:49: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/2106611#M439690</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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ_TEXT  &amp;lt;/b&amp;gt;&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; &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; &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;&lt;/P&gt;&lt;P&gt;OBJECT = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_HANDLE = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING HEADER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES LINES = ?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS ID =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LANGUAGE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOT_FOUND =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFERENCE_CHECK =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export parameters:&lt;/P&gt;&lt;P&gt;&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;&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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt; &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;&lt;/P&gt;&lt;P&gt; &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; 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106611#M439690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:51:31Z</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/2106612#M439691</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;read_text is a function module which can read the standard text by the object key,object id, Object name and language. IT would get the text in an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = business_partner&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = business_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = contract_account&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = contract_account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_thead-tdid = 'FKK'.&lt;/P&gt;&lt;P&gt;wa_thead-tdspras = sy-langu.&lt;/P&gt;&lt;P&gt;CONCATENATE contract_account business_partner INTO wa_thead-tdname.&lt;/P&gt;&lt;P&gt;wa_thead-tdobject = 'FKKVKP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE flag.&lt;/P&gt;&lt;P&gt;WHEN 'R'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = wa_thead-tdid&lt;/P&gt;&lt;P&gt;language = wa_thead-tdspras&lt;/P&gt;&lt;P&gt;name = wa_thead-tdname&lt;/P&gt;&lt;P&gt;object = wa_thead-tdobject&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;header = wa_thead&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = notes&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;WHEN 'I'.&lt;/P&gt;&lt;P&gt;wa_thead-tdfuser = sy-uname.&lt;/P&gt;&lt;P&gt;wa_thead-tdfdate = sy-datum.&lt;/P&gt;&lt;P&gt;wa_thead-tdftime = sy-uzeit.&lt;/P&gt;&lt;P&gt;wa_thead-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;header = wa_thead&lt;/P&gt;&lt;P&gt;insert = 'X'&lt;/P&gt;&lt;P&gt;savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;newheader = wa_thead&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = notes&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;object = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'D'.&lt;/P&gt;&lt;P&gt;REFRESH notes.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;header = wa_thead&lt;/P&gt;&lt;P&gt;savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;newheader = wa_thead&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = notes&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;object = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'M'.&lt;/P&gt;&lt;P&gt;wa_thead-tdluser = sy-uname.&lt;/P&gt;&lt;P&gt;wa_thead-tdldate = sy-datum.&lt;/P&gt;&lt;P&gt;wa_thead-tdltime = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;header = wa_thead&lt;/P&gt;&lt;P&gt;savemode_direct = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;newheader = wa_thead&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = notes&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;object = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106612#M439691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:51:59Z</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/2106613#M439692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;PRE&gt;&lt;CODE&gt;

  CALL FUNCTION 'READ_TEXT'
          EXPORTING
               ID                      = TDID
               LANGUAGE                = SY-LANGU
               NAME                    = TDNAME
               OBJECT                  = TDOBJECT
          TABLES
               LINES                   = XTLINES
          EXCEPTIONS
               ID                      = 1
               LANGUAGE                = 2
               NAME                    = 3
               NOT_FOUND               = 4
               OBJECT                  = 5
               REFERENCE_CHECK         = 6
               WRONG_ACCESS_TO_ARCHIVE = 7.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106613#M439692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:52:11Z</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/2106614#M439693</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 is used to fetch the Long texts from the application documents using OBJECT, ID,NAME and LANG fields.&lt;/P&gt;&lt;P&gt;see the doc&lt;/P&gt;&lt;P&gt;The usage of texts in SAP is very generic and it is used for all entities and documents . For example the texts exist for Vendor master / CUstomer master and in Sales as well as Purchase orders at item and header level .The long texts are used to maintain certain informative texts which the user wants to have and major benefit is that the additional long texts can be provided to the user through functional customising in IMG - SPRO you do not need any ABAP exit or enhancement for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can maintain these texts programatically using the FM :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE_TEXT &lt;/P&gt;&lt;P&gt;SAVE_TEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while you can read the existing texts using the FM ' READ_TEXT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this purpose you can also go thru this blog /people/deepak.bhalla/blog/2005/01/24/storing-and-retreiving-of-texts .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving extract from same below : &lt;/P&gt;&lt;P&gt;Please let me know if you need anything further on this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;There are following ways of storing text in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Text Object and Text ID&lt;/P&gt;&lt;P&gt;2. Using Standard text with placeholders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Text Object and Text ID:&lt;/P&gt;&lt;P&gt;I am assuming that we already have a data in structure required by function module save_text for tables paramenter lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use Transaction SE75 to create Text Object and Text ID.&lt;/P&gt;&lt;P&gt;2. Choose first radio button Text Object and ID's&lt;/P&gt;&lt;P&gt;3. Click at create. It will create Text Object.&lt;/P&gt;&lt;P&gt;4. Create Text ID for Text Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this created Text ID and Text Object can be used to Save and Retreive texts using following function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZSAVE_READ_TEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;Save_read_indicator = 'X'&lt;/P&gt;&lt;P&gt;header = p_header&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = p_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting parameter Save_read_inidcator type char1. default 'X' for Save.&lt;/P&gt;&lt;P&gt;Header should be of type thead&lt;/P&gt;&lt;P&gt;Tables parameter lines should be of type tline.&lt;/P&gt;&lt;P&gt;Header values should be populated as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_header-tdobject = name of the text object created.&lt;/P&gt;&lt;P&gt;p_header-tdname = It can be any Unique name.&lt;/P&gt;&lt;P&gt;p_header-tdid = name of text id created.&lt;/P&gt;&lt;P&gt;p_header-tdspras = sy-langu.&lt;/P&gt;&lt;P&gt;p_header-tdtitle = title of text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table P_lines will contain all data that is to be saved.It may be through Text control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function module save_text as follows to Save text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If save_read_indicator = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT' &lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;header = p_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NEWHEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = p_line&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJECT = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSE.&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 = Same as TDNAME in Save_text&lt;/P&gt;&lt;P&gt;OBJECT = TEXT_OBJECT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = LI_LINE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_FOUND = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJECT = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REFERENCE_CHECK = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using Standard text with placeholders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am assuming that for all placeholders we will have value availble.&lt;/P&gt;&lt;P&gt;1. Maintain standard text with place holder using transaction SO10.&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;Dear &amp;amp;1,&lt;/P&gt;&lt;P&gt;Your purchase requisition &amp;amp;2 was approved on &amp;amp;3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use following following function module to read Standard text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_STDTEXT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = 'ST'&lt;/P&gt;&lt;P&gt;language = sy-langu&lt;/P&gt;&lt;P&gt;name = name of standard text&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USE_AUX_LANGUAGE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USE_THRUCLIENT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LOCAL_CAT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;lines = p_std_text&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LANGUAGE = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NAME = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOT_FOUND = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REFERENCE_CHECK = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 6.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. Use following code to replace Placeholders returned in table p_std_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at p_std_text.&lt;/P&gt;&lt;P&gt;SEARCH p_std_text-tdline FOR '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;1' WITH p_name INTO p_std_text-tdline.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;SEARCH p_std_text-tdline FOR '&amp;amp;2'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;2' WITH p_name INTO p_std_text-tdline.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;SEARCH p_std_text-tdline FOR '&amp;amp;3'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;3' WITH p_name INTO p_std_text-tdline.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY p_std_text.&lt;/P&gt;&lt;P&gt;Endloop&lt;/P&gt;&lt;P&gt;reward if useful&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>Wed, 11 Apr 2007 10:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106614#M439693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:53:24Z</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/2106615#M439694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;here is the sample program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  YTEST12345                                                  *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YTEST12345                              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : head like THEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants : c_dnum like thead-tdname value '1000000146'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_line like tline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_line1 like tline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using '0001' C_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_line1[] = it_line[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z104' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z124' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z127' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z125' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z121' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z122' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z125' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z107' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z102' c_dnum 'VBBK'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using '0001' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using '0004' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z002' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z002' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z003' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z004' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z005' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z006' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z007' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z008' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z009' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_read_text using 'Z010' c_dnum 'VBBP'.&lt;/P&gt;&lt;P&gt;perform sub_save_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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sub_read_text using id like THEAD-TDID&lt;/P&gt;&lt;P&gt;                                 name like thEAD-Tdname&lt;/P&gt;&lt;P&gt;                                 object like THEAD-TDobject.&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                            = id&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = sy-langu&lt;/P&gt;&lt;P&gt;    NAME                          = name&lt;/P&gt;&lt;P&gt;    OBJECT                        = object&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;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   HEADER                        = head&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                         = it_line&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;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'INIT_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ID             = id&lt;/P&gt;&lt;P&gt;    LANGUAGE       = sy-langu&lt;/P&gt;&lt;P&gt;    NAME           = name&lt;/P&gt;&lt;P&gt;    OBJECT         = object&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   HEADER         = head&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES          = it_line&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME           = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT         = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS         = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;form sub_save_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = head&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INSERT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = it_Line1&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;   OBJECT                = 4&lt;/P&gt;&lt;P&gt;   OTHERS                = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          commit work.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106615#M439694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:55:34Z</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/2106616#M439695</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;Just see the following link....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db8d5494511d182b70000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db8d5494511d182b70000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful......&lt;/P&gt;&lt;P&gt;Suresh......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106616#M439695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:56:02Z</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/2106617#M439696</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;  In order to process text modules in application programs, all information about a text module must be transferred to internal work 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 module. It must be described fully by specifying OBJECT, NAME, ID, and 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 are transferred to the work areas HEADER and LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106617#M439696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:58:25Z</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/2106618#M439697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&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;&lt;/P&gt;&lt;P&gt;tables: ekpo,MAKT.&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;DATA: thread LIKE thead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data: P_MATNR1(15) type N.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MAKT OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE MAKT-MATNR,&lt;/P&gt;&lt;P&gt;MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WERKS LIKE EKPO-WERKS,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;END OF INT_MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_EKPO OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE EKPO-MATNR,&lt;/P&gt;&lt;P&gt;WERKS LIKE EKPO-WERKS,&lt;/P&gt;&lt;P&gt;END OF INT_EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_OUT OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE EKPO-MATNR,&lt;/P&gt;&lt;P&gt;MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;WERKS LIKE EKPO-WERKS,&lt;/P&gt;&lt;P&gt;TDLINE LIKE TLINE-TDLINE,&lt;/P&gt;&lt;P&gt;END OF INT_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_tlines LIKE tline OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************&lt;/P&gt;&lt;P&gt;****ALV list definintion&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;DATA: ws_cat TYPE slis_fieldcat_alv ,&lt;/P&gt;&lt;P&gt;int_cat TYPE slis_t_fieldcat_alv WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',&lt;/P&gt;&lt;P&gt;g_custom_container TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;*selection-screen&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP 2.&lt;/P&gt;&lt;P&gt;select-options: s_MATNR for EKPO-MATNR obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_WERKS FOR EKPO-WERKS OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;PERFORM get_data.&lt;/P&gt;&lt;P&gt;PERFORM field_catalog.&lt;/P&gt;&lt;P&gt;PERFORM display_data.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR WERKS FROM EKPO&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;INT_EKPO&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;EKPO~WERKS in s_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort int_ekpo by werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from INT_EKPO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MAKT INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;INT_MAKT&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN INT_EKPO&lt;/P&gt;&lt;P&gt;WHERE MAKT~MATNR = INT_EKPO-MATNR.&lt;/P&gt;&lt;P&gt;&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;LOOP AT INT_EKPO.&lt;/P&gt;&lt;P&gt;thread-tdname = INT_EKPO-MATNR.&lt;/P&gt;&lt;P&gt;thread-tdid = 'BEST'.&lt;/P&gt;&lt;P&gt;thread-tdobject = 'MATERIAL'.&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;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 = thread-tdid&lt;/P&gt;&lt;P&gt;LANGUAGE = sy-langu&lt;/P&gt;&lt;P&gt;NAME = thread-tdname&lt;/P&gt;&lt;P&gt;OBJECT = thread-tdobject&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;LI level="1" type="ul"&gt;&lt;P&gt;LOCAL_CAT = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LINES = it_tlines&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tlines.&lt;/P&gt;&lt;P&gt;read table int_MAKT with key matnr = INT_EKPO-MATNR.&lt;/P&gt;&lt;P&gt;int_OUT-MATNR = INT_EKPO-MATNR.&lt;/P&gt;&lt;P&gt;INT_OUT-MAKTX = INT_MAKT-MAKTX.&lt;/P&gt;&lt;P&gt;int_OUT-MAKTX = int_EKPO-WERKS.&lt;/P&gt;&lt;P&gt;int_OUT-TDLINE = it_tlines-tdline.&lt;/P&gt;&lt;P&gt;APPEND INT_OUT.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;FORM field_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***MATERIAL NO no&lt;/P&gt;&lt;P&gt;int_cat-tabname = 'INT_OUT'.&lt;/P&gt;&lt;P&gt;int_cat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;int_cat-reptext_ddic = 'MATERIAL NO'.&lt;/P&gt;&lt;P&gt;APPEND int_cat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*vender name&lt;/P&gt;&lt;P&gt;int_cat-tabname = 'INT_OUT'.&lt;/P&gt;&lt;P&gt;int_cat-fieldname = 'MAKTX'.&lt;/P&gt;&lt;P&gt;int_cat-reptext_ddic = 'MATERIAL SHORT DESCRIPTION'.&lt;/P&gt;&lt;P&gt;APPEND int_cat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;PO No&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;int_cat-tabname = 'INT_OUT'.&lt;/P&gt;&lt;P&gt;int_cat-fieldname = 'TDLINE'.&lt;/P&gt;&lt;P&gt;int_cat-reptext_ddic = 'MATERIAL LONG DESCRIPTION'.&lt;/P&gt;&lt;P&gt;APPEND int_cat .&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;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form display_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;it_fieldcat = int_cat[]&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = int_out&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;ENDFORM. "display_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106618#M439697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:58:27Z</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/2106619#M439698</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;'READ_TEXT' function is used to read text data at header or item level of a particular order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:ls_head TYPE thead,&lt;/P&gt;&lt;P&gt;     ls_text TYPE tline,&lt;/P&gt;&lt;P&gt;     lt_text TYPE TABLE OF tline,&lt;/P&gt;&lt;P&gt;     lv_ebeln TYPE tdobname,&lt;/P&gt;&lt;P&gt;     lv_object TYPE THEAD-TDOBJECT VALUE 'EKKO',&lt;/P&gt;&lt;P&gt;     lv_id TYPE THEAD-TDID VALUE 'F02',&lt;/P&gt;&lt;P&gt;     lv_form TYPE TDFORM VALUE 'SYSTEM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: ls_head,&lt;/P&gt;&lt;P&gt;              ls_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE ekko-ebeln TO lv_ebeln.&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;      id                      = lv_id&lt;/P&gt;&lt;P&gt;      language                = ekko-spras&lt;/P&gt;&lt;P&gt;      name                    = lv_ebeln&lt;/P&gt;&lt;P&gt;      object                  = lv_object&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      header                  = ls_head&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines                   = lt_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now  lt_text will have the header text of that particular purchase order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106619#M439698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:59:21Z</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/2106620#M439699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: tid like thead-tdid,&lt;/P&gt;&lt;P&gt;tname like thead-tdid,&lt;/P&gt;&lt;P&gt;tobject like thead-tobject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_lines like tline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tid = 'F01'.&lt;/P&gt;&lt;P&gt;tobject = 'EKKO'   (this we have to take that which this tid is there that we come to know from transaction).&lt;/P&gt;&lt;P&gt;tname = g_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call functiion 'READ_TEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CLIENT = SY_MANDT&lt;/P&gt;&lt;P&gt;ID =  TID&lt;/P&gt;&lt;P&gt;LANGUAGE = 'E'&lt;/P&gt;&lt;P&gt;NAME = TNAME&lt;/P&gt;&lt;P&gt;OBJECT = 'TOBJECT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE&lt;/P&gt;&lt;P&gt;LINES = IT_LINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_LINES.&lt;/P&gt;&lt;P&gt;V_HT = IT_LINES-TDLINE.&lt;/P&gt;&lt;P&gt;IF V_HT &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;EXIT.&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;see here v_ht is the variable which is indicating to that text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 11:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-text-fm/m-p/2106620#M439699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T11:10:53Z</dc:date>
    </item>
  </channel>
</rss>

