<?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: Any Function Module or Program Exist ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418340#M1548979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the FM you're using? Did you try the FM 'RKD_WORD_WRAP' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output of the text you've provided(splitting into blocks of 50 chars) will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Approximately 72.4% from a total of 1,226.7&lt;/P&gt;&lt;P&gt;million shares outstanding are in free float&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Nov 2010 04:19:01 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-11-14T04:19:01Z</dc:date>
    <item>
      <title>Any Function Module or Program Exist ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418338#M1548977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please let me know is there any FM or any program for the below kind of requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say I have a Text ( change dynamically ) with 150 charecters length. However It is split into 3 parts of each 50.&lt;/P&gt;&lt;P&gt;I would like to have only the complete words in each part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - My text is " Approximately 72.4% from a total of 1,226.7 million shares outstanding are in free float "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be as " Approximately 72.4% from a total of 1,226.7 million " in Part1 &lt;/P&gt;&lt;P&gt;                 and " shares outstanding are in free float " in part2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but currently it is happening as "  " Approximately 72.4% from a total of 1,226.7 mil " in part1 &lt;/P&gt;&lt;P&gt;                                            and " lion shares outstanding are in free float " in part2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest me how to handle this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 17:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418338#M1548977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-13T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Any Function Module or Program Exist ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418339#M1548978</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 if there's a fm, but you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA text(150).

DATA: part1(50), part2(50).

DATA: offset TYPE i.

text = 'Approximately 72.4% from a total of 1,226.7 million shares outstanding are in free float'.

PERFORM set_part USING part1 0.
PERFORM set_part USING part2 offset.

WRITE: part1, / part2.

FORM set_part  USING    p_part p_offset TYPE i.
  DATA: last_char(1).
  DATA: l_offset TYPE i.
  DATA: pos      TYPE i.

  l_offset = p_offset + 50.
  last_char = text+l_offset(1).

  WHILE last_char &amp;lt;&amp;gt; space.
    l_offset = l_offset - 1.
    last_char = text+l_offset(1).
  ENDWHILE.

  pos = l_offset - p_offset.

  p_part = text+p_offset(pos).
  offset = p_offset + pos.

  WHILE p_part(1) = space.
    p_part = p_part+1.
  ENDWHILE.

ENDFORM.                    " SET_PART&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 18:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418339#M1548978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-13T18:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Any Function Module or Program Exist ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418340#M1548979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the FM you're using? Did you try the FM 'RKD_WORD_WRAP' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output of the text you've provided(splitting into blocks of 50 chars) will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Approximately 72.4% from a total of 1,226.7&lt;/P&gt;&lt;P&gt;million shares outstanding are in free float&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 04:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418340#M1548979</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-11-14T04:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Any Function Module or Program Exist ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418341#M1548980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used - CRM_MESSAGE_TEXT_SPLIT  and it solved the purpose. Thanks - Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 10:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-or-program-exist/m-p/7418341#M1548980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T10:03:23Z</dc:date>
    </item>
  </channel>
</rss>

