<?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: Convert text string to table and include wordwrap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119330#M1187315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try class CL_SWF_UTL_CONVERT_XSTRING method TABLE_TO_XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_swf_utl_convert_xstring=&amp;gt;table_to_xstring&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_table = my_internal_table&lt;/P&gt;&lt;P&gt;i_size = size_of_my_internal_table&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;r_stream = revceiving_string&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;invalid_input = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Click answered if your purpose is solved&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 04:05:10 GMT</pubDate>
    <dc:creator>koolspy_ultimate</dc:creator>
    <dc:date>2011-05-16T04:05:10Z</dc:date>
    <item>
      <title>Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119324#M1187309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an abap class that will convert a string field into a table that will include wordwrap ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 16:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119324#M1187309</guid>
      <dc:creator>former_member800454</dc:creator>
      <dc:date>2009-02-06T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119325#M1187310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'RKD_WORD_WRAP'
      EXPORTING
        textline            = input_string
        delimiter           = ' '
        outputlen           = 100
      TABLES
        out_lines           = output_itab
      EXCEPTIONS
        outputlen_too_large = 1
        OTHERS              = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 18:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119325#M1187310</guid>
      <dc:creator>aaron_morden2</dc:creator>
      <dc:date>2009-02-06T18:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119326#M1187311</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;You can use class CL_GUI_TEXTEDIT method TRANSFORM_STRING_TO_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 21:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119326#M1187311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T21:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119327#M1187312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CL_GUI_TEXTEDIT=&amp;gt;TRANSFORM_STRING_TO_TABLE is a protected method, so can't be used outside of a class inherited from CL_GUI_TEXTEDIT.  Did you actually &lt;EM&gt;try the code out&lt;/EM&gt; before suggesting it, or are you just fishing for forum points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 15:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119327#M1187312</guid>
      <dc:creator>alex_dunbar</dc:creator>
      <dc:date>2011-05-12T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119328#M1187313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If he did, then he stopped more than two years ago &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, thanks for the clarification, and keep challenging the more recent points chasers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 15:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119328#M1187313</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-12T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119329#M1187314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try class CL_SWF_UTL_CONVERT_XSTRING. The methods in it are named with XSTRING, but also work with type STRING as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 17:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119329#M1187314</guid>
      <dc:creator>Dorian</dc:creator>
      <dc:date>2011-05-12T17:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119330#M1187315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try class CL_SWF_UTL_CONVERT_XSTRING method TABLE_TO_XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_swf_utl_convert_xstring=&amp;gt;table_to_xstring&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_table = my_internal_table&lt;/P&gt;&lt;P&gt;i_size = size_of_my_internal_table&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;r_stream = revceiving_string&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;invalid_input = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Click answered if your purpose is solved&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 04:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119330#M1187315</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-05-16T04:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119331#M1187316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use method '/SAPSLL/TEXT_TABLE_TO_STRING' to convert text lines to string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*convert text lines to string&lt;/P&gt;&lt;P&gt;data: lv_string type string.&lt;/P&gt;&lt;P&gt;clear lv_string.&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPSLL/TEXT_TABLE_TO_STRING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IT_TLINES          = lt_lines&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   EV_TXTSTRING       = lv_string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Covnert String to Text Lines, use -  '/SAPSLL/TEXT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Convert text lines to string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;     CALL FUNCTION '/SAPSLL/TEXT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         IV_TXTSTRING       = ls_extension-value&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ET_TLINES          = lt_lines&lt;/P&gt;&lt;P&gt;               .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 20:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119331#M1187316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T20:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert text string to table and include wordwrap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119332#M1187317</link>
      <description>&lt;P&gt;Just thought I would share this since my google search landed me here.&lt;/P&gt;&lt;P&gt;I was trying to pass a string from a UI5 app through the Gateway server into an RFC to result in being header text on a sales order and needed to go from string -&amp;gt; bapisdtext_t table&lt;/P&gt;&lt;P&gt;This method converts a string to the ITF format of TLINE which is the TDFORMAT and TLINE segment. The TDFORMAT contains an '*' when a new line exists but leaves it blank when the wordwrap happens.&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;After reading the above, I found cl_cnv_mbt_utils=&amp;gt;convert_string_to_table&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM %string_to_bapisdtext USING text_id      TYPE tdid&lt;BR /&gt;                                 input_string TYPE string&lt;BR /&gt;                        CHANGING bapi_text    TYPE bapisdtext_t.&lt;BR /&gt;&lt;BR /&gt;  DATA(tline_table) = cl_cnv_mbt_utils=&amp;gt;convert_string_to_table( iv_string = input_string ).&lt;BR /&gt;&lt;BR /&gt;  LOOP AT tline_table ASSIGNING FIELD-SYMBOL(&amp;lt;tline&amp;gt;).&lt;BR /&gt;    APPEND INITIAL LINE TO bapi_text ASSIGNING FIELD-SYMBOL(&amp;lt;bapi&amp;gt;).&lt;BR /&gt;    &amp;lt;bapi&amp;gt;-text_id    = text_id.&lt;BR /&gt;    &amp;lt;bapi&amp;gt;-langu      = sy-langu.&lt;BR /&gt;    &amp;lt;bapi&amp;gt;-format_col = &amp;lt;tline&amp;gt;-tdformat.&lt;BR /&gt;    &amp;lt;bapi&amp;gt;-text_line  = &amp;lt;tline&amp;gt;-tdline.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2022 16:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-text-string-to-table-and-include-wordwrap/m-p/5119332#M1187317</guid>
      <dc:creator>ray_mannion</dc:creator>
      <dc:date>2022-05-12T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

