<?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: STRING  TO Ti_TAB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297249#M789076</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;&lt;/P&gt;&lt;P&gt;The options of code that you provide to me, they show to me a dump: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL_FUNCTION_CONFLICT_GEN_TYP&lt;/P&gt;&lt;P&gt;  CX_SY_DYN_CALL_ILLEGAL_TYPE   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is by the strig : DATA: v_string TYPE string, since the functions wait for it of type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2008 17:36:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-11T17:36:57Z</dc:date>
    <item>
      <title>STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297244#M789071</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;&lt;/P&gt;&lt;P&gt;I need to pass the content of string to an internal table in fields length 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And like string that I use is too long I require to him later to print, so  that I need to keep it in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 16:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297244#M789071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297245#M789072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if you can use the FM RKD_WORD_WRAP. If not, search in function modules using &lt;STRONG&gt;WORD&lt;/STRONG&gt;WRAP* and you may be able to use one of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 16:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297245#M789072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297246#M789073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what's your requirement ..can you make it more clear please...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 16:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297246#M789073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T16:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297247#M789074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take one of the two approaches given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_string TYPE string,
      v_position TYPE i,
      v_remaining_string TYPE string,
      v_string_length TYPE i.

DATA: BEGIN OF itab OCCURS 0,
        record(255).
DATA: END OF itab.

v_string_length = STRLEN( v_string ).

WHILE v_string_length &amp;gt; 255.

  CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
    EXPORTING
      string                  = v_string
      pos                     = 254
*   LANGU                   = SY-LANGU
   IMPORTING
     string1                 = itab-record
     string2                 = v_remaining_string
*   POS_NEW                 =
   EXCEPTIONS
     string1_too_small       = 1
     string2_too_small       = 2
     pos_not_valid           = 3
     OTHERS                  = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  v_string = v_remaining_string.
  v_string_length = STRLEN( v_string ).
  APPEND itab.
  CLEAR itab.

ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_string TYPE string.

DATA: BEGIN OF itab OCCURS 0,
        record(255).
DATA: END OF itab.

CALL FUNCTION 'RKD_WORD_WRAP'
  EXPORTING
    textline            = v_string
    delimiter           = ' '
    outputlen           = 255
*  IMPORTING
*    out_line1           = ''
*    out_line2           = ''
*    out_line3           = ''
  TABLES
    out_lines           = itab
  EXCEPTIONS
    outputlen_too_large = 1
    OTHERS              = 2.
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 17:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297247#M789074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297248#M789075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK!!   It will use an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String contains this information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zstring =   //2.0 NCAR 253 2007-11-05T17:54:32 789087654312 2007 ingreso Pago en una solaexhibici#n 1223.60 1407.14 GEC681230QC6 GRUPO EMBOTELLADOR  S.A. DE C.V. Minatitlan 10  Miraval Morelia Michoacan Morelos M#xico 62270 FAN962012L30 COMPA##A FLETERA DE LOS CIELOS,S.A. DE C.V. Minatitlan  Morelia  Michoacan MorelosTO DE ENERGETICOS MEXICANOS DE LAS HORAS DE TODOS LOS DIAS DEL A#O 2008 CON TODOS LOS RECURSOSNECESARIOS /61.18/ 1223.60 /IVA 15 183.54 //      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose that they are 457 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I need to keep this information from string in a table, but the field of the table is single of 255 characters, so that,  it keep in several fields until completing the 457 characters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I read  the table and  print this information .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 17:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297248#M789075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297249#M789076</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;&lt;/P&gt;&lt;P&gt;The options of code that you provide to me, they show to me a dump: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL_FUNCTION_CONFLICT_GEN_TYP&lt;/P&gt;&lt;P&gt;  CX_SY_DYN_CALL_ILLEGAL_TYPE   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is by the strig : DATA: v_string TYPE string, since the functions wait for it of type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 17:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297249#M789076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T17:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: STRING  TO Ti_TAB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297250#M789077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a function module that receives a string type variable and splits it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your best option is to assign your string to a char variable and then to pass it to one of the &lt;STRONG&gt;WORD&lt;/STRONG&gt;WRAP* function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your next option is to write your own logic. It is tedious work, but not very hard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 22:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-ti-tab/m-p/3297250#M789077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T22:30:20Z</dc:date>
    </item>
  </channel>
</rss>

