<?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 table conversion. Howto in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490645#M562129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus. Can someone tell if there is any FM or anybody nows a way to split a table with 1024 chars in each line into a table with 132 in each line without losing data??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk, regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 10:15:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T10:15:00Z</dc:date>
    <item>
      <title>table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490645#M562129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus. Can someone tell if there is any FM or anybody nows a way to split a table with 1024 chars in each line into a table with 132 in each line without losing data??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk, regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 10:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490645#M562129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490646#M562130</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;Try with FM: 'STRING_SPLIT_AT_POSITION'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 10:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490646#M562130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490647#M562131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;C147_STRING_SPLIT_AT_POSITION&lt;/P&gt;&lt;P&gt;STRING_SPLIT&lt;/P&gt;&lt;P&gt;STRING_SPLIT_AT_POSITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these FM's.&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;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 10:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490647#M562131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T10:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490648#M562132</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;STRING_CENTER                  (Obsolete) Centered a string&lt;/P&gt;&lt;P&gt;STRING_CONCATENATE             Concatenates (links) two strings without multibyte handling&lt;/P&gt;&lt;P&gt;STRING_LENGTH                  (Onsolete) Calculate the length of a string&lt;/P&gt;&lt;P&gt;STRING_MOVE_RIGHT              (Obsolete) Shift a string to the right&lt;/P&gt;&lt;P&gt;STRING_REVERSE                 Returns a string in reverse order&lt;/P&gt;&lt;P&gt;STRING_SPLIT                   (Obsolete) Split a string in accordance with a delimiter.&lt;/P&gt;&lt;P&gt;STRING_SPLIT_AT_POSITION       Split a string with a proper position into two parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: text(10) TYPE c VALUE '0123456789',
text1(6) TYPE c,
text2(6) TYPE c.

PARAMETERS position TYPE i.

CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
EXPORTING
string = text
pos = position
IMPORTING
string1 = text1
string2 = text2
EXCEPTIONS
string1_too_small = 1
string2_too_small = 2
pos_not_valid = 3
OTHERS = 4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 10:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490648#M562132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T10:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490649#M562133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;please  see this  link  for  details  explaination of   splitting the data  more that  132  characters into  separate  line &amp;lt;/b&amp;gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://"&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 12:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490649#M562133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T12:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490650#M562134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thk for the repluys guys..&lt;/P&gt;&lt;P&gt;Girish Kumar Loganathan  can you give me agina the url. Its giving me an bad url error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk, Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 13:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490650#M562134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T13:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490651#M562135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi again. Girish Kumar Loganathan i allready seen the link dont borrow with the url.&lt;/P&gt;&lt;P&gt;Thk for the FM guys but my problem its that i have a table where each line has 1024 chars and i want to split each line of that table into 132 line chars to another table without losing information.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk, Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 13:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490651#M562135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490652#M562136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt; begin of ty_tab1&lt;/P&gt;&lt;P&gt; line(1024) type c,&lt;/P&gt;&lt;P&gt;end of ty_tab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ty_tab2&lt;/P&gt;&lt;P&gt; line1(132) type c,&lt;/P&gt;&lt;P&gt;line2(132)type c,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;line8(132) type c,&lt;/P&gt;&lt;P&gt;end of ty_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_tab1 type table of ty_tab1, wa_tab1 type ty_tab1&lt;/P&gt;&lt;P&gt;it_tab2 type table of ty_tab2, wa_tab2 typ ty_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab1 into wa_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate wa_tab1(132) into wa_tab2-line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate wa_tab1+132(132) into wa_tab2-line2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatente  wa_tab+264(132) into wa_tab2-line3 .&lt;/P&gt;&lt;P&gt;concatente  wa_tab+396(132) into wa_tab2-line4 .&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;cancatenate wa_tab1+924(100) into  wa_tab2-line8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_tab2 to it_tab2.&lt;/P&gt;&lt;P&gt;clear: wa_tab2,&lt;/P&gt;&lt;P&gt;        wa_tab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 14:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490652#M562136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: table conversion. Howto</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490653#M562137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FM TEXT_SPLIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the first record of the 1024 length table into a var.&lt;/P&gt;&lt;P&gt;Split it at 132&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    CLEAR ZEILE.
    CALL FUNCTION 'TEXT_SPLIT'
         EXPORTING
              LENGTH = 132
              TEXT   = RESTTEXT
         IMPORTING
              LINE   = ZEILE
              REST   = RESTTEXT
         EXCEPTIONS
              OTHERS = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;append ZEILE to 132 length table&lt;/P&gt;&lt;P&gt;if REST string length is less than 132 and not end of table, append a new record of 1024 to the end &lt;/P&gt;&lt;P&gt;If REST string length is less than 132 and end of table, append REST to 132 length table&lt;/P&gt;&lt;P&gt;loop til no more text and rest is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 14:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-conversion-howto/m-p/2490653#M562137</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-07-09T14:20:29Z</dc:date>
    </item>
  </channel>
</rss>

