<?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: From string to tline in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749112#M324786</link>
    <description>&lt;P&gt;This will work but...&lt;/P&gt;&lt;P&gt;It will mask characters like &amp;amp; to &amp;lt;(&amp;gt;&amp;amp;&amp;lt;)&amp;gt;. So if your requirement is to have text without the masks it could be an issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 14:27:04 GMT</pubDate>
    <dc:creator>ron_drury2</dc:creator>
    <dc:date>2022-09-22T14:27:04Z</dc:date>
    <item>
      <title>From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749102#M324776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function module to convert a string into the tabel TLINE of the function module SAVE_TEXT? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C14W_STRING_TO_TLINE converts a character into tline, but not a field of the type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maggie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 13:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749102#M324776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749103#M324777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you move your string into a very big TYPE C field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: tline type table of tline with header line.
data: str(1000) type c.

str = 'This is the string that we pass to the function module'.

call function 'C14W_STRING_TO_TLINE'
     exporting
          i_string    = str
     tables
          e_tline_tab = tline.


loop at tline.

  write:/ tline.
endloop.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 13:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749103#M324777</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-12T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749104#M324778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Declare a variable of type c and pass that string variable in to that char and pass that to the specified function module ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i.e, data : v_char(100) type c,
                v_str  type string.

    v_char = v_str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 13:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749104#M324778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749105#M324779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, but try FORMAT_TEXTLNES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, you can simply write the logic to split at specific no, of characters and append to a line of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP.&lt;/P&gt;&lt;P&gt; LINE = STRING+M(N).&lt;/P&gt;&lt;P&gt; APPEND LINE.&lt;/P&gt;&lt;P&gt; M = M + N.&lt;/P&gt;&lt;P&gt; --- You just need to take care of the last part of the string so that it doesn't give you a short dump when M goes beyond the length of the string and that is when you exit out of the loop, other wise its a infinite loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 13:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749105#M324779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T13:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749106#M324780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. String----&amp;gt; Internal table (of any kind, of any length)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. use this fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCMS_STRING_TO_FTEXT &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, 12 Dec 2006 13:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749106#M324780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749107#M324781</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 don't know a Function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i alway go this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_line -tdformat = '*'.&lt;/P&gt;&lt;P&gt;ls_line-tdline = gs_data.&lt;/P&gt;&lt;P&gt;i_len = strlen( ls_line-tdline )&lt;/P&gt;&lt;P&gt;while  i_len &amp;gt; 1.&lt;/P&gt;&lt;P&gt;  append ls_line to lt_lines.&lt;/P&gt;&lt;P&gt;  shift gs_data by 132 places.&lt;/P&gt;&lt;P&gt;  ls_line -tdformat = '*'.&lt;/P&gt;&lt;P&gt;  ls_line-tdline = gs_data.&lt;/P&gt;&lt;P&gt;  i_len = strlen( ls_line-tdline )&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br &lt;/P&gt;&lt;P&gt;Werner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 13:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749107#M324781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749108#M324782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help so far, but I want to keep the layout of the text, so just splitting the text at a certain length into a character is not good enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg if my text looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt; - text 1&lt;/P&gt;&lt;P&gt; - text 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - text 3&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may not have as result "- text 1 - text 2    - text 3'.&lt;/P&gt;&lt;P&gt;I don't know how to detect a new begin of line when splitting the string into different characterfields in order to supply my tline table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 14:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749108#M324782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T14:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749109#M324783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function VB_CP_CONVERT_STRING_2_ITF is what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 17:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749109#M324783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-13T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749110#M324784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO Tim's answer (VB_CP_CONVERT_STRING_2_ITF) is the better answer because C14W_STRING_TO_TLINE does not produce lines formatted with * but keeps newlines inside single table lines so you get ## appearing. Also, Tim's function accepts a string directly - double bonus!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 06:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749110#M324784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-22T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749111#M324785</link>
      <description>&lt;P&gt;Here's a good one - CONVERT_STREAM_TO_ITF_TEXT&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 07:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749111#M324785</guid>
      <dc:creator>former_member552574</dc:creator>
      <dc:date>2020-04-07T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: From string to tline</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749112#M324786</link>
      <description>&lt;P&gt;This will work but...&lt;/P&gt;&lt;P&gt;It will mask characters like &amp;amp; to &amp;lt;(&amp;gt;&amp;amp;&amp;lt;)&amp;gt;. So if your requirement is to have text without the masks it could be an issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 14:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-string-to-tline/m-p/1749112#M324786</guid>
      <dc:creator>ron_drury2</dc:creator>
      <dc:date>2022-09-22T14:27:04Z</dc:date>
    </item>
  </channel>
</rss>

