<?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: FM READ_TEXT export Lines to a string variable in smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450605#M13722</link>
    <description>&lt;P&gt;What doesn't? Where are you typing this? What version of ABAP are you running? Are you aware that new syntax is often being available and sometimes what's posted here won't work on your system if it's older? And that then you need to do a little research to figure out how to retrofit an answer?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 15:48:42 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2017-07-24T15:48:42Z</dc:date>
    <item>
      <title>FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450585#M13702</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;Can someone tell me how to pass the LINES table to a variable string but each line of the table to each line of the string variable.&lt;/P&gt;
  &lt;P&gt;Namely, I am getting from the FM the table LINES which has 3 lines:&lt;/P&gt;
  &lt;P&gt;1st line: ABC, 2nd line: DEF and 3rd line: HIK and I want the string variable to show:&lt;/P&gt;
  &lt;P&gt;ABC &lt;/P&gt;
  &lt;P&gt;DEF&lt;/P&gt;
  &lt;P&gt;HIK&lt;/P&gt;
  &lt;P&gt;How can I do this?&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;
  &lt;P&gt;Elias&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450585#M13702</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450586#M13703</link>
      <description>&lt;P&gt;Hi Elias,&lt;/P&gt;
  &lt;P&gt;Do you want to store the lines in a file or you wanted them to display in a report.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Priyanka.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450586#M13703</guid>
      <dc:creator>satyapriyanka_vana</dc:creator>
      <dc:date>2017-07-24T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450587#M13704</link>
      <description>&lt;P&gt;Concatenate the lines of the table into the string SEPARATED BY |\n|.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenstring_templates_separators.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenstring_templates_separators.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450587#M13704</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-07-24T09:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450588#M13705</link>
      <description>&lt;P&gt;This SEPARATED BY |\n| does not work. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450588#M13705</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450589#M13706</link>
      <description>&lt;P&gt;I want to store to a string variable. Here is what I do now:&lt;/P&gt;
  &lt;P&gt;CONCATENATE LINES OF it_bank INTO p_gv_text&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450589#M13706</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T10:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450590#M13707</link>
      <description>&lt;P&gt;I mean, after storing the value into string, you display it as an out put using WRITE statement?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450590#M13707</guid>
      <dc:creator>satyapriyanka_vana</dc:creator>
      <dc:date>2017-07-24T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450591#M13708</link>
      <description>&lt;P&gt;Of course it does.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA itab TYPE TABLE OF string WITH EMPTY KEY.&lt;BR /&gt;itab = VALUE #( ( `aaa` ) ( `bbb` ) ( `ccc` ) ).&lt;BR /&gt;
DATA(sep) = |\n|.&lt;BR /&gt;CONCATENATE LINES OF itab INTO DATA(text) SEPARATED BY sep.&lt;BR /&gt;
cl_demo_output=&amp;gt;display( text ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450591#M13708</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-07-24T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450592#M13709</link>
      <description>&lt;P&gt;Sorry, no I am displaying to a smartform.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450592#M13709</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450593#M13710</link>
      <description>&lt;P&gt;1st off all I would like to thank you for patience, but I am not an expert abaper.&lt;/P&gt;
  &lt;P&gt;What i am doing to a perform is:&lt;/P&gt;
  &lt;P&gt;Declare an itab: DATA: it_bank LIKE TABLE OF tline.&lt;/P&gt;
  &lt;P&gt;Then call FM READ_TEXT, pass the variables that needs and geting its result to the internal table it_bank. This table has 3 lines. Then I am trying to pass these 3 lines in a string variable with the same 3 lines by using the CONCATENATE: CONCATENATE LINES OF it_bank INTO p_gv_text.&lt;/P&gt;
  &lt;P&gt;Finally I am displaying this variable to a smartform.&lt;/P&gt;
  &lt;P&gt;I will be much obliged if someone can help me to dispaly the 3 lines of the table into 3 lines in the string.&lt;/P&gt;
  &lt;P&gt;Unfortunately the 'seperated by cl_abap_char_utilities=&amp;gt;cr_lf' does not work.&lt;/P&gt;
  &lt;P&gt;Again Thanks&lt;/P&gt;
  &lt;P&gt;Elias&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450593#M13710</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450594#M13711</link>
      <description>&lt;P&gt;Hi Elias,&lt;/P&gt;
  &lt;P&gt;the alternative to the solution proposed by &lt;A href="https://answers.sap.com/users/3970/horstkeller.html"&gt;Horst Keller&lt;/A&gt; would be using the ABAP Char Utilities:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CONCATENATE LINES OF itab INTO &amp;lt;YOUR_STRING&amp;gt; SEPARATED BY CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Those constants represent invisible formatting characters.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450594#M13711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-24T10:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450595#M13712</link>
      <description>&lt;P&gt;But why?&lt;/P&gt;
  &lt;P&gt;The string template |\n| replaces usage of the cumbersome &lt;/P&gt;
  &lt;P&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE. The result is the same. See example under &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencl_abap_char_utilities.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencl_abap_char_utilities.htm&lt;/A&gt;&lt;/P&gt;I always wonder why old fashioned ABAP is proposed if there is state-of-the-art ABAP available instead.</description>
      <pubDate>Mon, 24 Jul 2017 11:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450595#M13712</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-07-24T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450596#M13713</link>
      <description>&lt;P&gt;It does not work. It display the special character #:&lt;/P&gt;
  &lt;P&gt;* ABC&lt;STRONG&gt;#&lt;/STRONG&gt;* EFG&lt;STRONG&gt;#&lt;/STRONG&gt;* HIK&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450596#M13713</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T11:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450597#M13714</link>
      <description>&lt;P&gt;So your question was posted wrongly.&lt;/P&gt;
  &lt;P&gt;It should be something like "how to pass text with line feeds to smart forms" ...&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450597#M13714</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-07-24T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450598#M13715</link>
      <description>&lt;P&gt;Hi Horst,&lt;/P&gt;
  &lt;P&gt;just assumed he is working lower Rel. 740 and is not able to use new ABAP syntax &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450598#M13715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-24T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450599#M13716</link>
      <description>&lt;P&gt;Well, not everyone is on the latest version. However, given the reluctance to use hashed or sorted tables, I guess the main reason (once upgrade) is intellectual laziness.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450599#M13716</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-07-24T11:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450600#M13717</link>
      <description>&lt;P&gt;Please be precise. What exactly do you mean by "doesn't work". &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450600#M13717</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-07-24T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450601#M13718</link>
      <description>&lt;P&gt;C'mon, string templates are 7.02.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450601#M13718</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-07-24T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450602#M13719</link>
      <description>&lt;P&gt;HASHED tables are 4.6c (IIRC), and people still aren't using those - what hope for 7.02! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450602#M13719</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-07-24T11:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450603#M13720</link>
      <description>&lt;P&gt;Does not recognize DATA in &lt;STRONG&gt;DATA&lt;/STRONG&gt;(sep) = |\n|. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450603#M13720</guid>
      <dc:creator>ekekakos</dc:creator>
      <dc:date>2017-07-24T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: FM READ_TEXT export Lines to a string variable in smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450604#M13721</link>
      <description>&lt;P&gt;It does - check the Ascii. /n is a non-displayable control character.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-read-text-export-lines-to-a-string-variable-in-smartform/m-p/450604#M13721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-24T11:49:09Z</dc:date>
    </item>
  </channel>
</rss>

