<?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 Function module TEXT_SYMBOL_REPLACE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588173#M264983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to replace text variable from a sapscript document created with SE61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefor I use function module 'TEXT_SYMBOL_REPLACE' in a way described below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TEXT_SYMBOL_REPLACE'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;   ENDLINE                = sy-tabix&lt;/P&gt;&lt;P&gt;    header                 = ls_docu_head&lt;/P&gt;&lt;P&gt;    PROGRAM                = lv_repid&lt;/P&gt;&lt;P&gt;   REPLACE_STANDARD       = 'X'&lt;/P&gt;&lt;P&gt;   REPLACE_TEXT           = 'X'&lt;/P&gt;&lt;P&gt;   STARTLINE              = 1&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    lines                  = lt_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB lt_tline contains the text lines from the sapscript document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; Purchase order &amp;amp;GS_SELDAT-EBELN&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the text will be replaced but not with the right values. After calling the FM the ITAB lt_tline is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following manner I would like to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If have selected some data from table ekko and hold this data in a internal table gt_seldat and the workarea gs_seldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to fullfill the text variable from sapscript document (&amp;amp;GS_SELDAT-EBELN&amp;amp;) with the data from the internal table gt_seldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_repid contains the name of the current calling program where the text should be replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help solving this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cornelius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 12:32:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-26T12:32:40Z</dc:date>
    <item>
      <title>Function module TEXT_SYMBOL_REPLACE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588173#M264983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to replace text variable from a sapscript document created with SE61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefor I use function module 'TEXT_SYMBOL_REPLACE' in a way described below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TEXT_SYMBOL_REPLACE'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;   ENDLINE                = sy-tabix&lt;/P&gt;&lt;P&gt;    header                 = ls_docu_head&lt;/P&gt;&lt;P&gt;    PROGRAM                = lv_repid&lt;/P&gt;&lt;P&gt;   REPLACE_STANDARD       = 'X'&lt;/P&gt;&lt;P&gt;   REPLACE_TEXT           = 'X'&lt;/P&gt;&lt;P&gt;   STARTLINE              = 1&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    lines                  = lt_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB lt_tline contains the text lines from the sapscript document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; Purchase order &amp;amp;GS_SELDAT-EBELN&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the text will be replaced but not with the right values. After calling the FM the ITAB lt_tline is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following manner I would like to have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If have selected some data from table ekko and hold this data in a internal table gt_seldat and the workarea gs_seldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to fullfill the text variable from sapscript document (&amp;amp;GS_SELDAT-EBELN&amp;amp;) with the data from the internal table gt_seldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_repid contains the name of the current calling program where the text should be replaced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help solving this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cornelius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588173#M264983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module TEXT_SYMBOL_REPLACE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588174#M264984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi cornelius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make sure sy-tabix contains&lt;/P&gt;&lt;P&gt;   the last line number of your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. also make sure ls_docu_head&lt;/P&gt;&lt;P&gt;   contains all fields in the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. also, &lt;/P&gt;&lt;P&gt;  your variables which contain the value&lt;/P&gt;&lt;P&gt;  to be replaced in sapscript,&lt;/P&gt;&lt;P&gt;  should be global in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In your case, if it is an internal table,&lt;/P&gt;&lt;P&gt;the HEADER LINE containing the value,&lt;/P&gt;&lt;P&gt;will finally get into the sapscript&lt;/P&gt;&lt;P&gt;at the time of calling this FM&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Rest, the FM functions perfectly well.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588174#M264984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function module TEXT_SYMBOL_REPLACE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588175#M264985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked all points you mentioned but it doesn't works.&lt;/P&gt;&lt;P&gt;I can't find the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me a simple example how to use (to call) the function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the text variable in den sapcript formular is defined in a wrong way? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how the program which is calling the FM replaces the variables in the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Cornelius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 13:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-text-symbol-replace/m-p/1588175#M264985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T13:06:48Z</dc:date>
    </item>
  </channel>
</rss>

