<?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: Long text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518292#M1261412</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 this FM  IQAPI_WORD_WRAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 17:11:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-17T17:11:08Z</dc:date>
    <item>
      <title>Long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518290#M1261410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to split a long text @ every 72 characters .But the split should not  break any word in betwwen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : ABAP READ_TEXT functions to read the SAP Long Text. ... Procedure to create SD text types · Read sales document flow using a function .... Example of READ_TEXT functions reading tables PBIM - Independent requirements for material. ...&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 split should not break the word like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP READ_TEXT FUNCTIONS TO READ THE SAP LONG TEXT. ... PROCEDURE TO CRE&lt;/P&gt;&lt;P&gt;ATE SD TEXT TYPES · READ SALES DOCUME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the CREATE should come in to next line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any dynamic way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know asap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 16:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518290#M1261410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T16:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518291#M1261411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tashvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT t_texts WHERE kunnr IS NOT INITIAL.

    w_tabix1 = sy-tabix.

   t_lines-tdformat = '* '.

   w_len = STRLEN( t_texts-text ).
    w_cnt = 72.           
    w_tot = 1500.
* Now split the text into line lengths of 72 or less
    WHILE w_len GT 0.
      w_cnt = 72.
* Now need to make sure a word is not split in the middle
      IF w_len GT 72              AND
         t_texts-text+72(1) NE ' ' .
        WHILE w_cnt GT 0.
          w_cnt = w_cnt - 1.
          IF t_texts-text+w_cnt(1) EQ ' '.
            t_lines-tdline = t_texts-text+0(w_cnt).
            EXIT.
          ENDIF.
        ENDWHILE.
      ELSE.
        t_lines-tdline = t_texts-text+0(w_cnt).
        w_cnt = 72.
      ENDIF.

      APPEND t_lines.      "Append to another internal table for further process to save text
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on Apr 17, 2009 10:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 16:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518291#M1261411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518292#M1261412</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 this FM  IQAPI_WORD_WRAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 17:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518292#M1261412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T17:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518293#M1261413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the FM : RKD_WORD_WRAP&lt;/P&gt;&lt;P&gt;Sample Code::&amp;gt;&amp;gt;&lt;SPAN __jive_macro_name="message" id="6922675"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 17:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text/m-p/5518293#M1261413</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-17T17:52:45Z</dc:date>
    </item>
  </channel>
</rss>

