<?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: STRLEN, Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635752#M283495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for the function modules but i cant use them for there's an error coming when i run the fm's. first in rkd_word_wrap, ur textline is not valid to v_str.&lt;/P&gt;&lt;P&gt;in 'CONVERT_STRING_TO_TABLE'its the table that has a problem for when im making my internal tablt type 'table', this 'table' is an error for its a generic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx, hope u can help me how to use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 17:16:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T17:16:58Z</dc:date>
    <item>
      <title>STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635746#M283489</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;can anyone pls help me regarding this, my problem is, i have a table and it contains several lines i dont know how many, and then each line has a length of 132 characters. I want to do, if line1 is less than 132 i will get some characters to line2 to satisfy the 132 of the line1, the same as the remaining lines. Pls. do help me, i need this code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx a lot,&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635746#M283489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635747#M283490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data v_str type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate v_str itab-line into v_str.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RKD_WORD_WRAP'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            TEXTLINE            = v_str&lt;/P&gt;&lt;P&gt;           OUTPUTLEN           = 132&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          OUT_LINES           = itab&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OUTPUTLEN_TOO_LARGE = 1&lt;/P&gt;&lt;P&gt;            OTHERS              = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635747#M283490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635748#M283491</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;  Did you mean  "i will get some characters &amp;lt;b&amp;gt;from line2 of the internal table&amp;lt;/b&amp;gt; to satisfy the 132 of the line1"??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635748#M283491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635749#M283492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try and use the below logic.&lt;/P&gt;&lt;P&gt;*itab is the table where you have the lines.&lt;/P&gt;&lt;P&gt;itab1[] = itab[].&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;  lindx = sy-tabix - 1.&lt;/P&gt;&lt;P&gt;  check lindx &amp;gt; 0.&lt;/P&gt;&lt;P&gt;  read table itab index lindx.&lt;/P&gt;&lt;P&gt;  lstr = itab-line.&lt;/P&gt;&lt;P&gt;  llen = strlen ( lstr ).&lt;/P&gt;&lt;P&gt;  if llen &amp;lt; 132.&lt;/P&gt;&lt;P&gt;     lvar = 132 - llen.&lt;/P&gt;&lt;P&gt;     write itab1-line(lvar) to lstr1.&lt;/P&gt;&lt;P&gt;     concatenate lstr lstr1 into itab-line.&lt;/P&gt;&lt;P&gt;     modify itab lindx.&lt;/P&gt;&lt;P&gt;     write itab1-line+lvar(132) to lstr1.&lt;/P&gt;&lt;P&gt;     itab1-line = lstr1&lt;/P&gt;&lt;P&gt;     lnindx = lindx + 1.&lt;/P&gt;&lt;P&gt;     modify itab1 index lnindx.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635749#M283492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635750#M283493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, thanx &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the reply, well im going to try this, &lt;/P&gt;&lt;P&gt;yes im going to use only 1 internal table which contains all the lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635750#M283493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635751#M283494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, try this also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;concatenate v_str itab-line into v_str.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_STRING = v_str&lt;/P&gt;&lt;P&gt;I_TABLINE_LENGTH = 132&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;ET_TABLE = itab&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;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635751#M283494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T15:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: STRLEN, Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635752#M283495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for the function modules but i cant use them for there's an error coming when i run the fm's. first in rkd_word_wrap, ur textline is not valid to v_str.&lt;/P&gt;&lt;P&gt;in 'CONVERT_STRING_TO_TABLE'its the table that has a problem for when im making my internal tablt type 'table', this 'table' is an error for its a generic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx, hope u can help me how to use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 17:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strlen-code/m-p/1635752#M283495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T17:16:58Z</dc:date>
    </item>
  </channel>
</rss>

