<?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 How to replace a variable in SO10 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094307#M1507561</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;I need to replace a variable &amp;amp;data&amp;amp; in SO10 to his value but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the FM 'TEXT_SYMBOL_REPLACE' to replace the words in the SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the transaction SO10, we have &amp;amp;eric&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_text TYPE STANDARD TABLE OF tline.&lt;/P&gt;&lt;P&gt;data : eric type char30 value 'Test'.&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;        object    = 'TEXT'&lt;/P&gt;&lt;P&gt;        id        = 'ST'&lt;/P&gt;&lt;P&gt;        name      = 'EMAIL'&lt;/P&gt;&lt;P&gt;        language  = sy-langu&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        header    = header&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines     = lines&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&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;      header = header&lt;/P&gt;&lt;P&gt;      program = sy-repid&lt;/P&gt;&lt;P&gt;      REPLACE_TEXT = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines  = lines.&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;Shushu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:42 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:46 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:46 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jul 2010 12:41:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-06T12:41:41Z</dc:date>
    <item>
      <title>How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094307#M1507561</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;I need to replace a variable &amp;amp;data&amp;amp; in SO10 to his value but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the FM 'TEXT_SYMBOL_REPLACE' to replace the words in the SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the transaction SO10, we have &amp;amp;eric&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_text TYPE STANDARD TABLE OF tline.&lt;/P&gt;&lt;P&gt;data : eric type char30 value 'Test'.&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;        object    = 'TEXT'&lt;/P&gt;&lt;P&gt;        id        = 'ST'&lt;/P&gt;&lt;P&gt;        name      = 'EMAIL'&lt;/P&gt;&lt;P&gt;        language  = sy-langu&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        header    = header&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines     = lines&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&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;      header = header&lt;/P&gt;&lt;P&gt;      program = sy-repid&lt;/P&gt;&lt;P&gt;      REPLACE_TEXT = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines  = lines.&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;Shushu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:42 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:46 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:46 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 2:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 12:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094307#M1507561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094308#M1507562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPLACE keyword can be used with the TABLE Itab addition...to find and replace the value inside the table.  Perhaps that would work better for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 12:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094308#M1507562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T12:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094309#M1507563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i am new in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be more explicit, please? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shushu93 on Jul 6, 2010 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 13:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094309#M1507563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T13:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094310#M1507564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;type 'replace' in ABAP editor, put your cursor on that and press F1...you'll find the replace keyword documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 13:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094310#M1507564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094311#M1507565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok  thanks.&lt;/P&gt;&lt;P&gt;However, I know that i can do a loop to change the values of the table line &lt;/P&gt;&lt;P&gt;but I prefer to use the FM TEXT_SYMBOL_REPLACE to replace the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to use it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 13:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094311#M1507565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T13:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094312#M1507566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can Somebody help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 13:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094312#M1507566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094313#M1507567</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;I threw this code together quickly for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
REPORT  ZFM_TEST.

DATA: ls_head TYPE thead,
      lt_lines TYPE STANDARD TABLE OF tline,
      ls_lines TYPE tline,
      l_total_lines TYPE i.

CALL FUNCTION 'READ_TEXT'
  EXPORTING
    ID                      = 'ST'
    LANGUAGE                = 'E'
    NAME                    = 'ZTEXT'
    OBJECT                  = 'TEXT'
  IMPORTING
    HEADER                  = ls_head
  TABLES
    LINES                   = lt_lines
  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 = 0.

  LOOP AT lt_lines INTO ls_lines.

    Write: 'Unformatted:', ls_lines-tdline.

  ENDLOOP.

  DESCRIBE TABLE lt_lines LINES l_total_lines.

  CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
    EXPORTING
      endline = l_total_lines
      header  = ls_head
    TABLES
      lines   = lt_lines.

  IF SY-SUBRC = 0.

    LOOP AT lt_lines INTO ls_lines.

      Write:/ 'Formatted:', ls_lines-tdline.

    ENDLOOP.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 15:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094313#M1507567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a variable in SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094314#M1507568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 15:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-a-variable-in-so10/m-p/7094314#M1507568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-06T15:20:35Z</dc:date>
    </item>
  </channel>
</rss>

