<?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: Upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text-upload/m-p/2332602#M513405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you use save_text function module ,before this one you need to use simple logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you have data in one field&lt;/P&gt;&lt;P&gt;  data: itab_d like swastrtab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_data(250) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have data v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWA_STRING_SPLIT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT_STRING                       = v_data&lt;/P&gt;&lt;P&gt;       MAX_COMPONENT_LENGTH               = 72&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TERMINATING_SEPARATORS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPENING_SEPARATORS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        STRING_COMPONENTS                  = itab_d&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_COMPONENT_LENGTH_INVALID       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                             = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now itab_d has each line 72 char,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop ur itab_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here pass ur data to tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use tlines in save_text Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2007 13:56:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-03T13:56:12Z</dc:date>
    <item>
      <title>Long text: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text-upload/m-p/2332601#M513404</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;The field of the longtext is 72char. How can is ensure that a word is not cut/split to continue on the next line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 13:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text-upload/m-p/2332601#M513404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Long text: Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/long-text-upload/m-p/2332602#M513405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you use save_text function module ,before this one you need to use simple logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you have data in one field&lt;/P&gt;&lt;P&gt;  data: itab_d like swastrtab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_data(250) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have data v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWA_STRING_SPLIT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT_STRING                       = v_data&lt;/P&gt;&lt;P&gt;       MAX_COMPONENT_LENGTH               = 72&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TERMINATING_SEPARATORS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OPENING_SEPARATORS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        STRING_COMPONENTS                  = itab_d&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAX_COMPONENT_LENGTH_INVALID       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                             = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now itab_d has each line 72 char,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop ur itab_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here pass ur data to tlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use tlines in save_text Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 13:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/long-text-upload/m-p/2332602#M513405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T13:56:12Z</dc:date>
    </item>
  </channel>
</rss>

