<?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: Problem in concatenating strings.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695002#M1293879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think you can do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of ty_string,
             string type string,
          end of ty_string.

data: wa_string type ty_string,
        t_string type table of ty_string.

wa_string-string = 'first line'.
append wa_string to t_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t_string into wa_string.
write:/wa_strin-string.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 09:26:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-25T09:26:57Z</dc:date>
    <item>
      <title>Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695001#M1293878</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;  I want to concatenate two or more strings using the CONCATENATE statement so that they are joined at new lines. Example -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If the code is :-&lt;/P&gt;&lt;P&gt;  v_str1 = 'first line'.&lt;/P&gt;&lt;P&gt;  v_str2 = 'second line'.&lt;/P&gt;&lt;P&gt;  v_str3 = 'third line'.&lt;/P&gt;&lt;P&gt;  "Required statement to concatenate v_str1, v_str2 and v_str3 into v_str.&lt;/P&gt;&lt;P&gt;  WRITE:/  v_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the output is :&lt;/P&gt;&lt;P&gt;   first line&lt;/P&gt;&lt;P&gt;   second line&lt;/P&gt;&lt;P&gt;   third line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695001#M1293878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695002#M1293879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think you can do that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of ty_string,
             string type string,
          end of ty_string.

data: wa_string type ty_string,
        t_string type table of ty_string.

wa_string-string = 'first line'.
append wa_string to t_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at t_string into wa_string.
write:/wa_strin-string.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695002#M1293879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695003#M1293880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of concatenation; append them in an internal table and then loop on it and write the data.&lt;/P&gt;&lt;P&gt;Concatenate will not be able to write in the required format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively what you can do is concatenate separated by space and then split at space into an internal table oftype string and the write the data by looping on the table.&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;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695003#M1293880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695004#M1293881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot do like this using concatenate statment...either you write three write statement or put all strings in table and print.&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;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695004#M1293881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695005#M1293882</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;  If you have to display all strings in new lines, then what is the use of concatenate statement? why can't you write like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE:/ v_str1,
      / v_str2,
      / v_str3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vishnu Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695005#M1293882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695006#M1293883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE abc def xyz .... into abcd 
SEPARATED BY CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEWLINE&lt;/STRONG&gt; separates the elements by a new line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695006#M1293883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695007#M1293884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Thanks for your reply. But I do not want to display the concatenated string using the WRITE statement. I need to store the concatenated string in a variable (say v_str in this case) and then display the value of v_str as MESSAGE v_str TYPE 'I'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695007#M1293884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695008#M1293885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_str1 type string value 'first line',&lt;/P&gt;&lt;P&gt;      v_str2 type string value 'second line',&lt;/P&gt;&lt;P&gt;      v_str3 type string value 'third line',&lt;/P&gt;&lt;P&gt;      v_str type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate v_str1 v_str2 v_str3 into v_str separated by ','.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ v_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: v_str1, v_str2, v_str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split v_str at ',' into v_str1 v_str2 v_str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/5 v_str1,&lt;/P&gt;&lt;P&gt;      /5 v_str2,&lt;/P&gt;&lt;P&gt;      /5 v_str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695008#M1293885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695009#M1293886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u save it in csv.. it will create new lines for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695009#M1293886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695010#M1293887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM FITP_POPUP_TO_INFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695010#M1293887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695011#M1293888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;STRONG&gt;POPUP_TO_INFORM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'POPUP_TO_INFORM'
  EXPORTING
    titel         = 'This is title'
    txt1          = 'first line'
    txt2          = '2nd line'
   TXT3          = '3rd line'
*   TXT4          = ' '
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695011#M1293888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695012#M1293889</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;PRE&gt;&lt;CODE&gt;DATA: V_STR1 TYPE STRING,
      V_STR2 TYPE STRING,
      V_STR3 TYPE STRING,
       V_STR TYPE STRING.

CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS: CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE.


V_STR1 = 'first line'.
V_STR2 = 'second line'.
V_STR3 = 'third line'.

CONCATENATE V_STR1 CON_CRET V_STR2 CON_CRET  V_STR3  INTO V_STR.

WRITE:/ V_STR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695012#M1293889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in concatenating strings..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695013#M1293890</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;data: v_str1 type string value 'first line',&lt;/P&gt;&lt;P&gt;      v_str2 type string value 'second line',&lt;/P&gt;&lt;P&gt;      v_str3 type string value 'third line',&lt;/P&gt;&lt;P&gt;      v_str type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_text like POPUPTEXT occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_ans type char1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_text-topofpage = 'X'.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;clear v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_text-topofpage = 'X'.&lt;/P&gt;&lt;P&gt;v_text-text      = 'You want to proceed or not?'.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;clear v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_text-topofpage = 'X'.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;clear v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_text-text = v_str1.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;v_text-text = v_str2.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;v_text-text = v_str3.&lt;/P&gt;&lt;P&gt;append v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DD_POPUP_WITH_LIST'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   TITEL              = 'Information'&lt;/P&gt;&lt;P&gt;   LISTTITEL          = 'Strings'&lt;/P&gt;&lt;P&gt;   START_COLUMN       = 1&lt;/P&gt;&lt;P&gt;   START_ROW          = 1&lt;/P&gt;&lt;P&gt;   END_COLUMN         = 50&lt;/P&gt;&lt;P&gt;   END_ROW            = 20&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ANSWER             = v_ans&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    lines             = v_text&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_ans = 'N'.&lt;/P&gt;&lt;P&gt; write:/ 'cancelled'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; write:/ 'Proceed'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-concatenating-strings/m-p/5695013#M1293890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:08:15Z</dc:date>
    </item>
  </channel>
</rss>

