<?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: merging FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958772#M945869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2008 13:25:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-05T13:25:51Z</dc:date>
    <item>
      <title>merging FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958770#M945867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with simple strings in it:&lt;/P&gt;&lt;P&gt;itab[1] = 'test one two three'&lt;/P&gt;&lt;P&gt;itab[2] = 'test one two three four'&lt;/P&gt;&lt;P&gt;itab[3] = 'test one two three four five'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to fill it in a way that consider the words completion, meaning that if my cell length in the new internal table is 30 the new table will like that:&lt;/P&gt;&lt;P&gt;new_itab[1] = 'test one two three test one'&lt;/P&gt;&lt;P&gt;new_itab[2] = 'two three four test one two'&lt;/P&gt;&lt;P&gt;new_itab[3] = 'three four five'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its length is 40, it'll look like that:&lt;/P&gt;&lt;P&gt;new_itab[1] = 'test one two three test one two three'&lt;/P&gt;&lt;P&gt;new_itab[2] = 'four test one two three four five'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use many abap commands but in a FM, does anyone know such one ?&lt;/P&gt;&lt;P&gt;I know that FM HRIQ_GB_UCAS_TEXT_WRAP_AROUND does the opposite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rebeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958770#M945867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: merging FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958771#M945868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      field1(30) type c  value 'test one test two test three  ',&lt;/P&gt;&lt;P&gt;      end of itab ,&lt;/P&gt;&lt;P&gt;      begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;      field2(60) type c value 'test one test two test three test four',&lt;/P&gt;&lt;P&gt;      end of itab1 ,&lt;/P&gt;&lt;P&gt;      begin of itab2 occurs 0 ,&lt;/P&gt;&lt;P&gt;      field3(20) type c  value 'test one test two ',&lt;/P&gt;&lt;P&gt;      end of itab2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     i = strlen( itab-field1 ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if i le 30 .&lt;/P&gt;&lt;P&gt;     concatenate itab-field1 itab1-field2 into itab1-field2 .&lt;/P&gt;&lt;P&gt;     write:/ itab1-field2 .&lt;/P&gt;&lt;P&gt;     endif.&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;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958771#M945868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T09:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: merging FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958772#M945869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 13:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/merging-fm/m-p/3958772#M945869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T13:25:51Z</dc:date>
    </item>
  </channel>
</rss>

