<?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: Upload program for Long text. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654717#M1286513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Link for Long text into 72 char..|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7393313"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ans also see the code..&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 17:31:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T17:31:22Z</dc:date>
    <item>
      <title>Upload program for Long text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654714#M1286510</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 anybody give me the code for uploading long text for different tables.&lt;/P&gt;&lt;P&gt;The input file will contain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEKEY1	Table Key &lt;/P&gt;&lt;P&gt;TABLEKEY2	LongText&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be a Tab delimited text file with input as Table Key and the Long text. If the long text is more than 72 characters, it would be split into more than 1 line based on number of characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the file using CL_GUI_FRONTEND_SERVICES- GUI_UPLOAD. Process the internal table and for each Key (tdname), fill the TLINE internal table and use SAVE_TEXT to load the long description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the dought that what can be the length of the longtext in text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz give me some sudo code for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 17:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654714#M1286510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T17:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program for Long text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654715#M1286511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get your request. Can you explain it in a better way? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To broke the text in 72 characters, use the FM: RKD_WORD_WRAP&lt;/P&gt;&lt;P&gt;Where outputlen parameter is the size of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope its was usefull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 17:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654715#M1286511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T17:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program for Long text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654716#M1286512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_TASK_LIST_LTEXT_UPLOAD.html" target="test_blank"&gt;http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_TASK_LIST_LTEXT_UPLOAD.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raghunath Shyamala on May 14, 2009 7:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 17:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654716#M1286512</guid>
      <dc:creator>former_member632729</dc:creator>
      <dc:date>2009-05-14T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Upload program for Long text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654717#M1286513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Link for Long text into 72 char..|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7393313"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ans also see the code..&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 17:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-program-for-long-text/m-p/5654717#M1286513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T17:31:22Z</dc:date>
    </item>
  </channel>
</rss>

