<?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 concatenate problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290381#M499596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am experiencing a weird behabour with the concatenate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a internal table with 4 lines, each line has a sentence, and I want pass the 4 lines to an unique string. Everything is working perfectly until the 232 character, from this point the string container doesn't allow more data. I try to see if any error occurs with the concatenate statement, but sy-subrc is always 0 (zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code of the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION zhr_pd_f_utility_tab_to_str.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Interfase local&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(P_STRING) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      P_IN_TAB STRUCTURE  TLINE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS:&lt;/P&gt;&lt;P&gt;             c_linebreak    TYPE abap_cr_lf VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_linebreak(2) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA:  str_aux(1000)    type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_convert&amp;gt;,&lt;/P&gt;&lt;P&gt;                 &amp;lt;l_line&amp;gt; LIKE LINE OF p_in_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR p_string.&lt;/P&gt;&lt;P&gt;  clear result_tab.&lt;/P&gt;&lt;P&gt;  clear str_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT p_in_tab ASSIGNING &amp;lt;l_line&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-tabix &amp;gt; 1 AND                 " not first line&lt;/P&gt;&lt;P&gt;       ( &amp;lt;l_line&amp;gt;-tdformat = '/' OR     " new line&lt;/P&gt;&lt;P&gt;         &amp;lt;l_line&amp;gt;-tdformat = '*' ).     " new paragraph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE str_aux c_linebreak &amp;lt;l_line&amp;gt;-tdline  INTO str_aux.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-tabix EQ 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      str_aux = &amp;lt;l_line&amp;gt;-tdline.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE str_aux &amp;lt;l_line&amp;gt;-tdline INTO str_aux&lt;/P&gt;&lt;P&gt;                                         SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;        break-point.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;p_string = str_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 18:08:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T18:08:10Z</dc:date>
    <item>
      <title>concatenate problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290381#M499596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am experiencing a weird behabour with the concatenate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a internal table with 4 lines, each line has a sentence, and I want pass the 4 lines to an unique string. Everything is working perfectly until the 232 character, from this point the string container doesn't allow more data. I try to see if any error occurs with the concatenate statement, but sy-subrc is always 0 (zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code of the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION zhr_pd_f_utility_tab_to_str.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Interfase local&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(P_STRING) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      P_IN_TAB STRUCTURE  TLINE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS:&lt;/P&gt;&lt;P&gt;             c_linebreak    TYPE abap_cr_lf VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_linebreak(2) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA:  str_aux(1000)    type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_convert&amp;gt;,&lt;/P&gt;&lt;P&gt;                 &amp;lt;l_line&amp;gt; LIKE LINE OF p_in_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR p_string.&lt;/P&gt;&lt;P&gt;  clear result_tab.&lt;/P&gt;&lt;P&gt;  clear str_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT p_in_tab ASSIGNING &amp;lt;l_line&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-tabix &amp;gt; 1 AND                 " not first line&lt;/P&gt;&lt;P&gt;       ( &amp;lt;l_line&amp;gt;-tdformat = '/' OR     " new line&lt;/P&gt;&lt;P&gt;         &amp;lt;l_line&amp;gt;-tdformat = '*' ).     " new paragraph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE str_aux c_linebreak &amp;lt;l_line&amp;gt;-tdline  INTO str_aux.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-tabix EQ 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      str_aux = &amp;lt;l_line&amp;gt;-tdline.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE str_aux &amp;lt;l_line&amp;gt;-tdline INTO str_aux&lt;/P&gt;&lt;P&gt;                                         SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;        break-point.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;p_string = str_aux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 18:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290381#M499596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T18:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290382#M499597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What made you think that concatenation is not happening after 232 characters ? In debugging mode you may not see the content more than that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try in debugging mode using offset like   &lt;/P&gt;&lt;P&gt;str_aux+300(35)    - to show string content from 300 th position to 335 th position..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it blank/./ ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 18:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290382#M499597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290383#M499598</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 weird behavour still continue... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, I am count all the characters of the string, and all the characters of the table, so at the end of the loop, I can count the amount of characters, and if there is any difference, I can add the remaining text.&lt;/P&gt;&lt;P&gt;PROBLEM, when I count the characters, it counts characters that are not in the string. The string shows me until 255 characters (not 232 as I told before. 255 sounds like the maximun amount of numbrer that can be count with a byte), but 279 are counted!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discover that no more than 255 chars are permitted, therefore, i have changed the string variable for a char(1024) but the problem still continue.... it is driving me crazy!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 16:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-problem/m-p/2290383#M499598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T16:14:04Z</dc:date>
    </item>
  </channel>
</rss>

