<?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: hi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835669#M663950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vassu,&lt;/P&gt;&lt;P&gt;               in a simple word, if u want to read the text element from FM , then go to SE37, open the FM then menu Goto-&amp;gt; Text element, &lt;/P&gt;&lt;P&gt;for report / include program.... go to the SE38, open that report.-- GOTO -&amp;gt; text element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with in the code. we will put values in goto-&amp;gt; text element-&amp;gt; text symbol...&lt;/P&gt;&lt;P&gt;put the no  in the first row 001and  text.&lt;/P&gt;&lt;P&gt;get with the program like : write 'this is ', text-001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or prefix the "SAPL" after then the name of program/ f group and open it in SE38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give point if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2007 09:55:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-06T09:55:30Z</dc:date>
    <item>
      <title>hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835667#M663948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can any one tell how can we read the text elements in functionmodules,dataelements,functiongroups etc., as we have a query &lt;/P&gt;&lt;P&gt; to read the text elements in the program&lt;/P&gt;&lt;P&gt;         Read textpool program into itab language sy-langu.&lt;/P&gt;&lt;P&gt; thnks,&lt;/P&gt;&lt;P&gt;Vaasu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 07:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835667#M663948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835668#M663949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In SE37 give your FM Name ---&amp;gt; Display.&lt;/P&gt;&lt;P&gt;2. Goto -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Text Elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text elements allow you to store texts without hard-coding them in your program. You can maintain text elements outside the program in which they are used (choose Goto &amp;amp;#8594; Text elements in the Editor). They are particularly important for texts in applications that will be translated into other languages. &lt;/P&gt;&lt;P&gt;All programs (including include program) have a title. Other text elemen are assigned to the associated main program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP has the following kinds of text element: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program title &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List heading &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column heading &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection texts (for texts belonging to selection criteria and program parameters) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text symbols (constant texts) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The construction of text elements is defined by the structure TEXTPOOL. It contains the following fields: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID: &lt;/P&gt;&lt;P&gt;A single character, representing the text element type. You can use the following values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R - Program title &lt;/P&gt;&lt;P&gt;T - List heading &lt;/P&gt;&lt;P&gt;H - Column heading &lt;/P&gt;&lt;P&gt;S - Selection text &lt;/P&gt;&lt;P&gt;I - Text symbol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEY: &lt;/P&gt;&lt;P&gt;Key field, which may contain the following values, depending on the type of the text element: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H - Number of a row with columns &lt;/P&gt;&lt;P&gt;-headings (001 - 004) &lt;/P&gt;&lt;P&gt;S - max. 8 character name of a selection &lt;/P&gt;&lt;P&gt;criterion or program parameter &lt;/P&gt;&lt;P&gt;I - 3 character number for a text symbol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field is empty for program titles and list headings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENTRY: &lt;/P&gt;&lt;P&gt;Text of the text element (maximum 255 characters) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LENGTH: &lt;/P&gt;&lt;P&gt;Length of the text &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;The following table displays some typical values for text elements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID KEY ENTRY LENGTH &lt;/P&gt;&lt;P&gt;H 001 Name Age 10 &lt;/P&gt;&lt;P&gt;I 100 Tax 10 &lt;/P&gt;&lt;P&gt;R , Test program 12 &lt;/P&gt;&lt;P&gt;S CUST Customer 8 &lt;/P&gt;&lt;P&gt;T , Sales 10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;LENGTH determines the total available length for the text. If the text is to be translated into other languages, you should choose a value of LENGTH that is greater than the length required in the original language, to allow for translations that are longer than the original language version. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can address text elements in two ways, either using TEXT-xxx or using '...'(xxx). Here, xxx stands for the number, and ... for the text of the text symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first form requires that there is already a text for number xxx. If there is not, the output is empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second form improves the readability of the program. The text in inverted commas should correspond to the text stored under the text symbol. If it does not, the system uses the text stored for the text symbol. Exception: If there is no text saved under number xxx, the text in inverted commas is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Text symbol number 001 has the text 'Please enter your name'. The following commands: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / TEXT-001, &lt;/P&gt;&lt;P&gt;/ 'Please enter your name'(001), &lt;/P&gt;&lt;P&gt;/ 'What is your name?'(001). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all have the same output: "Please enter your name". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can compare the texts used in the program with the texts stored as text symbols by choosing "Goto &amp;amp;#8594; Text elements &amp;amp;#8594; Compare text symbols" in the Editor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set a LENGTH for the text element that is longer than the text itself, this is interpreted as though the text had trailing spaces up to the specified LENGTH. This means that if you use the notation '...'(xxx), the text between the inverted commas must have trailing zeros up to the length LENGTH. Otherwise, the text stored under the text symbol will not correspond with the text in inverted commas (see note 2). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Suppose text symbol number 036 has the contents 'Name', and length 10. The following statement: folgende Befehl &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / SY-VLINE, TEXT-036, SY-VLINE, &lt;/P&gt;&lt;P&gt;/ SY-VLINE, 'Tax '(036), SY-VLINE, &lt;/P&gt;&lt;P&gt;/ SY-VLINE, 'Tax'(036), SY-VLINE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would then output "| Tax |" three times. In particular, in the third line, the text symbol number 036 is output in length 10, and not the three-character text "Tax". If you compare the text elements (see note 2), the text symbols in the second and third lines are flagged as being different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not use text symbols in subroutines that have more than one main program, since this leads to redundant text and unnecessary translation. &lt;/P&gt;&lt;P&gt;Instead, you should store these portions of code in subroutine pools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 08:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835668#M663949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835669#M663950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vassu,&lt;/P&gt;&lt;P&gt;               in a simple word, if u want to read the text element from FM , then go to SE37, open the FM then menu Goto-&amp;gt; Text element, &lt;/P&gt;&lt;P&gt;for report / include program.... go to the SE38, open that report.-- GOTO -&amp;gt; text element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with in the code. we will put values in goto-&amp;gt; text element-&amp;gt; text symbol...&lt;/P&gt;&lt;P&gt;put the no  in the first row 001and  text.&lt;/P&gt;&lt;P&gt;get with the program like : write 'this is ', text-001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or prefix the "SAPL" after then the name of program/ f group and open it in SE38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give point if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 09:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835669#M663950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T09:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835670#M663951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for u r answer but i didn't get the stuff i wanted my question is how to read those text elements from function module when writing a program in abap editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vaasu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835670#M663951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835671#M663952</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;It is used to fetch the Long Text details or &lt;/P&gt;&lt;P&gt;Header and Items texts of a application document&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;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2835671#M663952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:58:19Z</dc:date>
    </item>
  </channel>
</rss>

